1
0
Fork 0
mirror of https://github.com/JasonN3/build-container-installer.git synced 2025-12-25 10:57:55 +01:00

generate basic image with lorax

This commit is contained in:
Jason N. 2024-02-14 12:57:48 +00:00
parent b2ec57e4e3
commit 4fe11568e1
4 changed files with 37 additions and 27 deletions

View file

@ -8,48 +8,64 @@ on:
- 'v*' - 'v*'
pull_request: pull_request:
env:
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
jobs: jobs:
build-and-push-iso: build-and-push-iso:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: fedora:39 image: fedora:39
options: "--device=/dev/loop-control:/dev/loop-control --device=/dev/loop0:/dev/loop0 --privileged" options: "--privileged"
volumes:
- /:/host
permissions: permissions:
contents: read contents: read
packages: write packages: write
steps: steps:
- name: Install Tools - name: Cleanup host space
run: |
df -h /host || true
rm -rf /host/usr/local/lib/android || true
rm -rf /host/usr/share/dotnet || true
rm -rf /host/opt/ghc || true
rm -rf /host/usr/local/.ghcup || true
df -h /host || true
- name: Install tools
run: | run: |
dnf install -y \ dnf install -y \
livecd-tools \ lorax \
pykickstart \ xorriso \
git git \
rpm-ostree
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
- name: Flatten Kickstart file - name: Create boot.iso
env:
version: "39"
arch: "x86_64"
run: | run: |
ksflatten \ lorax -p Fedora -v $version -r $version -t Server \
-c kickstart.ks \ --isfinal --buildarch=${arch} --volid=Fedora-S-dvd-${arch}-${version} \
-o kickstart-flat.ks --macboot --noupgrade \
--repo /etc/yum.repos.d/fedora.repo \
--repo /etc/yum.repos.d/fedora-updates.repo \
--rootfs-size 9 \
./results/
- name: Create ISO - name: Upload ISO as artifact
run: |
livecd-creator --verbose \
--config=kickstart-flat.ks \
--fslabel=Fedora-LiveCD \
--cache =/var/cache/live
- name: Upload ISO as Artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: Fedora-LiveCD.iso name: ISOs
path: Fedora-LiveCD.iso path: results/images/boot.iso
if-no-files-found: error if-no-files-found: error
retention-days: 0 retention-days: 0
compression-level: 0 compression-level: 0
overwrite: true overwrite: true

4
.gitmodules vendored
View file

@ -1,4 +0,0 @@
[submodule "submodules/fedora-kickstarts"]
path = submodules/fedora-kickstarts
url = https://pagure.io/fedora-kickstarts.git
branch = f39

View file

@ -1 +0,0 @@
%include submodules/fedora-kickstarts/fedora-live-base.ks

@ -1 +0,0 @@
Subproject commit 465debb7c90c8ab4c68e14ff48fe50f796b1c089