-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial script to build silverblue ISOs
- Loading branch information
1 parent
3dbc8ee
commit 502a021
Showing
2 changed files
with
51 additions
and
0 deletions.
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,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 |
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,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 | ||
""" |