chiark / gitweb /
random-seed: avoid errors when we cannot write random-seed file
authorColin Guthrie <colin@mageia.org>
Mon, 12 Jan 2015 20:40:14 +0000 (20:40 +0000)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sat, 17 Jan 2015 10:55:14 +0000 (11:55 +0100)
commit352e209804c70b991feededc0a45762929840ace
treee4b5c08734e849fa16fd83ccfbc5ea1158871719
parentf299e3e430a26188106ce15abf05f3ae7e54ef59
random-seed: avoid errors when we cannot write random-seed file

When we call 'systemd-random-seed load' with a read-only /var/lib/systemd,
the cleanup code (which rewrites the random-seed file) will fail and exit.

Arguably, if the filesystem is read-only and the random-seed file exists
then this will be possibly be quite bad for entroy on subsequent reboots
but it should still not make the unit fail.
src/random-seed/random-seed.c