diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-04-27 12:04:16 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-05-09 15:52:57 +0200 |
commit | 391a3940e0f998910ade1279ecc7287e97ae2fd6 (patch) | |
tree | 3dce261b353c46f30989678e02006bf3b160119f | |
parent | 9e1849c05c30d5f14fc33e4b331bc07f0a619d59 (diff) | |
download | ptxdist-391a3940e0f998910ade1279ecc7287e97ae2fd6.tar.gz ptxdist-391a3940e0f998910ade1279ecc7287e97ae2fd6.tar.xz |
systemd: add option to disable random seed services
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/systemd.in | 15 | ||||
-rw-r--r-- | rules/systemd.make | 7 |
2 files changed, 22 insertions, 0 deletions
diff --git a/rules/systemd.in b/rules/systemd.in index 0a52caee6..0b91c0d49 100644 --- a/rules/systemd.in +++ b/rules/systemd.in @@ -22,3 +22,18 @@ config SYSTEMD drop-in replacement for sysvinit. http://www.freedesktop.org/wiki/Software/systemd + +if SYSTEMD + +config SYSTEMD_DISABLE_RANDOM_SEED + bool + prompt "disable random seed services" + help + Disable service files to load/save the random seed during + startup/shutdown. + This option is for systems with read-only rootfs, where writing + the random seed is not possible. + Warning: enabling this option may be insecure. + +endif + diff --git a/rules/systemd.make b/rules/systemd.make index 02f74b094..6896c1b2c 100644 --- a/rules/systemd.make +++ b/rules/systemd.make @@ -118,6 +118,13 @@ endif # systemd expects this directory to exist. @$(call install_copy, systemd, 0, 0, 0755, /var/cache/man) +ifdef PTXCONF_SYSTEMD_DISABLE_RANDOM_SEED + @$(call install_link, systemd, /dev/null, \ + /lib/systemd/system/systemd-random-seed-save.service) + @$(call install_link, systemd, /dev/null, \ + /lib/systemd/system/systemd-random-seed-load.service) +endif + @$(call install_finish, systemd) @$(call touch) |