#version=DEVEL # Keyboard layouts keyboard 'us' # Root password rootpw --iscrypted --lock locked # System language lang en_US.UTF-8 # Shutdown after installation shutdown # System timezone timezone Asia/Shanghai # Use text mode install text # Network information #network --bootproto=dhcp --device=link --activate network --bootproto=dhcp --device=link --activate #repo --name="koji-override-0" --baseurl=https://kojipkgs.fedoraproject.org/compose/rawhide/Fedora-Rawhide-20191111.n.0/compose/Server/aarch64/os repo --name="koji" --baseurl=https://mirrors.tuna.tsinghua.edu.cn/fedora/releases/37/Server/x86_64/os # Use network installation #url --url="https://kojipkgs.fedoraproject.org/compose/rawhide/Fedora-Rawhide-20191111.n.0/compose/Server/aarch64/os" url --url="https://mirrors.tuna.tsinghua.edu.cn/fedora/releases/37/Server/x86_64/os" # System authorization information #auth --useshadow --passalgo=sha512 # Firewall configuration firewall --enabled --service=mdns # Run the Setup Agent on first boot firstboot --reconfig # SELinux configuration #selinux --enforcing # System services services --enabled="sshd,NetworkManager,chronyd,initial-setup" # 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 # Setup Raspberry Pi firmware #cp -P /usr/share/uboot/rpi_3/u-boot.bin /boot/efi/rpi3-u-boot.bin #releasever=$(rpm --eval '%{fedora}') #rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-primary #echo "Packages within this disk image" #rpm -qa # Note that running rpm recreates the rpm db files which aren't needed or wanted rm -f /var/lib/rpm/__db* # 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/sysconfig/network-scripts/ifcfg-enp1s0 dnf -y remove dracut-config-generic # Disable network service here, as doing it in the services line # fails due to RHBZ #1369794 /sbin/chkconfig network off # Remove machine-id on pre generated images rm -f /etc/machine-id touch /etc/machine-id %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 #@arm-tools @container-management @core @domain-client @guest-agents @hardware-support @headless-management @networkmanager-submodules @server-hardware-support @server-product @standard #bcm283x-firmware chrony dracut-config-generic glibc-all-langpacks initial-setup kernel #rng-tools #zram -dracut-config-rescue -generic-release* -initial-setup-gui -ipw* -iwl* -uboot-images-armv7 -usb_modeswitch %end