Skip to content

Commit

Permalink
Add initial script to build silverblue ISOs
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpenedblade committed Oct 5, 2024
1 parent 3dbc8ee commit 502a021
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
26 changes: 26 additions & 0 deletions build-iso.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash
set -e

IMAGE="ghcr.io/t2linux/fedora-silverblue:unstable"

mkdir output

cp config.toml .tmp-config.toml
sed -i "s/REPLACE_WITH_IMAGE_NAME/$IMAGE/g" .tmp-config.toml

podman pull "$IMAGE"

podman run --rm -it --privileged \
--platform linux/amd64 \
--security-opt label=type:unconfined_t \
-v /var/lib/containers/storage:/var/lib/containers/storage \
-v output:/output \
-v .tmp-config.toml:/config.toml \
quay.io/centos-bootc/bootc-image-builder:latest \
--type anaconda-iso \
--rootfs btrfs \
--local \
"$IMAGE"

mv output/bootiso/install.iso ./fedora-silverblue.iso
rm -rf output
25 changes: 25 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[customizations.kernel]
append = "intel_iommu=on iommu=pt mem_sleep=s2idle pcie_ports=native"

[customizations.installer.modules]
enable = [
"org.fedoraproject.Anaconda.Modules.Localization",
"org.fedoraproject.Anaconda.Modules.Timezone",
]
disable = [
"org.fedoraproject.Anaconda.Modules.Users",
"org.fedoraproject.Anaconda.Modules.Network",
]

[customizations.installer.kickstart]
contents = """
graphical
bootloader --append="intel_iommu=on iommu=pt mem_sleep=s2idle pcie_ports=native"
%post
bootc switch --mutate-in-place --transport registry REPLACE_WITH_IMAGE_NAME
%end
"""

0 comments on commit 502a021

Please sign in to comment.