From 19322f31e08298e53edf2874505ce3ebc2e2871b Mon Sep 17 00:00:00 2001 From: Dusty Mabe Date: Wed, 2 Sep 2020 17:16:28 -0400 Subject: [PATCH] cloud: update comments and minor rework for kspost This should make things a little clearer. (cherry picked from commit 99f3ec5d72482f76a19bef54e1cd028fbbe8f69d) --- fedora-cloud-base.ks | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/fedora-cloud-base.ks b/fedora-cloud-base.ks index 0f627db..1b348f4 100644 --- a/fedora-cloud-base.ks +++ b/fedora-cloud-base.ks @@ -76,16 +76,20 @@ kernel-core ##### end package list ############################################### - +##### begin kickstart post ########################################### %post --erroronfail - -# this is installed by default but we don't need it in virt -# Commenting out the following for #1234504 -# rpm works just fine for removing this, no idea why dnf can't cope +# linux-firmware is installed by default and is quite large. As of mid 2020: +# Total download size: 97 M +# Installed size: 268 M +# So far we've been fine shipping without it so let's continue. +# More discussion about this in #1234504. echo "Removing linux-firmware package." rpm -e linux-firmware +# See the systemd-random-seed.service man page that says: +# " It is recommended to remove the random seed from OS images intended +# for replication on multiple systems" echo "Removing random-seed so it's not the same in every image." rm -f /var/lib/systemd/random-seed @@ -105,10 +109,8 @@ echo "(Don't worry -- that out-of-space error was expected.)" echo "Cleanup leftover networking configuration" rm -f /etc/NetworkManager/system-connections/*.nmconnection -# Remove machine-id on pre generated images -rm -f /etc/machine-id -touch /etc/machine-id - +# Clear machine-id on pre generated images +truncate -s 0 /etc/machine-id %end - +##### end kickstart post ############################################