diff --git a/build-iso.sh b/build-iso.sh new file mode 100755 index 0000000..d5f4390 --- /dev/null +++ b/build-iso.sh @@ -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 diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..bd15c5b --- /dev/null +++ b/config.toml @@ -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 +"""