Files
buildroot/package
Carlos Santos d9e5c2b627 package/initscripts: refactor S20urandom
Adapt the format to the current template, used in other init scripts,
but do not use start/stop functions due to peculiarities.

Treat RNG initialization and random seed backup as separate operations.

Read /proc/sys/kernel/random/poolsize to calculate the pool size, as
suggestred by the urandom manual page.

Ensure that the random seed file has the correct size to prevent dumping
an empty file to /dev/urandom on the first boot.

Save the seed at /var/lib/random-seed as other non-systemd distributions
do (e.g.  RHEL6), since /etc can be in a red-only rootfs. The Filesystem
Hierarchy Standard defines that /var/lib holds persistent data modified
by programs as they run.

Users willing to use a different path just need to redefine URANDOM_SEED
in /etc/default/urandom instead of rewriting the init script.

[Peter: save/restore umask]
Signed-off-by: Carlos Santos <unixmania@gmail.com>
Tested-by: Matthew Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-10-25 21:21:24 +02:00
..
2019-10-09 23:13:51 +02:00
2019-10-16 21:31:59 +02:00
2019-10-17 09:49:06 +02:00
2019-09-15 09:19:43 +02:00
2019-10-16 22:50:01 +02:00
2019-09-28 23:30:18 +02:00
2019-09-19 22:49:43 +02:00
2019-09-28 22:38:48 +02:00
2019-09-23 23:18:56 +02:00
2019-10-22 20:41:27 +02:00
2019-10-16 22:20:36 +02:00
2019-10-05 22:33:29 +02:00
2019-09-27 23:30:25 +02:00
2019-09-20 23:24:31 +02:00
2019-09-15 15:55:38 +02:00
2019-09-21 22:59:07 +02:00
2019-09-12 19:20:53 +02:00
2019-10-18 11:29:25 +02:00
2019-10-09 22:51:26 +02:00
2019-10-13 22:48:03 +02:00
2019-10-21 21:15:52 +02:00
2019-09-23 23:26:52 +02:00
2019-10-23 21:40:15 +02:00
2019-09-13 22:29:06 +02:00
2019-09-21 15:52:39 +02:00
2019-10-07 22:26:35 +02:00
2019-10-22 23:27:58 +02:00
2019-10-13 22:48:19 +02:00
2019-10-16 22:27:49 +02:00
2019-09-30 22:15:03 +02:00
2019-10-10 23:19:06 +02:00
2019-10-21 23:22:52 +02:00
2019-09-15 22:32:46 +02:00
2019-10-16 22:18:42 +02:00
2019-09-15 22:30:29 +02:00
2019-09-18 17:50:45 +02:00
2019-09-15 22:19:53 +02:00
2019-10-18 16:42:22 +02:00
2019-10-05 23:08:41 +02:00
2019-10-17 09:49:15 +02:00
2019-10-14 22:50:36 +02:00
2019-10-09 23:08:05 +02:00
2019-10-02 23:04:59 +02:00
2019-09-17 21:42:49 +02:00
2019-10-21 21:36:51 +02:00
2019-10-08 23:04:19 +02:00
2019-10-02 23:05:02 +02:00
2019-09-21 23:04:15 +02:00
2019-09-23 22:53:54 +02:00
2019-10-19 20:48:03 +02:00
2019-10-16 22:27:49 +02:00
2019-09-21 23:04:16 +02:00
2019-10-05 23:45:24 +02:00
2019-10-05 23:34:36 +02:00
2019-09-30 22:53:26 +02:00
2019-10-20 15:57:44 +02:00
2019-10-10 00:11:15 +02:00
2019-10-05 16:15:42 +02:00
2019-10-21 23:33:59 +02:00
2019-09-25 21:55:43 +02:00
2019-10-12 15:37:14 +02:00
2019-09-20 23:07:20 +02:00
2019-10-22 20:40:48 +02:00
2019-10-21 21:40:56 +02:00
2019-09-30 23:07:39 +02:00
2019-10-05 23:50:28 +02:00
2019-10-10 23:29:51 +02:00
2019-10-12 00:52:31 +02:00
2019-09-24 23:11:26 +02:00
2019-09-30 23:16:01 +02:00
2019-09-30 23:20:32 +02:00
2019-10-07 23:12:10 +02:00
2019-09-30 23:17:22 +02:00
2019-09-12 18:49:53 +02:00
2019-09-15 21:46:14 +02:00
2019-09-30 23:06:33 +02:00
2019-10-22 23:32:40 +02:00
2019-10-20 00:40:48 +02:00