1
1
mirror of https://pagure.io/fedora-kickstarts.git synced 2024-11-11 10:34:22 +00:00

cloud: update comments and minor rework for kspost

This should make things a little clearer.
This commit is contained in:
Dusty Mabe 2020-09-02 17:16:28 -04:00
parent f4c7f67ece
commit 99f3ec5d72
No known key found for this signature in database
GPG Key ID: 3302DBD73952E671

View File

@ -76,16 +76,20 @@ kernel-core
##### end package list ############################################### ##### end package list ###############################################
##### begin kickstart post ###########################################
%post --erroronfail %post --erroronfail
# linux-firmware is installed by default and is quite large. As of mid 2020:
# this is installed by default but we don't need it in virt # Total download size: 97 M
# Commenting out the following for #1234504 # Installed size: 268 M
# rpm works just fine for removing this, no idea why dnf can't cope # So far we've been fine shipping without it so let's continue.
# More discussion about this in #1234504.
echo "Removing linux-firmware package." echo "Removing linux-firmware package."
rpm -e linux-firmware 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." echo "Removing random-seed so it's not the same in every image."
rm -f /var/lib/systemd/random-seed 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" echo "Cleanup leftover networking configuration"
rm -f /etc/NetworkManager/system-connections/*.nmconnection rm -f /etc/NetworkManager/system-connections/*.nmconnection
# Remove machine-id on pre generated images # Clear machine-id on pre generated images
rm -f /etc/machine-id truncate -s 0 /etc/machine-id
touch /etc/machine-id
%end %end
##### end kickstart post ############################################