diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-02-04 19:45:08 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-02-06 18:13:41 -0500 |
commit | 8edc2d22d8727c533af72c674e538df140267d9e (patch) | |
tree | b532804441822aa19231a23670df07502ce64d62 /src/boot/bootctl.c | |
parent | 784b22eef5005309a43400e9ab43d37281b1290c (diff) |
random-seed: provide nicer error message when unable to open file
If /var is read-only, and the seed file does not exist, we would print
a misleading error message for ENOENT. Print both messages instead, to
make it easy to diagonose.
Also, treat the cases of missing seed file the same as empty seed file
and exit successfully. Initialize the return code properly.
Fixes https://github.com/systemd/systemd/issues/2530,
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=813599.
Diffstat (limited to 'src/boot/bootctl.c')
0 files changed, 0 insertions, 0 deletions