mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
save outside runtime
This commit is contained in:
parent
e51ae39c8b
commit
1f1cd5efd9
3 changed files with 27 additions and 3 deletions
17
.github/workflows/iso.yml
vendored
17
.github/workflows/iso.yml
vendored
|
|
@ -48,6 +48,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Download image
|
||||||
|
run: |
|
||||||
|
podman pull ghcr.io/ublue-os/base-main:39
|
||||||
|
podman save --format oci-archive -o base-main-39.tar ghcr.io/ublue-os/base-main:39
|
||||||
|
podman rmi ghcr.io/ublue-os/base-main:39
|
||||||
|
|
||||||
- name: Create boot.iso
|
- name: Create boot.iso
|
||||||
env:
|
env:
|
||||||
version: "39"
|
version: "39"
|
||||||
|
|
@ -58,16 +64,23 @@ jobs:
|
||||||
--macboot --noupgrade \
|
--macboot --noupgrade \
|
||||||
--repo /etc/yum.repos.d/fedora.repo \
|
--repo /etc/yum.repos.d/fedora.repo \
|
||||||
--repo /etc/yum.repos.d/fedora-updates.repo \
|
--repo /etc/yum.repos.d/fedora-updates.repo \
|
||||||
--add-template ${GITHUB_WORKSPACE}/lorax_templates/embed_image.tmpl \
|
|
||||||
--add-template ${GITHUB_WORKSPACE}/lorax_templates/set_installer.tmpl \
|
--add-template ${GITHUB_WORKSPACE}/lorax_templates/set_installer.tmpl \
|
||||||
--rootfs-size 9 \
|
--rootfs-size 9 \
|
||||||
./results/
|
./results/
|
||||||
|
|
||||||
|
- name: Generate xorriso input
|
||||||
|
run: |
|
||||||
|
bash xorriso/gen_input.sh | tee xorriso.txt
|
||||||
|
|
||||||
|
- name: Add additional files to ISO
|
||||||
|
run: |
|
||||||
|
xorriso -dialog on < xorriso.txt
|
||||||
|
|
||||||
- name: Upload ISO as artifact
|
- name: Upload ISO as artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ISOs
|
name: ISOs
|
||||||
path: results/images/boot.iso
|
path: results/images/deploy.iso
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: 0
|
retention-days: 0
|
||||||
compression-level: 0
|
compression-level: 0
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
append usr/share/anaconda/interactive-defaults.ks "ostreecontainer --url=file:///base-main-39.tar --transport=oci-archive --no-signature-verification"
|
append usr/share/anaconda/interactive-defaults.ks "ostreecontainer --url=file:///run/install/repo/base-main-39.tar --transport=oci-archive --no-signature-verification"
|
||||||
11
xorriso/gen_input.sh
Normal file
11
xorriso/gen_input.sh
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "-indev $(pwd)/results/images/boot.iso"
|
||||||
|
echo "-outdev $(pwd)/results/images/deploy.iso"
|
||||||
|
echo "-boot_image any replay"
|
||||||
|
echo "-volid Fedora-S-dvd-x86_64-39"
|
||||||
|
echo "-joliet on"
|
||||||
|
echo "-compliance joliet_long_names"
|
||||||
|
echo "-map $(pwd)/base-main-39.tar base-main-39.tar"
|
||||||
|
echo "-chmod 0444 base-main-39.tar"
|
||||||
|
echo "-end"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue