livemedia-creator: Remove random-seed from images (#1258986)

systemd uses /var/lib/systemd/random-seed to add entropy to /dev/urandom
at boot time. During image creation this file is created, and if not
removed everything using the image will be adding the same seed.

This is only additional entropy, NOT a seed in the sense of a starting
point for a PRNG, so it will be mixed with other entropy as the system
runs. It isn't a good idea to use the same value everywhere so make sure
it is removed in %post

Resolves: rhbz#1258986
This commit is contained in:
Brian C. Lane 2015-09-01 09:39:03 -07:00
parent 243a29b495
commit 3f5047dd4f
3 changed files with 8 additions and 0 deletions

View File

@ -37,6 +37,9 @@ part swap --size=1000
%post
# Remove root password
passwd -d root > /dev/null
# Remove random-seed
rm /var/lib/systemd/random-seed
%end
%packages

View File

@ -308,6 +308,8 @@ rm -f /core*
rm -f /.readahead_collect
touch /var/lib/readahead/early.sorted
# Remove random-seed
rm /var/lib/systemd/random-seed
%end
%post --nochroot

View File

@ -38,6 +38,9 @@ part swap --size=1000
%post
# Remove root password
passwd -d root > /dev/null
# Remove random-seed
rm /var/lib/systemd/random-seed
%end
%packages