# Generated by pykickstart v3.34 #version=DEVEL # Keyboard layouts keyboard 'us' # Root password rootpw --iscrypted --lock locked # System language lang en_US.UTF-8 # Shutdown after installation shutdown # Use text mode install text # Network information network --bootproto=dhcp --device=link --activate # Firewall configuration firewall --enabled --service=mdns,presence # Use network installation url --url="https://kojipkgs.fedoraproject.org/compose/rawhide/Fedora-Rawhide-20220514.n.0/compose/Everything/aarch64/os" repo --name="koji-override-0" --baseurl=https://kojipkgs.fedoraproject.org/compose/rawhide/Fedora-Rawhide-20220514.n.0/compose/Everything/aarch64/os # System timezone timezone US/Eastern # Run the Setup Agent on first boot firstboot --reconfig # SELinux configuration selinux --enforcing # System services services --enabled="sshd,NetworkManager,chronyd" # System bootloader configuration bootloader --location=mbr --timeout=1 autopart --type=btrfs --noswap # Clear the Master Boot Record zerombr # Partition clearing information clearpart --all --initlabel --disklabel=msdos %post # Find the architecture we are on arch=$(uname -m) # Setup Raspberry Pi firmware if [[ $arch == "aarch64" ]] || [[ $arch == "armv7l" ]]; then if [[ $arch == "aarch64" ]]; then cp -P /usr/share/uboot/rpi_3/u-boot.bin /boot/efi/rpi3-u-boot.bin cp -P /usr/share/uboot/rpi_4/u-boot.bin /boot/efi/rpi4-u-boot.bin cp -P /usr/share/uboot/rpi_arm64/u-boot.bin /boot/efi/rpi-u-boot.bin else cp -P /usr/share/uboot/rpi_2/u-boot.bin /boot/efi/rpi2-u-boot.bin cp -P /usr/share/uboot/rpi_3_32b/u-boot.bin /boot/efi/rpi3-u-boot.bin cp -P /usr/share/uboot/rpi_4_32b/u-boot.bin /boot/efi/rpi4-u-boot.bin fi fi releasever=$(rpm --eval '%{fedora}') rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-primary echo "Packages within this disk image" rpm -qa --qf '%{size}\t%{name}-%{version}-%{release}.%{arch}\n' |sort -rn # remove random seed, the newly installed instance should make it's own rm -f /var/lib/systemd/random-seed # The enp1s0 interface is a left over from the imagefactory install, clean this up rm -f /etc/NetworkManager/system-connections/*.nmconnection dnf -y remove dracut-config-generic # Remove machine-id on pre generated images rm -f /etc/machine-id touch /etc/machine-id # Note that running rpm recreates the rpm db files which aren't needed or wanted rm -f /var/lib/rpm/__db* # Anaconda adds console=tty0 to the grub boot line on all images. this is problematic # when you are using fedora via serial console as you do not get any output post grub # linux does a good job of knowing what consoles need to be enabled. # https://bugzilla.redhat.com/show_bug.cgi?id=2022757 if [[ $arch == "aarch64" ]] || [[ $arch == "armv7l" ]]; then sed -i -e 's|console=tty0||g' /boot/loader/entries/*conf fi %end %post # Explicitly set graphical.target as default as this is how initial-setup detects which version to run ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target %end %post # Get proper release naming in the control panel cat >> /boot/olpc_build << EOF Sugar on a Stick EOF cat /etc/fedora-release >> /boot/olpc_build # Rebuild initrd for Sugar boot screen KERNEL_VERSION=$(rpm -q kernel --qf '%{version}-%{release}.%{arch}\n') /usr/sbin/plymouth-set-default-theme sugar dracut -N -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION # Note that running rpm recreates the rpm db files which aren't needed or wanted rm -f /var/lib/rpm/__db* cat > /etc/sysconfig/desktop </usr/share/glib-2.0/schemas/sugar.soas.gschema.override <