Listing 1: Automatische Installation ### Mit der Kickstartdatei "osbuild.ks" führt und Container starten Anaconda eine automatische Installation des OSTree-Commits durch. mount -o loop 9011a45c-187c-4008-8614- 5f11b4318b29-installer.iso /mnt grep osbuild.ks /mnt/isolinux/isolinux.cfg append initrd=initrd.img inst.stage2=hd: LABEL=Fedora-39-BaseOS-x86_64 inst.ks=hd:LABEL=Fedora-39-BaseOSx86_64:/osbuild.ks quiet cat /mnt/osbuild.ks ostreesetup --osname=fedora --url=file:///run/install/repo/ostree/repo --ref=fedora/39/x86_64/iot --nogpg cat /mnt/ostree/repo/refs/heads/fedora/39/ x86_64/iot a5d5a30deb39843c2e3db1d28a8535f6cd071f6a40671 54979e9b518e76e5f3f Listing 2: TAR-Archiv laden ### Das soeben erzeugte tar-Archiv laden Sie in die lokale Registry und starten im Anschluss einen neuen Container. cat 2b017834-e299-419c-99ae-edf15d9ac61f-container.tar | podman load Getting image source signatures Copying blob 260eb59aac7b done | Copying config 3d40335eb2 done | Writing manifest to image destination Loaded image: sha256:3d40335eb2c52e90212a7d274b93c1256d8 c3bfc8c76a091cd60e999dae3890a podman tag 3d40335eb2c52e90212a7d274b93c1256d8c3bfc8c 76a091cd60e999dae3890a localhost/iot-tmuximage podman run --rm -d -p 8080:8080 --name ostree-repo localhost/iot-tmux-image Listing 4: Datei "installer.toml" ## TOML-Datei zum Erzeugen des bootfähigen OSTree-Images. name = "installer" description = "Empty blueprint" version = "0.0.1" composer-cli blueprints push installer.toml composer-cli compose start-ostree --ref "fedora/39/x86_64/iot" --url http://10.88.0.2:8080/repo/ installer fedora-iot-installer