# Generated by pykickstart v3.47 #version=DEVEL # Use text mode install text # Firewall configuration firewall --enabled --service=mdns # Run the Setup Agent on first boot firstboot --reconfig # Keyboard layouts keyboard 'us' # System language lang en_US.UTF-8 # Network information network --bootproto=dhcp --device=link --activate # Shutdown after installation shutdown repo --name="koji-override-0" --baseurl=http://fedora.riscv.rocks/compose/rawhide/Fedora-Rawhide-20230915.n.0/compose/Server/riscv64/os # Root password rootpw --iscrypted --lock locked # SELinux configuration selinux --enforcing # System services services --enabled="sshd,NetworkManager,chronyd,initial-setup" # System timezone timezone US/Eastern # Use network installation url --url="http://fedora.riscv.rocks/compose/rawhide/Fedora-Rawhide-20230915.n.0/compose/Server/riscv64/os" # System bootloader configuration bootloader --location=mbr --timeout=1 autopart --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" ]]; then cp -P /usr/share/uboot/rpi_arm64/u-boot.bin /boot/efi/rpi-u-boot.bin 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" ]]; then sed -i -e 's|console=tty0||g' /boot/loader/entries/*conf fi %end %post # setup systemd to boot to the right runlevel echo -n "Setting default runlevel to multiuser text mode" rm -f /etc/systemd/system/default.target ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target echo . %end %packages @container-management @core @domain-client @guest-agents @hardware-support @headless-management @networkmanager-submodules @server-hardware-support @server-product @standard chrony dracut-config-generic fedora-release-server glibc-all-langpacks initial-setup kernel -dracut-config-rescue -generic-release* -initial-setup-gui -ipw* -iwl* -usb_modeswitch %end