Update packages for disk image

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2023-07-06 12:16:31 +03:00
parent 2baea96b5c
commit b9dcae9607
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 42 additions and 30 deletions

View File

@ -86,11 +86,16 @@ extra-cmake-modules
elfutils elfutils
gdisk gdisk
util-linux util-linux
gparted
parted parted
fpaste fpaste
vim-common vim-common
hexedit hexedit
xxd
hexyl
poke
poke-devel
poke-vim
poke-emacs
koji-builder koji-builder
mc mc
evemu evemu
@ -98,12 +103,13 @@ lftp
mtr mtr
traceroute traceroute
wget wget
curl
aria2 aria2
incron incron
emacs emacs
vim vim
neofetch neofetch
bash-completion #bash-completion
zsh zsh
tcsh tcsh
nvme-cli nvme-cli
@ -115,22 +121,14 @@ bison
elfutils-devel elfutils-devel
flex flex
m4 m4
man-db
net-tools net-tools
openssl-devel openssl-devel
perl-devel perl-devel
perl-generators perl-generators
pesign pesign
xterm
fluxbox
elinks elinks
lynx lynx
awesome
midori
dillo
epiphany
i3
sway
pcmanfm
entr entr
cowsay cowsay
ack ack
@ -214,23 +212,16 @@ gcc
gcc-c++ gcc-c++
gcc-gdb-plugin gcc-gdb-plugin
gcc-gfortran gcc-gfortran
gcc-go
gcc-plugin-devel gcc-plugin-devel
libatomic libatomic
libatomic-static libatomic-static
libgcc libgcc
libgfortran libgfortran
libgfortran-static libgfortran-static
libgo
libgo-devel
libgo-static
libgomp libgomp
libstdc++ libstdc++
libstdc++-devel libstdc++-devel
libstdc++-static libstdc++-static
gcc-gdc
libgphobos
libgphobos-static
pax-utils pax-utils
gcc-gnat gcc-gnat
libgnat libgnat
@ -239,15 +230,6 @@ libgnat-static
usbutils usbutils
haveged haveged
# end of gcc packages # end of gcc packages
# Add dejavu fonts
dejavu-fonts-all
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
watchdog watchdog
-grubby -grubby
@ -348,8 +330,24 @@ glib-devel
glib2-devel glib2-devel
json-c-devel json-c-devel
libbsd-devel libbsd-devel
libxcb-devel
zlib-devel zlib-devel
xxhash-devel
xz-devel xz-devel
mpfr-devel
libmd-devel
libjpeg-devel
libglvnd-devel
libglvnd-core-devel
libgcrypt-devel
libgbm-devel
kmod-devel
keyutils-libs-devel
Judy-devel
eigen3-devel
libaio-devel
xorg-x11-proto
lksctp-tools-devel
brotli-devel brotli-devel
libuv-devel libuv-devel
libnghttp2-devel libnghttp2-devel
@ -361,6 +359,7 @@ libXrender-devel
libXrandr-devel libXrandr-devel
libXi-devel libXi-devel
libXext-devel libXext-devel
libXau-devel
cups-devel cups-devel
fontconfig-devel fontconfig-devel
alsa-lib-devel alsa-lib-devel
@ -373,6 +372,10 @@ python3-rpmautospec
rpmautospec rpmautospec
rpmautospec-rpm-macros rpmautospec-rpm-macros
koji-builder-plugins koji-builder-plugins
golang
rust
cargo
%end %end
%post %post
@ -409,6 +412,7 @@ cat > /etc/rc.d/init.d/livesys << EOF
useradd -c "Fedora RISCV User" riscv useradd -c "Fedora RISCV User" riscv
echo fedora_rocks! | passwd --stdin riscv > /dev/null echo fedora_rocks! | passwd --stdin riscv > /dev/null
usermod -aG wheel riscv > /dev/null usermod -aG wheel riscv > /dev/null
usermod -aG mock riscv > /dev/null
exit 0 exit 0
EOF EOF
@ -457,6 +461,10 @@ EOF
# only problem is they are the same serial console. Mask one. # only problem is they are the same serial console. Mask one.
systemctl mask serial-getty@hvc0.service systemctl mask serial-getty@hvc0.service
# Disable tmpfs for /tmp
# Most boards don't have a lot of RAM.
systemctl mask tmp.mount
# setup login message # setup login message
cat << EOF | tee /etc/issue /etc/issue.net cat << EOF | tee /etc/issue /etc/issue.net
Welcome to the Fedora/RISC-V disk image Welcome to the Fedora/RISC-V disk image
@ -468,7 +476,8 @@ Kernel \r on an \m (\l)
The root password is 'fedora_rocks!'. The root password is 'fedora_rocks!'.
root password logins are disabled in SSH starting Fedora 31. root password logins are disabled in SSH starting Fedora 31.
User 'riscv' with password 'fedora_rocks!' in 'wheel' group is provided. User 'riscv' with password 'fedora_rocks!' in 'wheel' and 'mock' groups
is provided.
To install new packages use 'dnf install ...' To install new packages use 'dnf install ...'
@ -497,8 +506,11 @@ rm -f /var/lib/systemd/random-seed
# Note that running rpm recreates the rpm db files which aren't needed or wanted # Note that running rpm recreates the rpm db files which aren't needed or wanted
rm -f /var/lib/rpm/__db* rm -f /var/lib/rpm/__db*
# The enp1s0 interface is a left over from the imagefactory install, clean this up # go ahead and pre-make the man -k cache (#455968)
rm -f /etc/NetworkManager/system-connections/*.nmconnection /usr/bin/mandb
# make sure there aren't core files lying around
rm -f /core*
releasever=$(rpm --eval '%{fedora}') releasever=$(rpm --eval '%{fedora}')
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-primary rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-primary