From 566d7bad7a87ab4db1aff36935b6f7971ba5b0b5 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Fri, 18 Nov 2022 16:50:28 +0200 Subject: [PATCH] Update F37 Developer disk image Signed-off-by: David Abdurachmanov --- fedora-riscv64-developer-f37.ks | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/fedora-riscv64-developer-f37.ks b/fedora-riscv64-developer-f37.ks index 3960577..0428f12 100644 --- a/fedora-riscv64-developer-f37.ks +++ b/fedora-riscv64-developer-f37.ks @@ -8,11 +8,11 @@ text lang en_US.UTF-8 keyboard us # short hostname still allows DHCP to assign domain name -network --bootproto dhcp --device=link --hostname=fedora-riscv +network --bootproto dhcp --device=link --hostname=fedora-riscv --activate rootpw --plaintext fedora_rocks! firewall --enabled --ssh -timezone --utc America/New_York -selinux --disabled +timezone --utc US/Eastern +selinux --enforcing services --enabled=sshd,NetworkManager,chronyd,haveged --disabled=lm_sensors,libvirtd bootloader --location=none --extlinux @@ -202,7 +202,6 @@ libgpiod-devel libgpiod-utils python3-libgpiod i2c-tools -i2c-tools-eepromer i2c-tools-perl libi2c libi2c-devel @@ -500,6 +499,17 @@ touch /etc/machine-id # remove random seed, the newly installed instance should make it's own 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* + +# The enp1s0 interface is a left over from the imagefactory install, clean this up +rm -f /etc/NetworkManager/system-connections/*.nmconnection + +releasever=$(rpm --eval '%{fedora}') +rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-primary +echo "Packages within this disk image" +rpm -qa --qf '%{size}\t%{name}-%{version}-%{release}.%{arch}\n' |sort -rn + %end # EOF