-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Live ISO sources to Git #1160
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
863eafc
Add Live ISO sources to Git
lslezak 730889d
Update documentation, use UTC for time stamps
lslezak 2f3d47b
Update live/README.md
lslezak 29806cb
Update live/README.md
lslezak e84e715
Update live/README.md
lslezak 63bce0b
Update live/README.md
lslezak 675a586
Update live/README.md
lslezak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Submit agama-live | ||
|
||
on: | ||
# runs on pushes targeting the default branch | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
# run only when a live ISO source is changed | ||
- live/** | ||
|
||
jobs: | ||
update_staging_package: | ||
# do not run in forks | ||
if: github.repository_owner == 'openSUSE' | ||
|
||
runs-on: ubuntu-latest | ||
|
||
container: | ||
image: registry.opensuse.org/opensuse/tumbleweed:latest | ||
|
||
steps: | ||
- name: Git Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Configure and refresh repositories | ||
# disable unused repositories to have a faster refresh | ||
run: zypper modifyrepo -d repo-non-oss repo-openh264 repo-update && zypper ref | ||
|
||
- name: Install tools | ||
run: zypper --non-interactive install --no-recommends | ||
make osc | ||
|
||
- name: Configure osc | ||
run: .github/workflows/configure_osc.sh | ||
env: | ||
OBS_USER: ${{ secrets.OBS_USER }} | ||
OBS_PASSWORD: ${{ secrets.OBS_PASSWORD }} | ||
|
||
- name: Checkout agama-live | ||
run: osc co -o dist systemsmanagement:Agama:Staging agama-live | ||
working-directory: ./live | ||
|
||
- name: Build sources | ||
run: make clean && make | ||
working-directory: ./live | ||
|
||
- name: Update OBS files | ||
run: osc addremove | ||
working-directory: ./live/dist | ||
|
||
- name: Check status | ||
run: osc diff && osc status | ||
working-directory: ./live/dist | ||
|
||
- name: Commit agama-live | ||
run: osc commit -m "Updated to Agama $GITHUB_SHA" | ||
working-directory: ./live/dist |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Makefile for building the Live ISO sources for OBS, see README.md for more | ||
# details. | ||
|
||
# directory with the sources | ||
SRCDIR = ./src | ||
|
||
# the target directory | ||
DESTDIR = ./dist | ||
|
||
# the default build flavor, see the src/_multibuild file, | ||
# to build a different flavor run "make build FLAVOR=<flavor>" | ||
FLAVOR = openSUSE | ||
|
||
# files to copy from src/ | ||
COPY_FILES = $(patsubst $(SRCDIR)/%,$(DESTDIR)/%,$(wildcard $(SRCDIR)/*)) | ||
|
||
all: $(DESTDIR) $(COPY_FILES) $(DESTDIR)/config-cdroot.tar.xz $(DESTDIR)/root.tar.xz $(DESTDIR)/root-ALP-PXE.tar.xz | ||
|
||
# clean the destination directory (but keep the .osc directory if it is present) | ||
clean: | ||
rm -rf $(DESTDIR)/* | ||
|
||
$(DESTDIR): | ||
mkdir -p $@ | ||
|
||
# copy the files from src/ to dist/ | ||
$(DESTDIR)/%: $(SRCDIR)/% | ||
cp -f $< $@ | ||
|
||
# make a tarball from a directory | ||
# the tarball is reproducible, i.e. the same sources should result in the very | ||
# same tarball (bitwise) for the file time stamps use the date of the last | ||
# commit in the respective directory, use the UTC date to avoid possible time | ||
# zone and DST differences | ||
$(DESTDIR)/%.tar.xz: % | ||
MTIME=$$(date --date="$$(git log -n 1 --pretty=format:%ci $<)" --utc +"%Y-%m-%d %H:%M:%S"); \ | ||
(cd $< && find . -xtype f -not -name README.md | LC_ALL=C sort | tar -c -v -f - --format=gnu --owner=0 --group=0 --files-from - --mtime="$$MTIME") | xz -c -9 -e > $@ | ||
|
||
# build the ISO locally | ||
build: $(DESTDIR) | ||
if [ ! -e $(DESTDIR)/.osc ]; then make clean; osc co -o $(DESTDIR) systemsmanagement:Agama:Staging agama-live; fi | ||
$(MAKE) all | ||
(cd $(DESTDIR) && osc build -M $(FLAVOR) images) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Agama Network Installation (PXE) | ||
|
||
## Prerequisites | ||
|
||
The PXE boot infrastructure should already exist: | ||
|
||
- TFTP/DHCP running (usually dnsmasq) | ||
- FTP server running (usually vsftp) | ||
|
||
## Setup | ||
|
||
Extract the Linux kernel and the initrd from the archive: | ||
|
||
```shell | ||
osc getbinaries images x86_64 -M ALP-PXE | ||
tar -C /srv/ftp/image -xf \ | ||
binaries/agama-live.x86_64-5.0.0-ALP-PXE-Build4.1.install.tar | ||
|
||
cp /srv/ftp/image/pxeboot.agama-live.x86_64-5.0.0.initrd /srv/tftpboot/boot | ||
cp /srv/ftp/image/pxeboot.agama-live.x86_64-5.0.0.kernel /srv/tftpboot/boot | ||
``` | ||
|
||
Update the PXE boot configuration in the `/srv/tftpboot/pxelinux.cfg/default` | ||
file: | ||
|
||
``` | ||
default menu.c32 | ||
prompt 0 | ||
timeout 120 | ||
|
||
menu title PXE Menu | ||
|
||
label live | ||
menu label ^Agama | ||
kernel /boot/pxeboot.agama-live.x86_64-5.0.0.kernel | ||
append initrd=/boot/pxeboot.agama-live.x86_64-5.0.0.initrd rd.kiwi.install.pxe rd.kiwi.install.image=ftp://X.X.X.X/image/agama-live.x86_64-5.0.0.xz console=ttyS0,115200 rd.kiwi.ramdisk ramdisk_size=2097152 | ||
``` | ||
|
||
## Testing | ||
|
||
To test booting Agama in QEMU run these commands: | ||
|
||
```shell | ||
qemu-img create mydisk 20g | ||
qemu -boot n -m 4096 -hda mydisk | ||
``` |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ALP -> FO? Or call it ... call it something else?