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
|
||||
timezone --utc US/Eastern
|
||||
selinux --enforcing
|
||||
services --enabled=sshd,NetworkManager,chronyd,haveged --disabled=lm_sensors,libvirtd
|
||||
services --disabled=lm_sensors,libvirtd
|
||||
|
||||
zerombr
|
||||
clearpart --all --initlabel --disklabel=gpt
|
||||
|
@ -38,8 +38,7 @@ poweroff
|
|||
@development-tools
|
||||
@anaconda-tools
|
||||
|
||||
# This is needed for appliance-tools, as it cannot see what packages are incl.
|
||||
# in the @anaconda-tools.
|
||||
# GRUB2
|
||||
grub2-efi-riscv64
|
||||
grub2-efi-riscv64-modules
|
||||
efibootmgr
|
||||
|
@ -61,14 +60,17 @@ uboot-images-riscv64
|
|||
dracut-config-generic
|
||||
-dracut-config-rescue
|
||||
|
||||
# For user creation and manipulation
|
||||
shadow-utils
|
||||
passwd
|
||||
|
||||
# Adding kiwi for disk image generation
|
||||
kiwi-cli
|
||||
|
||||
openssh
|
||||
openssh-server
|
||||
# Install the English locale, but not all the other ones
|
||||
glibc-langpack-en
|
||||
-glibc-all-langpacks
|
||||
|
||||
glibc-static
|
||||
lsof
|
||||
nano
|
||||
|
@ -252,10 +254,6 @@ haveged
|
|||
# end of gcc packages
|
||||
watchdog
|
||||
|
||||
# No longer in @core since 2018-10, but needed for livesys script
|
||||
initscripts
|
||||
chkconfig
|
||||
|
||||
# Lets resize / on first boot
|
||||
#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.
|
||||
sed -i 's|noatime|noatime,x-systemd.device-timeout=300s,x-systemd.mount-timeout=300s|g' /etc/fstab
|
||||
|
||||
# Fedora 31
|
||||
# https://fedoraproject.org/wiki/Changes/DisableRootPasswordLoginInSshd
|
||||
cat > /etc/rc.d/init.d/livesys << EOF
|
||||
#!/bin/bash
|
||||
#
|
||||
# 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 regular user
|
||||
/usr/sbin/useradd -c "Fedora RISCV User" riscv
|
||||
echo fedora_rocks! | passwd --stdin riscv
|
||||
/usr/sbin/usermod -aG wheel riscv
|
||||
/usr/sbin/usermod -aG mock riscv
|
||||
|
||||
# Create Fedora RISC-V 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
|
||||
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)
|
||||
/usr/bin/mandb
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ rootpw --plaintext fedora_rocks!
|
|||
firewall --enabled --ssh
|
||||
timezone --utc US/Eastern
|
||||
selinux --enforcing
|
||||
services --enabled=sshd,NetworkManager,chronyd,haveged
|
||||
services --disabled=lm_sensors,libvirtd
|
||||
|
||||
zerombr
|
||||
ignoredisk --only-use=vda
|
||||
|
@ -33,10 +33,8 @@ poweroff
|
|||
%packages
|
||||
@core
|
||||
@hardware-support
|
||||
#@anaconda-tools
|
||||
|
||||
# This is needed for appliance-tools, as it cannot see what packages are incl.
|
||||
# in the @anaconda-tools.
|
||||
# GRUB2
|
||||
-grub2-efi-riscv64
|
||||
-grub2-efi-riscv64-modules
|
||||
-grub2-tools-minimal
|
||||
|
@ -44,7 +42,6 @@ poweroff
|
|||
-grub2-tools
|
||||
-grub2-efi-riscv64-cdboot
|
||||
-grub2-common
|
||||
|
||||
efibootmgr
|
||||
|
||||
# Add for sd-boot
|
||||
|
@ -63,20 +60,19 @@ uboot-images-riscv64
|
|||
dracut-config-generic
|
||||
-dracut-config-rescue
|
||||
|
||||
# For user creation and manipulation
|
||||
shadow-utils
|
||||
passwd
|
||||
|
||||
openssh
|
||||
openssh-server
|
||||
# Install the English locale, but not all the other ones
|
||||
glibc-langpack-en
|
||||
-glibc-all-langpacks
|
||||
|
||||
nano
|
||||
chrony
|
||||
haveged
|
||||
watchdog
|
||||
|
||||
# No longer in @core since 2018-10, but needed for livesys script
|
||||
initscripts
|
||||
chkconfig
|
||||
|
||||
# Lets resize / on first boot
|
||||
#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.
|
||||
sed -i 's|noatime|noatime,x-systemd.device-timeout=300s,x-systemd.mount-timeout=300s|g' /etc/fstab
|
||||
|
||||
# Fedora 31
|
||||
# https://fedoraproject.org/wiki/Changes/DisableRootPasswordLoginInSshd
|
||||
cat > /etc/rc.d/init.d/livesys << EOF
|
||||
#!/bin/bash
|
||||
#
|
||||
# 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 regular user
|
||||
/usr/sbin/useradd -c "Fedora RISCV User" riscv
|
||||
echo fedora_rocks! | passwd --stdin riscv
|
||||
/usr/sbin/usermod -aG wheel riscv
|
||||
/usr/sbin/usermod -aG mock riscv
|
||||
|
||||
# Create Fedora RISC-V 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
|
||||
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)
|
||||
/usr/bin/mandb
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ rootpw --plaintext fedora_rocks!
|
|||
firewall --enabled --ssh
|
||||
timezone --utc US/Eastern
|
||||
selinux --enforcing
|
||||
services --enabled=sshd,NetworkManager,chronyd,haveged
|
||||
services --disabled=lm_sensors,libvirtd
|
||||
|
||||
zerombr
|
||||
clearpart --all --initlabel --disklabel=gpt
|
||||
|
@ -32,16 +32,14 @@ poweroff
|
|||
%packages
|
||||
@core
|
||||
@hardware-support
|
||||
@anaconda-tools
|
||||
|
||||
# This is needed for appliance-tools, as it cannot see what packages are incl.
|
||||
# in the @anaconda-tools.
|
||||
# GRUB2
|
||||
grub2-efi-riscv64
|
||||
grub2-efi-riscv64-modules
|
||||
# efibootmgr
|
||||
efibootmgr
|
||||
|
||||
# Add for sd-boot
|
||||
systemd-boot-unsigned
|
||||
#systemd-boot-unsigned
|
||||
#edk2-ext4
|
||||
|
||||
# python3-virt-firmware
|
||||
|
@ -59,20 +57,19 @@ uboot-images-riscv64
|
|||
dracut-config-generic
|
||||
-dracut-config-rescue
|
||||
|
||||
# For user creation and manipulation
|
||||
shadow-utils
|
||||
passwd
|
||||
|
||||
openssh
|
||||
openssh-server
|
||||
# Install the English locale, but not all the other ones
|
||||
glibc-langpack-en
|
||||
-glibc-all-langpacks
|
||||
|
||||
nano
|
||||
chrony
|
||||
haveged
|
||||
watchdog
|
||||
|
||||
# No longer in @core since 2018-10, but needed for livesys script
|
||||
initscripts
|
||||
chkconfig
|
||||
|
||||
# Lets resize / on first boot
|
||||
#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.
|
||||
sed -i 's|noatime|noatime,x-systemd.device-timeout=300s,x-systemd.mount-timeout=300s|g' /etc/fstab
|
||||
|
||||
# Fedora 31
|
||||
# https://fedoraproject.org/wiki/Changes/DisableRootPasswordLoginInSshd
|
||||
cat > /etc/rc.d/init.d/livesys << EOF
|
||||
#!/bin/bash
|
||||
#
|
||||
# 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 regular user
|
||||
/usr/sbin/useradd -c "Fedora RISCV User" riscv
|
||||
echo fedora_rocks! | passwd --stdin riscv
|
||||
/usr/sbin/usermod -aG wheel riscv
|
||||
/usr/sbin/usermod -aG mock riscv
|
||||
|
||||
# Create Fedora RISC-V 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
|
||||
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)
|
||||
/usr/bin/mandb
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ rootpw --plaintext fedora_rocks!
|
|||
firewall --enabled --ssh
|
||||
timezone --utc US/Eastern
|
||||
selinux --enforcing
|
||||
services --enabled=sshd,NetworkManager,chronyd,haveged
|
||||
services --disabled=lm_sensors,libvirtd
|
||||
|
||||
zerombr
|
||||
clearpart --all --initlabel --disklabel=gpt
|
||||
|
@ -32,15 +32,15 @@ poweroff
|
|||
%packages
|
||||
@core
|
||||
@hardware-support
|
||||
@anaconda-tools
|
||||
|
||||
# This is needed for appliance-tools, as it cannot see what packages are incl.
|
||||
# in the @anaconda-tools.
|
||||
# GRUB2
|
||||
grub2-efi-riscv64
|
||||
grub2-efi-riscv64-modules
|
||||
efibootmgr
|
||||
|
||||
# Add for sd-boot
|
||||
systemd-boot-unsigned
|
||||
#systemd-boot-unsigned
|
||||
#edk2-ext4
|
||||
|
||||
kernel
|
||||
kernel-core
|
||||
|
@ -53,20 +53,19 @@ uboot-images-riscv64
|
|||
dracut-config-generic
|
||||
-dracut-config-rescue
|
||||
|
||||
# For user creation and manipulation
|
||||
shadow-utils
|
||||
passwd
|
||||
|
||||
openssh
|
||||
openssh-server
|
||||
# Install the English locale, but not all the other ones
|
||||
glibc-langpack-en
|
||||
-glibc-all-langpacks
|
||||
|
||||
nano
|
||||
chrony
|
||||
haveged
|
||||
watchdog
|
||||
|
||||
# No longer in @core since 2018-10, but needed for livesys script
|
||||
initscripts
|
||||
chkconfig
|
||||
|
||||
# Lets resize / on first boot
|
||||
#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.
|
||||
sed -i 's|noatime|noatime,x-systemd.device-timeout=300s,x-systemd.mount-timeout=300s|g' /etc/fstab
|
||||
|
||||
# Fedora 31
|
||||
# https://fedoraproject.org/wiki/Changes/DisableRootPasswordLoginInSshd
|
||||
cat > /etc/rc.d/init.d/livesys << EOF
|
||||
#!/bin/bash
|
||||
#
|
||||
# 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 regular user
|
||||
/usr/sbin/useradd -c "Fedora RISCV User" riscv
|
||||
echo fedora_rocks! | passwd --stdin riscv
|
||||
/usr/sbin/usermod -aG wheel riscv
|
||||
/usr/sbin/usermod -aG mock riscv
|
||||
|
||||
# Create Fedora RISC-V 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
|
||||
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)
|
||||
/usr/bin/mandb
|
||||
|
||||
|
|
Loading…
Reference in New Issue