image-base: Drop Kickstart code cleaning data in /var
Since we've been
removing everything in `/var`, so there's no reason to
keep this code to do a subset here.  We want to minimize what
happens in the Kickstart to aid moving away from Anaconda.
@@ -36,6 +36,9 @@ part / --size=3000 --fstype="xfs" --label=root --grow --mkfsoptions="-m reflink=
reboot
%post --erroronfail
+# In this section, undo any changes to `/etc` that we don't want
+# Anaconda to keep. Note that `gf-anaconda-cleanup` will delete
+# everything in `/var` like `/var/lib/systemd/random-seed`.
# Remove any persistent NIC rules generated by udev
rm -vf /etc/udev/rules.d/*persistent-net*.rules
@@ -54,10 +57,4 @@ EOF
# Anaconda is writing a /etc/resolv.conf from the generating environment.
# The system should start out with an empty file.
truncate -s 0 /etc/resolv.conf
-
-# We don't want the random seed to be the same in every image.
-rm -f /var/lib/random-seed
-
-# And we don't need to embed our kickstart; it's not a supported API for CoreOS
-rm -f /root/anaconda-ks.cfg
%end
