From 764adb18da4a362e268d130b599ca15b5168889e Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Sep 02 2020 10:35:56 +0000 Subject: Don't complain if /dev/urandom is unavailable --- diff --git a/systemd.spec b/systemd.spec index d70336e..fb657e4 100644 --- a/systemd.spec +++ b/systemd.spec @@ -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