2018-08-30 11:25:06 +00:00
|
|
|
|
# Kickstart file for Fedora RISC-V (riscv64) GNOME Rawhide
|
|
|
|
|
|
2019-01-08 18:00:11 +00:00
|
|
|
|
#repo --name="koji-override-0" --baseurl=http://fedora-riscv.tranquillity.se/repos-dist/rawhide/latest/riscv64/
|
2018-08-30 11:25:06 +00:00
|
|
|
|
|
|
|
|
|
install
|
|
|
|
|
text
|
|
|
|
|
#reboot
|
|
|
|
|
lang en_US.UTF-8
|
|
|
|
|
keyboard us
|
|
|
|
|
# short hostname still allows DHCP to assign domain name
|
|
|
|
|
network --bootproto dhcp --device=link --hostname=fedora-riscv
|
|
|
|
|
rootpw riscv
|
|
|
|
|
firewall --enabled --ssh
|
|
|
|
|
timezone --utc America/New_York
|
2019-08-23 05:10:55 +00:00
|
|
|
|
selinux --enforcing
|
|
|
|
|
services --enabled=sshd,NetworkManager,chronyd,haveged --disabled=lm_sensors
|
2018-08-30 11:25:06 +00:00
|
|
|
|
|
2019-08-23 05:10:55 +00:00
|
|
|
|
bootloader --location=none --extlinux
|
2018-08-30 11:25:06 +00:00
|
|
|
|
|
|
|
|
|
zerombr
|
|
|
|
|
clearpart --all --initlabel --disklabel=gpt
|
2019-08-23 05:10:55 +00:00
|
|
|
|
part /boot --size=512 --fstype ext4 --asprimary
|
2018-11-12 07:50:22 +00:00
|
|
|
|
part / --fstype="ext4" --size=7680
|
2018-08-30 11:25:06 +00:00
|
|
|
|
|
|
|
|
|
# Halt the system once configuration has finished.
|
|
|
|
|
poweroff
|
|
|
|
|
|
|
|
|
|
%packages
|
|
|
|
|
@core
|
|
|
|
|
@buildsys-build
|
|
|
|
|
@base-x
|
|
|
|
|
@hardware-support
|
2019-08-23 05:10:55 +00:00
|
|
|
|
@rpm-development-tools
|
|
|
|
|
@c-development
|
|
|
|
|
@development-tools
|
2018-08-30 11:25:06 +00:00
|
|
|
|
@gnome-desktop
|
|
|
|
|
|
2018-11-12 07:50:22 +00:00
|
|
|
|
kernel
|
|
|
|
|
kernel-core
|
|
|
|
|
kernel-devel
|
|
|
|
|
kernel-modules
|
|
|
|
|
kernel-modules-extra
|
|
|
|
|
linux-firmware
|
2019-08-23 05:10:55 +00:00
|
|
|
|
opensbi-unstable
|
|
|
|
|
opensbi-unstable-fedora
|
|
|
|
|
opensbi-unstable-images-riscv64
|
|
|
|
|
extlinux-bootloader
|
|
|
|
|
uboot-tools
|
|
|
|
|
uboot-images-riscv64
|
2018-11-12 07:50:22 +00:00
|
|
|
|
|
2018-08-30 11:25:06 +00:00
|
|
|
|
openssh
|
|
|
|
|
openssh-server
|
|
|
|
|
glibc-langpack-en
|
2019-08-23 05:10:55 +00:00
|
|
|
|
glibc-static
|
2018-08-30 11:25:06 +00:00
|
|
|
|
lsof
|
|
|
|
|
nano
|
|
|
|
|
openrdate
|
|
|
|
|
chrony
|
|
|
|
|
systemd-udev
|
|
|
|
|
vim-minimal
|
|
|
|
|
neovim
|
|
|
|
|
screen
|
|
|
|
|
hostname
|
|
|
|
|
bind-utils
|
|
|
|
|
htop
|
|
|
|
|
tmux
|
|
|
|
|
strace
|
|
|
|
|
pciutils
|
|
|
|
|
nfs-utils
|
|
|
|
|
ethtool
|
|
|
|
|
rsync
|
|
|
|
|
hdparm
|
|
|
|
|
git
|
|
|
|
|
moreutils
|
|
|
|
|
rpmdevtools
|
|
|
|
|
fedpkg
|
|
|
|
|
mailx
|
|
|
|
|
mutt
|
|
|
|
|
patchutils
|
|
|
|
|
ninja-build
|
|
|
|
|
cmake
|
|
|
|
|
extra-cmake-modules
|
|
|
|
|
elfutils
|
|
|
|
|
gdisk
|
|
|
|
|
util-linux
|
|
|
|
|
gparted
|
|
|
|
|
parted
|
|
|
|
|
fpaste
|
|
|
|
|
vim-common
|
|
|
|
|
hexedit
|
|
|
|
|
koji-builder
|
|
|
|
|
mc
|
|
|
|
|
evemu
|
|
|
|
|
lftp
|
|
|
|
|
mtr
|
|
|
|
|
wget
|
|
|
|
|
aria2
|
|
|
|
|
incron
|
|
|
|
|
emacs
|
|
|
|
|
vim
|
|
|
|
|
neofetch
|
|
|
|
|
bash-completion
|
|
|
|
|
zsh
|
|
|
|
|
nvme-cli
|
|
|
|
|
pv
|
|
|
|
|
dtc
|
|
|
|
|
axel
|
|
|
|
|
bc
|
|
|
|
|
bison
|
|
|
|
|
elfutils-devel
|
|
|
|
|
flex
|
|
|
|
|
m4
|
|
|
|
|
net-tools
|
|
|
|
|
openssl-devel
|
|
|
|
|
perl-devel
|
|
|
|
|
perl-generators
|
|
|
|
|
pesign
|
|
|
|
|
xterm
|
|
|
|
|
fluxbox
|
2018-08-31 09:04:51 +00:00
|
|
|
|
elinks
|
|
|
|
|
lynx
|
2018-08-31 11:13:28 +00:00
|
|
|
|
awesome
|
|
|
|
|
midori
|
|
|
|
|
dillo
|
|
|
|
|
epiphany
|
2018-08-31 15:55:36 +00:00
|
|
|
|
i3
|
|
|
|
|
sway
|
2018-09-01 08:30:25 +00:00
|
|
|
|
pcmanfm
|
2018-09-01 09:14:54 +00:00
|
|
|
|
entr
|
|
|
|
|
cowsay
|
|
|
|
|
ack
|
|
|
|
|
the_silver_searcher
|
|
|
|
|
tldr
|
|
|
|
|
ncdu
|
|
|
|
|
colordiff
|
|
|
|
|
prettyping
|
2018-10-13 11:47:19 +00:00
|
|
|
|
qemu-guest-agent
|
2018-10-13 13:50:37 +00:00
|
|
|
|
iptables-services
|
2018-12-05 18:24:06 +00:00
|
|
|
|
autoconf
|
2019-08-23 05:10:55 +00:00
|
|
|
|
autoconf-archive
|
2018-12-05 18:24:06 +00:00
|
|
|
|
automake
|
|
|
|
|
gettext
|
|
|
|
|
nnn
|
|
|
|
|
gdb
|
|
|
|
|
libtool
|
2018-12-05 21:55:14 +00:00
|
|
|
|
texinfo
|
2019-08-23 05:10:55 +00:00
|
|
|
|
policycoreutils
|
|
|
|
|
policycoreutils-python-utils
|
|
|
|
|
setools-console
|
|
|
|
|
coreutils
|
|
|
|
|
setroubleshoot-server
|
|
|
|
|
audit
|
|
|
|
|
selinux-policy
|
|
|
|
|
selinux-policy-targeted
|
|
|
|
|
execstack
|
|
|
|
|
stress-ng
|
|
|
|
|
python3-pyelftools
|
|
|
|
|
inxi
|
2018-08-30 11:25:06 +00:00
|
|
|
|
# Below packages are needed for creating disk images via koji-builder
|
|
|
|
|
livecd-tools
|
|
|
|
|
python-imgcreate-sysdeps
|
|
|
|
|
python3-imgcreate
|
|
|
|
|
python3-pyparted
|
|
|
|
|
isomd5sum
|
|
|
|
|
python3-isomd5sum
|
|
|
|
|
pykickstart
|
|
|
|
|
python3-kickstart
|
|
|
|
|
python3-ordered-set
|
|
|
|
|
appliance-tools
|
|
|
|
|
pycdio
|
|
|
|
|
qemu-img
|
|
|
|
|
# end of creating disk image packages list
|
2019-08-23 05:10:55 +00:00
|
|
|
|
dosfstools
|
|
|
|
|
btrfs-progs
|
|
|
|
|
e2fsprogs
|
|
|
|
|
f2fs-tools
|
|
|
|
|
jfsutils
|
|
|
|
|
mtd-utils
|
|
|
|
|
ntfsprogs
|
|
|
|
|
udftools
|
|
|
|
|
xfsprogs
|
|
|
|
|
kpartx
|
|
|
|
|
libguestfs-tools-c
|
|
|
|
|
rpkg
|
|
|
|
|
binwalk
|
|
|
|
|
bpftool
|
|
|
|
|
kernel-tools
|
|
|
|
|
perf
|
|
|
|
|
python3-perf
|
|
|
|
|
# Add gcc packages
|
|
|
|
|
cpp
|
|
|
|
|
gcc
|
|
|
|
|
gcc-c++
|
|
|
|
|
gcc-gdb-plugin
|
|
|
|
|
gcc-gfortran
|
|
|
|
|
gcc-go
|
|
|
|
|
gcc-plugin-devel
|
|
|
|
|
libatomic
|
|
|
|
|
libatomic-static
|
|
|
|
|
libgcc
|
|
|
|
|
libgfortran
|
|
|
|
|
libgfortran-static
|
|
|
|
|
libgo
|
|
|
|
|
libgo-devel
|
|
|
|
|
libgo-static
|
|
|
|
|
libgomp
|
|
|
|
|
libstdc++
|
|
|
|
|
libstdc++-devel
|
|
|
|
|
libstdc++-static
|
|
|
|
|
gcc-gdc
|
|
|
|
|
libgphobos
|
|
|
|
|
libgphobos-static
|
|
|
|
|
pax-utils
|
|
|
|
|
gcc-gnat
|
|
|
|
|
libgnat
|
|
|
|
|
libgnat-devel
|
|
|
|
|
libgnat-static
|
|
|
|
|
usbutils
|
|
|
|
|
haveged
|
|
|
|
|
# end of gcc packages
|
2018-09-21 05:37:15 +00:00
|
|
|
|
# Add dejavu fonts
|
|
|
|
|
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
|
|
|
|
|
# end of dejavu fonts
|
2019-08-23 05:10:55 +00:00
|
|
|
|
|
|
|
|
|
-grubby
|
|
|
|
|
grubby-deprecated
|
2018-08-30 11:25:06 +00:00
|
|
|
|
%end
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
# Disable default repositories (not riscv64 in upstream)
|
2019-08-23 05:10:55 +00:00
|
|
|
|
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
|
2018-08-30 11:25:06 +00:00
|
|
|
|
|
|
|
|
|
# Create Fedora RISC-V repo
|
|
|
|
|
cat << EOF > /etc/yum.repos.d/fedora-riscv.repo
|
|
|
|
|
[fedora-riscv]
|
|
|
|
|
name=Fedora RISC-V
|
2019-01-08 18:00:11 +00:00
|
|
|
|
baseurl=http://fedora-riscv.tranquillity.se/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/
|
2018-08-30 11:25:06 +00:00
|
|
|
|
enabled=1
|
|
|
|
|
gpgcheck=0
|
2018-10-03 10:08:56 +00:00
|
|
|
|
|
|
|
|
|
[fedora-riscv-debuginfo]
|
|
|
|
|
name=Fedora RISC-V - Debug
|
2019-01-08 18:00:11 +00:00
|
|
|
|
baseurl=http://fedora-riscv.tranquillity.se/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/
|
2018-10-03 10:08:56 +00:00
|
|
|
|
enabled=0
|
|
|
|
|
gpgcheck=0
|
|
|
|
|
|
|
|
|
|
[fedora-riscv-source]
|
|
|
|
|
name=Fedora RISC-V - Source
|
2019-01-08 18:00:11 +00:00
|
|
|
|
baseurl=http://fedora-riscv.tranquillity.se/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/
|
2018-10-03 10:08:56 +00:00
|
|
|
|
enabled=0
|
|
|
|
|
gpgcheck=0
|
2018-08-30 11:25:06 +00:00
|
|
|
|
EOF
|
|
|
|
|
|
2018-09-01 08:35:10 +00:00
|
|
|
|
# Create Fedora RISC-V Koji repo
|
|
|
|
|
cat << EOF > /etc/yum.repos.d/fedora-riscv-koji.repo
|
|
|
|
|
[fedora-riscv-koji]
|
|
|
|
|
name=Fedora RISC-V Koji
|
2019-01-08 18:00:11 +00:00
|
|
|
|
baseurl=http://fedora-riscv.tranquillity.se/repos/rawhide/latest/riscv64/
|
2018-09-01 08:35:10 +00:00
|
|
|
|
enabled=0
|
|
|
|
|
gpgcheck=0
|
|
|
|
|
EOF
|
|
|
|
|
|
2018-08-30 11:25:06 +00:00
|
|
|
|
# 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 ‘riscv’.
|
|
|
|
|
|
|
|
|
|
To install new packages use 'dnf install ...'
|
|
|
|
|
|
2018-08-30 15:24:06 +00:00
|
|
|
|
To upgrade disk image use 'dnf upgrade --best'
|
2018-08-30 11:25:06 +00:00
|
|
|
|
|
|
|
|
|
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/
|
|
|
|
|
SCM: http://fedora-riscv.tranquillity.se:3000/
|
|
|
|
|
Distribution rep.: http://fedora-riscv.tranquillity.se/repos-dist/
|
|
|
|
|
Koji internal rep.: http://fedora-riscv.tranquillity.se/repos/
|
|
|
|
|
EOF
|
|
|
|
|
%end
|
|
|
|
|
|
|
|
|
|
# EOF
|