Commit ba1a5515 authored by Lennart Poettering's avatar Lennart Poettering

random: do not print warning if random seed doesn't exist yet

parent 9408a2d2
...@@ -10,8 +10,6 @@ F15: ...@@ -10,8 +10,6 @@ F15:
* hook emergency.target into local-fs.target in some way as OnFailure with isolate * hook emergency.target into local-fs.target in some way as OnFailure with isolate
* teach dbus to activate all services it finds in /etc/systemd/services/org-*.service
* save/restore tool for SysV as requested by FPC (PENDING) * save/restore tool for SysV as requested by FPC (PENDING)
* bind mounts are ignored * bind mounts are ignored
...@@ -21,23 +19,21 @@ F15: ...@@ -21,23 +19,21 @@ F15:
* NM should pull in network.target, ntpd should pull in rtc-set.target. * NM should pull in network.target, ntpd should pull in rtc-set.target.
* document default dependencies
* kernel patch wegen kmsg prio nach f15 * kernel patch wegen kmsg prio nach f15
* LOG_DAEMON/LOG_USER für kmsg messages schreiben * selinux issue http://people.gnome.org/~cosimoc/selinux.jpg
* disable /dev/console status messages after plymouth went down * fix alsa mixer restore to not print error when no config is stored
* plymouth pid file * ply should do mkdir before writing pid file
* selinux issue http://people.gnome.org/~cosimoc/selinux.jpg Features:
* do not print errors when random seed is not around * teach dbus to activate all services it finds in /etc/systemd/services/org-*.service
* fix alsa mixer restore to not print error when no config is stored * document default dependencies
Features: * LOG_DAEMON/LOG_USER für kmsg messages schreiben
* Find a way to replace /var/run, /var/lock directories with * Find a way to replace /var/run, /var/lock directories with
symlinks during an RPM package upgrade (filesystem.rpm or systemd.rpm). symlinks during an RPM package upgrade (filesystem.rpm or systemd.rpm).
...@@ -118,7 +114,7 @@ Features: ...@@ -118,7 +114,7 @@ Features:
* Patch systemd-fsck to use -C and pass console fd to it * Patch systemd-fsck to use -C and pass console fd to it
* support remote/ssh systemctl/systemadm, and local privileged access * support remote/ssh systemctl/systemadm, and local privileged access → dbus patches need to be merged
* configurable jitter for timer events * configurable jitter for timer events
......
...@@ -86,9 +86,11 @@ int main(int argc, char *argv[]) { ...@@ -86,9 +86,11 @@ int main(int argc, char *argv[]) {
} }
} }
if ((r = loop_read(seed_fd, buf, buf_size, false)) <= 0) if ((r = loop_read(seed_fd, buf, buf_size, false)) <= 0) {
log_error("Failed to read seed file: %s", r < 0 ? strerror(errno) : "EOF");
else { if (r != 0)
log_error("Failed to read seed file: %m");
} else {
lseek(seed_fd, 0, SEEK_SET); lseek(seed_fd, 0, SEEK_SET);
if ((r = loop_write(random_fd, buf, (size_t) r, false)) <= 0) if ((r = loop_write(random_fd, buf, (size_t) r, false)) <= 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment