Don't complain if /dev/urandom is unavailable

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-09-02 12:35:56 +02:00
parent 1ebf8dd816
commit 764adb18da

View File

@ -715,8 +715,12 @@ if [ -f %{_localstatedir}/lib/systemd/clock ] ; then
fi
udevadm hwdb --update &>/dev/null
%systemd_post %udev_services
/usr/lib/systemd/systemd-random-seed save 2>&1
# Try to save the random seed, but don't complain if /dev/urandom is unavailable
/usr/lib/systemd/systemd-random-seed save 2>&1 | \
grep -v 'Failed to open /dev/urandom' || :
# Replace obsolete keymaps
# https://bugzilla.redhat.com/show_bug.cgi?id=1151958