#version=DEVEL # Keyboard layouts keyboard 'us' # Root password rootpw --plaintext fedora_riscv # System language lang en_US.UTF-8 # Shutdown after installation shutdown user --groups=wheel --name=riscv --password=fedora_riscv # System timezone timezone America/New_York --isUtc # Use text mode install text # Network information network --bootproto=dhcp --device=link --hostname=fedora-riscv # Firewall configuration firewall --enabled --service=ssh repo --name="koji-override-0" --baseurl=http://fedora.riscv.rocks/repos-dist/rawhide/latest/riscv64/ # SELinux configuration selinux --enforcing # System services services --disabled="lm_sensors" --enabled="sshd,NetworkManager,chronyd,haveged" # System bootloader configuration bootloader --location=none --extlinux # Clear the Master Boot Record zerombr # Partition clearing information clearpart --all --initlabel --disklabel=gpt # Disk partitioning information part /boot --asprimary --fstype="ext4" --size=512 part / --fstype="ext4" --size=7680 %post # Disable default repositories (not riscv64 in upstream) dnf config-manager --set-disabled rawhide updates updates-testing fedora fedora-modular fedora-cisco-openh264 updates-modular updates-testing-modular rawhide-modular # systemd on no-SMP boots (i.e. single core) sometimes timeout waiting for storage # devices. After entering emergency prompt all disk are mounted. # For more information see: # https://www.suse.com/support/kb/doc/?id=7018491 # https://www.freedesktop.org/software/systemd/man/systemd.mount.html # https://github.com/systemd/systemd/issues/3446 # We modify /etc/fstab to give more time for device detection (the problematic part) # and mounting processes. This should help on systems where boot takes longer. sed -i 's|noatime|noatime,x-systemd.device-timeout=300s,x-systemd.mount-timeout=300s|g' /etc/fstab # Create Fedora RISC-V repo cat << EOF > /etc/yum.repos.d/fedora-riscv.repo [fedora-riscv] name=Fedora RISC-V baseurl=http://fedora.riscv.rocks/repos-dist/rawhide/latest/riscv64/ #baseurl=https://dl.fedoraproject.org/pub/alt/risc-v/repo/fedora/rawhide/latest/riscv64/ #baseurl=https://mirror.math.princeton.edu/pub/alt/risc-v/repo/fedora/rawhide/latest/riscv64/ enabled=1 gpgcheck=0 [fedora-riscv-debuginfo] name=Fedora RISC-V - Debug baseurl=http://fedora.riscv.rocks/repos-dist/rawhide/latest/riscv64/debug/ #baseurl=https://dl.fedoraproject.org/pub/alt/risc-v/repo/fedora/rawhide/latest/riscv64/debug/ #baseurl=https://mirror.math.princeton.edu/pub/alt/risc-v/repo/fedora/rawhide/latest/riscv64/debug/ enabled=0 gpgcheck=0 [fedora-riscv-source] name=Fedora RISC-V - Source baseurl=http://fedora.riscv.rocks/repos-dist/rawhide/latest/src/ #baseurl=https://dl.fedoraproject.org/pub/alt/risc-v/repo/fedora/rawhide/latest/src/ #baseurl=https://mirror.math.princeton.edu/pub/alt/risc-v/repo/fedora/rawhide/latest/src/ enabled=0 gpgcheck=0 EOF # Create Fedora RISC-V Koji repo cat << EOF > /etc/yum.repos.d/fedora-riscv-koji.repo [fedora-riscv-koji] name=Fedora RISC-V Koji baseurl=http://fedora.riscv.rocks/repos/rawhide/latest/riscv64/ enabled=0 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 disk image https://fedoraproject.org/wiki/Architectures/RISC-V Build date: $(date --utc) Kernel \r on an \m (\l) The root password is 'fedora_riscv'. root password logins are disabled in SSH starting Fedora 31. User 'riscv' with password 'fedora_riscv' in 'wheel' group is provided. To install new packages use 'dnf install ...' To upgrade disk image use 'dnf upgrade --best' 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.rocks/koji/ SCM: http://fedora.riscv.rocks:3000/ Distribution rep.: http://fedora.riscv.rocks/repos-dist/ Koji internal rep.: http://fedora.riscv.rocks/repos/ EOF %end %packages @base-x @buildsys-build @c-development @core @development-tools @hardware-support @rpm-development-tools ack appliance-tools aria2 audit autoconf autoconf-archive automake awesome axel bash-completion bc bind-utils binwalk bison bpftool btrfs-progs chrony cmake colordiff coreutils cowsay cpp dejavu-fonts-common dejavu-lgc-sans-fonts dejavu-lgc-sans-mono-fonts dejavu-lgc-serif-fonts dejavu-sans-fonts dejavu-sans-mono-fonts dejavu-serif-fonts dillo dosfstools dtc e2fsprogs elfutils elfutils-devel elinks emacs entr epiphany ethtool evemu execstack extlinux-bootloader extra-cmake-modules f2fs-tools fedora-bbl fedora-bbl-nopayload fedpkg flex fluxbox fpaste freedom-u540-c000-bootloader gcc gcc-c++ gcc-gdb-plugin gcc-gdc gcc-gfortran gcc-gnat gcc-go gcc-plugin-devel gdb gdisk gettext git glibc-langpack-en glibc-static gparted grubby-deprecated haveged hdparm hexedit hostname htop i3 incron inxi iptables-services isomd5sum jfsutils kernel kernel-core kernel-devel kernel-modules kernel-modules-extra kernel-tools koji-builder kpartx lftp libatomic libatomic-static libgcc libgfortran libgfortran-static libgnat libgnat-devel libgnat-static libgo libgo-devel libgo-static libgomp libgphobos libgphobos-static libguestfs-tools-c libstdc++ libstdc++-devel libstdc++-static libtool linux-firmware livecd-tools lsof lynx m4 mailx mc midori moreutils mtd-utils mtr mutt nano ncdu neofetch neovim net-tools nfs-utils ninja-build nnn ntfsprogs nvme-cli openrdate opensbi-unstable opensbi-unstable-fedora opensbi-unstable-images-riscv64 openssh openssh-server openssl-devel parted patchutils pax-utils pciutils pcmanfm perf perl-devel perl-generators pesign policycoreutils policycoreutils-python-utils prettyping pv pycdio pykickstart python-imgcreate-sysdeps python3-imgcreate python3-isomd5sum python3-kickstart python3-ordered-set python3-perf python3-pyelftools python3-pyparted qemu-guest-agent qemu-img rpkg rpmdevtools rsync screen selinux-policy selinux-policy-targeted setools-console setroubleshoot-server strace stress-ng sway systemd-udev texinfo the_silver_searcher tldr tmux uboot-images-riscv64 uboot-tools udftools usbutils util-linux vim vim-common vim-minimal wget xfsprogs xterm zsh -grubby %end