### Configure ISO Boot Parameters Source: https://github.com/osbuild/image-builder-cli/blob/main/doc/20-advanced/20-bootc/05-sources-of-configuration.md Example of an iso.yaml file used for the `bootc-generic-iso` image type. Specifies the ISO label and GRUB2 boot entries, including kernel parameters for installation. ```yaml label: "Fedora-bootc-Installer" grub2: entries: - name: "Install Fedora (bootc)" linux: "/images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Fedora-bootc-Installer console=tty0 inst.text selinux=0" initrd: "/images/pxeboot/initrd.img" ``` -------------------------------- ### Example Containerfile for Fedora Bootc Installer ISO Source: https://github.com/osbuild/image-builder-cli/blob/main/doc/20-advanced/20-bootc/10-isos.md This Containerfile demonstrates how to build a Fedora bootable ISO installer. It installs necessary packages for Anaconda, configures EFI bootloaders, and defines ISO and Anaconda configurations. ```Dockerfile FROM quay.io/fedora/fedora-bootc:rawhide RUN dnf install -qy \ anaconda \ anaconda-install-img-deps \ anaconda-dracut \ dracut-config-generic \ dracut-network \ net-tools \ grub2-efi-x64-cdboot \ plymouth \ default-fonts-core-sans \ default-fonts-other-sans \ google-noto-sans-cjk-fonts # these are necessary build tools. if you use a separate build container then # these tools should be installed there RUN dnf install -qy \ xorrisofs \ squashfs-tools RUN dnf clean all RUN mkdir -p /boot/efi && cp -ra /usr/lib/efi/*/*/EFI /boot/efi # --- # some configuration for our ISO RUN mkdir -p /usr/lib/image-builder/bootc COPY <> /etc/passwd && \ echo "install::14438:0:99999:7:::\" >> /etc/shadow && \ passwd -d root RUN mv /usr/share/anaconda/list-harddrives-stub /usr/bin/list-harddrives && \ mv /etc/yum.repos.d /etc/anaconda.repos.d && \ ln -s /lib/systemd/system/anaconda.target /etc/systemd/system/default.target && \ rm -v /usr/lib/systemd/system-generators/systemd-gpt-auto-generator RUN ln -s /usr/lib/systemd/system/anaconda-shell@.service /usr/lib/systemd/system/autovt@.service RUN mkdir /usr/lib/systemd/logind.conf.d COPY < registrations.json <