#version=DEVEL # Keyboard layouts keyboard 'us' # Root password rootpw --plaintext riscv # System language lang en_US.UTF-8 # Shutdown after installation shutdown # System timezone timezone America/New_York --isUtc # Use text mode install text # Network information network --bootproto=dhcp --device=link --hostname=fedora-riscv repo --name="koji-override-0" --baseurl=http://fedora-riscv.tranquillity.se/repos-dist/rawhide/latest/riscv64/ # Firewall configuration firewall --enabled --service=ssh # SELinux configuration selinux --disabled # System services services --enabled="sshd,NetworkManager,chronyd" # System bootloader configuration bootloader --disabled # Clear the Master Boot Record zerombr # Partition clearing information clearpart --all --initlabel --disklabel=gpt # Disk partitioning information part / --fstype="ext4" --size=3968 %post # Disable default repositories (not riscv64 in upstream) dnf config-manager --set-disabled rawhide updates updates-testing fedora fedora-modular fedora-cisco-openh264 # Create Fedora RISC-V repo cat << EOF > /etc/yum.repos.d/fedora-riscv.repo [fedora-riscv] name=Fedora RISC-V baseurl=http://fedora-riscv.tranquillity.se/repos-dist/rawhide/latest/riscv64/ enabled=1 gpgcheck=0 EOF # systemd starts serial consoles on /dev/ttyS0 and /dev/hvc0. The # only problem is they are the same serial console. Mask one. systemctl mask serial-getty@hvc0.service # setup login message cat << EOF | tee /etc/issue /etc/issue.net Welcome to the Fedora/RISC-V stage5 disk image https://fedoraproject.org/wiki/Architectures/RISC-V Build date: $(date --utc) Kernel \r on an \m (\l) The root password is ‘riscv’. To install new packages use ‘dnf install ...’ If DNS isn’t working, try editing ‘/etc/yum.repos.d/fedora-riscv.repo’. For updates and latest information read: https://fedorapeople.org/groups/risc-v/disk-images/readme.txt Fedora/RISC-V Koji: http://fedora-riscv.tranquillity.se/koji/ Fedora/RISC-V SCM: http://fedora-riscv.tranquillity.se:3000/ EOF %end %packages @buildsys-build @core bind-utils chrony ethtool fedpkg git glibc-langpack-en hdparm hostname htop lsof mailx moreutils mutt nano neovim nfs-utils openrdate openssh openssh-server patchutils pciutils rpmdevtools rsync screen strace systemd-udev tmux vim-minimal %end