Compare commits
7 Commits
ca65be1bdb
...
6c0c1cdde5
Author | SHA1 | Date |
---|---|---|
Andrea Bolognani | 6c0c1cdde5 | |
Andrea Bolognani | 40b7729123 | |
Andrea Bolognani | 4a455dc878 | |
Andrea Bolognani | f878489f61 | |
Andrea Bolognani | a59e412a4d | |
Andrea Bolognani | db25fe7de6 | |
Andrea Bolognani | eedd994158 |
|
@ -13,7 +13,7 @@ rootpw --plaintext fedora_rocks!
|
||||||
firewall --enabled --ssh
|
firewall --enabled --ssh
|
||||||
timezone --utc US/Eastern
|
timezone --utc US/Eastern
|
||||||
selinux --enforcing
|
selinux --enforcing
|
||||||
services --enabled=sshd,NetworkManager,chronyd,haveged --disabled=lm_sensors,libvirtd
|
services --disabled=lm_sensors,libvirtd
|
||||||
|
|
||||||
zerombr
|
zerombr
|
||||||
clearpart --all --initlabel --disklabel=gpt
|
clearpart --all --initlabel --disklabel=gpt
|
||||||
|
@ -38,15 +38,14 @@ poweroff
|
||||||
@development-tools
|
@development-tools
|
||||||
@anaconda-tools
|
@anaconda-tools
|
||||||
|
|
||||||
# This is needed for appliance-tools, as it cannot see what packages are incl.
|
# GRUB2
|
||||||
# in the @anaconda-tools.
|
|
||||||
grub2-efi-riscv64
|
grub2-efi-riscv64
|
||||||
grub2-efi-riscv64-modules
|
grub2-efi-riscv64-modules
|
||||||
efibootmgr
|
efibootmgr
|
||||||
|
|
||||||
# Add for sd-boot
|
# Add for sd-boot
|
||||||
# systemd-boot-unsigned
|
#systemd-boot-unsigned
|
||||||
# edk2-ext4
|
#edk2-ext4
|
||||||
|
|
||||||
kernel
|
kernel
|
||||||
kernel-core
|
kernel-core
|
||||||
|
@ -61,14 +60,17 @@ uboot-images-riscv64
|
||||||
dracut-config-generic
|
dracut-config-generic
|
||||||
-dracut-config-rescue
|
-dracut-config-rescue
|
||||||
|
|
||||||
|
# For user creation and manipulation
|
||||||
|
shadow-utils
|
||||||
passwd
|
passwd
|
||||||
|
|
||||||
# Adding kiwi for disk image generation
|
# Adding kiwi for disk image generation
|
||||||
kiwi-cli
|
kiwi-cli
|
||||||
|
|
||||||
openssh
|
# Install the English locale, but not all the other ones
|
||||||
openssh-server
|
|
||||||
glibc-langpack-en
|
glibc-langpack-en
|
||||||
|
-glibc-all-langpacks
|
||||||
|
|
||||||
glibc-static
|
glibc-static
|
||||||
lsof
|
lsof
|
||||||
nano
|
nano
|
||||||
|
@ -252,10 +254,6 @@ haveged
|
||||||
# end of gcc packages
|
# end of gcc packages
|
||||||
watchdog
|
watchdog
|
||||||
|
|
||||||
# No longer in @core since 2018-10, but needed for livesys script
|
|
||||||
initscripts
|
|
||||||
chkconfig
|
|
||||||
|
|
||||||
# Lets resize / on first boot
|
# Lets resize / on first boot
|
||||||
#dracut-modules-growroot
|
#dracut-modules-growroot
|
||||||
|
|
||||||
|
@ -423,32 +421,11 @@ dnf -y remove dracut-config-generic
|
||||||
# and mounting processes. This should help on systems where boot takes longer.
|
# 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
|
sed -i 's|noatime|noatime,x-systemd.device-timeout=300s,x-systemd.mount-timeout=300s|g' /etc/fstab
|
||||||
|
|
||||||
# Fedora 31
|
# Create regular user
|
||||||
# https://fedoraproject.org/wiki/Changes/DisableRootPasswordLoginInSshd
|
/usr/sbin/useradd -c "Fedora RISCV User" riscv
|
||||||
cat > /etc/rc.d/init.d/livesys << EOF
|
echo fedora_rocks! | passwd --stdin riscv
|
||||||
#!/bin/bash
|
/usr/sbin/usermod -aG wheel riscv
|
||||||
#
|
/usr/sbin/usermod -aG mock riscv
|
||||||
# live: Init script for live image
|
|
||||||
#
|
|
||||||
# chkconfig: 345 00 99
|
|
||||||
# description: Init script for live image.
|
|
||||||
### BEGIN INIT INFO
|
|
||||||
# X-Start-Before: display-manager chronyd
|
|
||||||
### END INIT INFO
|
|
||||||
|
|
||||||
. /etc/rc.d/init.d/functions
|
|
||||||
|
|
||||||
useradd -c "Fedora RISCV User" riscv
|
|
||||||
echo fedora_rocks! | passwd --stdin riscv > /dev/null
|
|
||||||
usermod -aG wheel riscv > /dev/null
|
|
||||||
usermod -aG mock riscv > /dev/null
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
EOF
|
|
||||||
|
|
||||||
chmod 755 /etc/rc.d/init.d/livesys
|
|
||||||
/sbin/restorecon /etc/rc.d/init.d/livesys
|
|
||||||
/sbin/chkconfig --add livesys
|
|
||||||
|
|
||||||
# Create Fedora RISC-V repo
|
# Create Fedora RISC-V repo
|
||||||
cat << EOF > /etc/yum.repos.d/fedora-riscv.repo
|
cat << EOF > /etc/yum.repos.d/fedora-riscv.repo
|
||||||
|
@ -535,6 +512,9 @@ 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*
|
||||||
|
|
||||||
|
# Start with a clean dnf history
|
||||||
|
rm -rf /var/lib/dnf/history.*
|
||||||
|
|
||||||
# go ahead and pre-make the man -k cache (#455968)
|
# go ahead and pre-make the man -k cache (#455968)
|
||||||
/usr/bin/mandb
|
/usr/bin/mandb
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ rootpw --plaintext fedora_rocks!
|
||||||
firewall --enabled --ssh
|
firewall --enabled --ssh
|
||||||
timezone --utc US/Eastern
|
timezone --utc US/Eastern
|
||||||
selinux --enforcing
|
selinux --enforcing
|
||||||
services --enabled=sshd,NetworkManager,chronyd,haveged
|
services --disabled=lm_sensors,libvirtd
|
||||||
|
|
||||||
zerombr
|
zerombr
|
||||||
ignoredisk --only-use=vda
|
ignoredisk --only-use=vda
|
||||||
|
@ -33,10 +33,8 @@ poweroff
|
||||||
%packages
|
%packages
|
||||||
@core
|
@core
|
||||||
@hardware-support
|
@hardware-support
|
||||||
#@anaconda-tools
|
|
||||||
|
|
||||||
# This is needed for appliance-tools, as it cannot see what packages are incl.
|
# GRUB2
|
||||||
# in the @anaconda-tools.
|
|
||||||
-grub2-efi-riscv64
|
-grub2-efi-riscv64
|
||||||
-grub2-efi-riscv64-modules
|
-grub2-efi-riscv64-modules
|
||||||
-grub2-tools-minimal
|
-grub2-tools-minimal
|
||||||
|
@ -44,7 +42,6 @@ poweroff
|
||||||
-grub2-tools
|
-grub2-tools
|
||||||
-grub2-efi-riscv64-cdboot
|
-grub2-efi-riscv64-cdboot
|
||||||
-grub2-common
|
-grub2-common
|
||||||
|
|
||||||
efibootmgr
|
efibootmgr
|
||||||
|
|
||||||
# Add for sd-boot
|
# Add for sd-boot
|
||||||
|
@ -63,20 +60,19 @@ uboot-images-riscv64
|
||||||
dracut-config-generic
|
dracut-config-generic
|
||||||
-dracut-config-rescue
|
-dracut-config-rescue
|
||||||
|
|
||||||
|
# For user creation and manipulation
|
||||||
|
shadow-utils
|
||||||
passwd
|
passwd
|
||||||
|
|
||||||
openssh
|
# Install the English locale, but not all the other ones
|
||||||
openssh-server
|
|
||||||
glibc-langpack-en
|
glibc-langpack-en
|
||||||
|
-glibc-all-langpacks
|
||||||
|
|
||||||
nano
|
nano
|
||||||
chrony
|
chrony
|
||||||
haveged
|
haveged
|
||||||
watchdog
|
watchdog
|
||||||
|
|
||||||
# No longer in @core since 2018-10, but needed for livesys script
|
|
||||||
initscripts
|
|
||||||
chkconfig
|
|
||||||
|
|
||||||
# Lets resize / on first boot
|
# Lets resize / on first boot
|
||||||
#dracut-modules-growroot
|
#dracut-modules-growroot
|
||||||
|
|
||||||
|
@ -103,32 +99,11 @@ dnf -y remove dracut-config-generic
|
||||||
# and mounting processes. This should help on systems where boot takes longer.
|
# 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
|
sed -i 's|noatime|noatime,x-systemd.device-timeout=300s,x-systemd.mount-timeout=300s|g' /etc/fstab
|
||||||
|
|
||||||
# Fedora 31
|
# Create regular user
|
||||||
# https://fedoraproject.org/wiki/Changes/DisableRootPasswordLoginInSshd
|
/usr/sbin/useradd -c "Fedora RISCV User" riscv
|
||||||
cat > /etc/rc.d/init.d/livesys << EOF
|
echo fedora_rocks! | passwd --stdin riscv
|
||||||
#!/bin/bash
|
/usr/sbin/usermod -aG wheel riscv
|
||||||
#
|
/usr/sbin/usermod -aG mock riscv
|
||||||
# live: Init script for live image
|
|
||||||
#
|
|
||||||
# chkconfig: 345 00 99
|
|
||||||
# description: Init script for live image.
|
|
||||||
### BEGIN INIT INFO
|
|
||||||
# X-Start-Before: display-manager chronyd
|
|
||||||
### END INIT INFO
|
|
||||||
|
|
||||||
. /etc/rc.d/init.d/functions
|
|
||||||
|
|
||||||
useradd -c "Fedora RISCV User" riscv
|
|
||||||
echo fedora_rocks! | passwd --stdin riscv > /dev/null
|
|
||||||
usermod -aG wheel riscv > /dev/null
|
|
||||||
usermod -aG mock riscv > /dev/null
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
EOF
|
|
||||||
|
|
||||||
chmod 755 /etc/rc.d/init.d/livesys
|
|
||||||
/sbin/restorecon /etc/rc.d/init.d/livesys
|
|
||||||
/sbin/chkconfig --add livesys
|
|
||||||
|
|
||||||
# Create Fedora RISC-V repo
|
# Create Fedora RISC-V repo
|
||||||
cat << EOF > /etc/yum.repos.d/fedora-riscv.repo
|
cat << EOF > /etc/yum.repos.d/fedora-riscv.repo
|
||||||
|
@ -215,6 +190,9 @@ 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*
|
||||||
|
|
||||||
|
# Start with a clean dnf history
|
||||||
|
rm -rf /var/lib/dnf/history.*
|
||||||
|
|
||||||
# go ahead and pre-make the man -k cache (#455968)
|
# go ahead and pre-make the man -k cache (#455968)
|
||||||
/usr/bin/mandb
|
/usr/bin/mandb
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ rootpw --plaintext fedora_rocks!
|
||||||
firewall --enabled --ssh
|
firewall --enabled --ssh
|
||||||
timezone --utc US/Eastern
|
timezone --utc US/Eastern
|
||||||
selinux --enforcing
|
selinux --enforcing
|
||||||
services --enabled=sshd,NetworkManager,chronyd,haveged
|
services --disabled=lm_sensors,libvirtd
|
||||||
|
|
||||||
zerombr
|
zerombr
|
||||||
clearpart --all --initlabel --disklabel=gpt
|
clearpart --all --initlabel --disklabel=gpt
|
||||||
|
@ -32,17 +32,15 @@ poweroff
|
||||||
%packages
|
%packages
|
||||||
@core
|
@core
|
||||||
@hardware-support
|
@hardware-support
|
||||||
@anaconda-tools
|
|
||||||
|
|
||||||
# This is needed for appliance-tools, as it cannot see what packages are incl.
|
# GRUB2
|
||||||
# in the @anaconda-tools.
|
|
||||||
grub2-efi-riscv64
|
grub2-efi-riscv64
|
||||||
grub2-efi-riscv64-modules
|
grub2-efi-riscv64-modules
|
||||||
# efibootmgr
|
efibootmgr
|
||||||
|
|
||||||
# Add for sd-boot
|
# Add for sd-boot
|
||||||
systemd-boot-unsigned
|
#systemd-boot-unsigned
|
||||||
# edk2-ext4
|
#edk2-ext4
|
||||||
|
|
||||||
# python3-virt-firmware
|
# python3-virt-firmware
|
||||||
|
|
||||||
|
@ -59,20 +57,19 @@ uboot-images-riscv64
|
||||||
dracut-config-generic
|
dracut-config-generic
|
||||||
-dracut-config-rescue
|
-dracut-config-rescue
|
||||||
|
|
||||||
|
# For user creation and manipulation
|
||||||
|
shadow-utils
|
||||||
passwd
|
passwd
|
||||||
|
|
||||||
openssh
|
# Install the English locale, but not all the other ones
|
||||||
openssh-server
|
|
||||||
glibc-langpack-en
|
glibc-langpack-en
|
||||||
|
-glibc-all-langpacks
|
||||||
|
|
||||||
nano
|
nano
|
||||||
chrony
|
chrony
|
||||||
haveged
|
haveged
|
||||||
watchdog
|
watchdog
|
||||||
|
|
||||||
# No longer in @core since 2018-10, but needed for livesys script
|
|
||||||
initscripts
|
|
||||||
chkconfig
|
|
||||||
|
|
||||||
# Lets resize / on first boot
|
# Lets resize / on first boot
|
||||||
#dracut-modules-growroot
|
#dracut-modules-growroot
|
||||||
|
|
||||||
|
@ -99,32 +96,11 @@ dnf -y remove dracut-config-generic
|
||||||
# and mounting processes. This should help on systems where boot takes longer.
|
# 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
|
sed -i 's|noatime|noatime,x-systemd.device-timeout=300s,x-systemd.mount-timeout=300s|g' /etc/fstab
|
||||||
|
|
||||||
# Fedora 31
|
# Create regular user
|
||||||
# https://fedoraproject.org/wiki/Changes/DisableRootPasswordLoginInSshd
|
/usr/sbin/useradd -c "Fedora RISCV User" riscv
|
||||||
cat > /etc/rc.d/init.d/livesys << EOF
|
echo fedora_rocks! | passwd --stdin riscv
|
||||||
#!/bin/bash
|
/usr/sbin/usermod -aG wheel riscv
|
||||||
#
|
/usr/sbin/usermod -aG mock riscv
|
||||||
# live: Init script for live image
|
|
||||||
#
|
|
||||||
# chkconfig: 345 00 99
|
|
||||||
# description: Init script for live image.
|
|
||||||
### BEGIN INIT INFO
|
|
||||||
# X-Start-Before: display-manager chronyd
|
|
||||||
### END INIT INFO
|
|
||||||
|
|
||||||
. /etc/rc.d/init.d/functions
|
|
||||||
|
|
||||||
useradd -c "Fedora RISCV User" riscv
|
|
||||||
echo fedora_rocks! | passwd --stdin riscv > /dev/null
|
|
||||||
usermod -aG wheel riscv > /dev/null
|
|
||||||
usermod -aG mock riscv > /dev/null
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
EOF
|
|
||||||
|
|
||||||
chmod 755 /etc/rc.d/init.d/livesys
|
|
||||||
/sbin/restorecon /etc/rc.d/init.d/livesys
|
|
||||||
/sbin/chkconfig --add livesys
|
|
||||||
|
|
||||||
# Create Fedora RISC-V repo
|
# Create Fedora RISC-V repo
|
||||||
cat << EOF > /etc/yum.repos.d/fedora-riscv.repo
|
cat << EOF > /etc/yum.repos.d/fedora-riscv.repo
|
||||||
|
@ -211,6 +187,9 @@ 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*
|
||||||
|
|
||||||
|
# Start with a clean dnf history
|
||||||
|
rm -rf /var/lib/dnf/history.*
|
||||||
|
|
||||||
# go ahead and pre-make the man -k cache (#455968)
|
# go ahead and pre-make the man -k cache (#455968)
|
||||||
/usr/bin/mandb
|
/usr/bin/mandb
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ rootpw --plaintext fedora_rocks!
|
||||||
firewall --enabled --ssh
|
firewall --enabled --ssh
|
||||||
timezone --utc US/Eastern
|
timezone --utc US/Eastern
|
||||||
selinux --enforcing
|
selinux --enforcing
|
||||||
services --enabled=sshd,NetworkManager,chronyd,haveged
|
services --disabled=lm_sensors,libvirtd
|
||||||
|
|
||||||
zerombr
|
zerombr
|
||||||
clearpart --all --initlabel --disklabel=gpt
|
clearpart --all --initlabel --disklabel=gpt
|
||||||
|
@ -32,15 +32,15 @@ poweroff
|
||||||
%packages
|
%packages
|
||||||
@core
|
@core
|
||||||
@hardware-support
|
@hardware-support
|
||||||
@anaconda-tools
|
|
||||||
|
|
||||||
# This is needed for appliance-tools, as it cannot see what packages are incl.
|
# GRUB2
|
||||||
# in the @anaconda-tools.
|
|
||||||
grub2-efi-riscv64
|
grub2-efi-riscv64
|
||||||
grub2-efi-riscv64-modules
|
grub2-efi-riscv64-modules
|
||||||
|
efibootmgr
|
||||||
|
|
||||||
# Add for sd-boot
|
# Add for sd-boot
|
||||||
systemd-boot-unsigned
|
#systemd-boot-unsigned
|
||||||
|
#edk2-ext4
|
||||||
|
|
||||||
kernel
|
kernel
|
||||||
kernel-core
|
kernel-core
|
||||||
|
@ -53,20 +53,19 @@ uboot-images-riscv64
|
||||||
dracut-config-generic
|
dracut-config-generic
|
||||||
-dracut-config-rescue
|
-dracut-config-rescue
|
||||||
|
|
||||||
|
# For user creation and manipulation
|
||||||
|
shadow-utils
|
||||||
passwd
|
passwd
|
||||||
|
|
||||||
openssh
|
# Install the English locale, but not all the other ones
|
||||||
openssh-server
|
|
||||||
glibc-langpack-en
|
glibc-langpack-en
|
||||||
|
-glibc-all-langpacks
|
||||||
|
|
||||||
nano
|
nano
|
||||||
chrony
|
chrony
|
||||||
haveged
|
haveged
|
||||||
watchdog
|
watchdog
|
||||||
|
|
||||||
# No longer in @core since 2018-10, but needed for livesys script
|
|
||||||
initscripts
|
|
||||||
chkconfig
|
|
||||||
|
|
||||||
# Lets resize / on first boot
|
# Lets resize / on first boot
|
||||||
#dracut-modules-growroot
|
#dracut-modules-growroot
|
||||||
|
|
||||||
|
@ -93,32 +92,11 @@ dnf -y remove dracut-config-generic
|
||||||
# and mounting processes. This should help on systems where boot takes longer.
|
# 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
|
sed -i 's|noatime|noatime,x-systemd.device-timeout=300s,x-systemd.mount-timeout=300s|g' /etc/fstab
|
||||||
|
|
||||||
# Fedora 31
|
# Create regular user
|
||||||
# https://fedoraproject.org/wiki/Changes/DisableRootPasswordLoginInSshd
|
/usr/sbin/useradd -c "Fedora RISCV User" riscv
|
||||||
cat > /etc/rc.d/init.d/livesys << EOF
|
echo fedora_rocks! | passwd --stdin riscv
|
||||||
#!/bin/bash
|
/usr/sbin/usermod -aG wheel riscv
|
||||||
#
|
/usr/sbin/usermod -aG mock riscv
|
||||||
# live: Init script for live image
|
|
||||||
#
|
|
||||||
# chkconfig: 345 00 99
|
|
||||||
# description: Init script for live image.
|
|
||||||
### BEGIN INIT INFO
|
|
||||||
# X-Start-Before: display-manager chronyd
|
|
||||||
### END INIT INFO
|
|
||||||
|
|
||||||
. /etc/rc.d/init.d/functions
|
|
||||||
|
|
||||||
useradd -c "Fedora RISCV User" riscv
|
|
||||||
echo fedora_rocks! | passwd --stdin riscv > /dev/null
|
|
||||||
usermod -aG wheel riscv > /dev/null
|
|
||||||
usermod -aG mock riscv > /dev/null
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
EOF
|
|
||||||
|
|
||||||
chmod 755 /etc/rc.d/init.d/livesys
|
|
||||||
/sbin/restorecon /etc/rc.d/init.d/livesys
|
|
||||||
/sbin/chkconfig --add livesys
|
|
||||||
|
|
||||||
# Create Fedora RISC-V repo
|
# Create Fedora RISC-V repo
|
||||||
cat << EOF > /etc/yum.repos.d/fedora-riscv.repo
|
cat << EOF > /etc/yum.repos.d/fedora-riscv.repo
|
||||||
|
@ -205,6 +183,9 @@ 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*
|
||||||
|
|
||||||
|
# Start with a clean dnf history
|
||||||
|
rm -rf /var/lib/dnf/history.*
|
||||||
|
|
||||||
# go ahead and pre-make the man -k cache (#455968)
|
# go ahead and pre-make the man -k cache (#455968)
|
||||||
/usr/bin/mandb
|
/usr/bin/mandb
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue