vmhost0: Update to Fedora 32
parent
3221ad95d0
commit
717f17893e
43
vmhost0.ks
43
vmhost0.ks
|
@ -1,16 +1,14 @@
|
|||
# vim: set ft=sh :
|
||||
|
||||
text
|
||||
install
|
||||
url --url http://www.nic.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/28/Everything/x86_64/os/
|
||||
repo --name=updates --baseurl=http://www.nic.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/updates/28/Everything/x86_64/
|
||||
repo --name=dustin --baseurl=http://rosalina.pyrocufflink.blue/~dustin/repo
|
||||
url --url http://fedora.mirror.constant.com/fedora/linux/releases/32/Everything/x86_64/os/
|
||||
repo --name=updates --baseurl=http://fedora.mirror.constant.com/fedora/linux/updates/32/Everything/x86_64/
|
||||
lang en_US.UTF-8
|
||||
keyboard us
|
||||
timezone --utc UTC
|
||||
rootpw --lock
|
||||
reboot
|
||||
|
||||
ignoredisk --only-use=nvme0n1
|
||||
bootloader --location mbr --append "console=ttyS0,115200 quiet systemd.show_status=1"
|
||||
clearpart --all --initlabel
|
||||
reqpart
|
||||
|
@ -23,17 +21,16 @@ logvol /var --fstype xfs --name=var --vgname=vmhost0 --size=8192
|
|||
logvol /var/log --fstype xfs --name=var_log --vgname=vmhost0 --size=2048
|
||||
logvol swap --fstype swap --name=swap --vgname=vmhost0 --size=32768 --grow
|
||||
|
||||
%packages --excludeWeakdeps --excludedocs
|
||||
%packages --exclude-weakdeps --excludedocs
|
||||
-NetworkManager
|
||||
-authconfig
|
||||
-authselect
|
||||
-dhcp-client
|
||||
-dnf-plugins-core
|
||||
-dnf-yum
|
||||
-dracut-config-rescue
|
||||
-e2fsprogs
|
||||
-initscripts
|
||||
-iputils
|
||||
-kbd
|
||||
-man-db
|
||||
-openssh-clients
|
||||
-parted
|
||||
|
@ -41,19 +38,17 @@ logvol swap --fstype swap --name=swap --vgname=vmhost0 --size=32768 --grow
|
|||
-sssd-common
|
||||
-sssd-kcm
|
||||
-vim-minimal
|
||||
-yum
|
||||
audit
|
||||
chrony
|
||||
cracklib-dicts
|
||||
dhcpcd
|
||||
dhcpcd-local-selinux
|
||||
dnf
|
||||
dnf-command(system-upgrade)
|
||||
libselinux-python3
|
||||
openssh-server
|
||||
policycoreutils-python3
|
||||
selinux-policy-targeted
|
||||
%end
|
||||
|
||||
services --enabled dhcpcd
|
||||
services --enabled systemd-networkd,systemd-resolved
|
||||
|
||||
%addon com_redhat_kdump --disable
|
||||
%end
|
||||
|
@ -81,25 +76,19 @@ grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
|
|||
|
||||
rm -rf /etc/sysconfig/network-scripts /etc/sysconfig/network
|
||||
|
||||
# Avoid "libudev: received NULL device" log spam from dhcpcd
|
||||
echo nodev >> /etc/dhcpcd.conf
|
||||
# Although dhcpcd.conf(5) claims the default value for `fqdn` is `both`, this
|
||||
# does not appear to be the case, at least in v6.11.3.
|
||||
echo fqdn both >> /etc/dhcpcd.conf
|
||||
|
||||
# Generate SSH host keys before first boot, since / will be read-only then
|
||||
/usr/libexec/openssh/sshd-keygen ecdsa
|
||||
/usr/libexec/openssh/sshd-keygen ed25519
|
||||
/usr/libexec/openssh/sshd-keygen rsa
|
||||
|
||||
# Additional read-only root filesystem compatibility hacks
|
||||
ln -sf /var/lib/dhcpcd/dhcpcd.duid /etc/dhcpcd.duid
|
||||
ln -sf /var/lib/dhcpcd/dhcpcd.secret /etc/dhcpcd.secret
|
||||
ln -sf /etc/sysconfig/networking/resolv.conf /etc/resolv.conf
|
||||
mkdir -p /etc/sysconfig/networking
|
||||
chcon system_u:object_r:net_conf_t:s0 /etc/sysconfig/networking
|
||||
cat >> /etc/fstab <<EOF
|
||||
tmpfs /etc/sysconfig/networking tmpfs size=1M,mode=0755,context=system_u:object_r:net_conf_t:s0 0 0
|
||||
cat > /etc/systemd/network/30-enp5s0.network <<EOF
|
||||
[Match]
|
||||
Name=enp5s0
|
||||
|
||||
[Network]
|
||||
Address=172.30.0.18/26
|
||||
Gateway=172.30.0.1
|
||||
DNS=172.30.0.4
|
||||
EOF
|
||||
|
||||
# Enable read-only rootfs. This cannot be done with part/logvol, as that would
|
||||
|
|
Loading…
Reference in New Issue