]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
package/systemd: add optional support for random-seed
authorGabe Evans <gabe@hashrabbit.co>
Fri, 1 Jul 2016 21:51:04 +0000 (23:51 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 2 Jul 2016 10:28:56 +0000 (12:28 +0200)
Signed-off-by: Gabe Evans <gabe@hashrabbit.co>
Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/systemd/Config.in
package/systemd/systemd.mk

index a2cf4be6710612f6edfdfd02d9b38df3385fecfa..959154ea118b7d4607369fb539804223d2c866d9 100644 (file)
@@ -159,6 +159,16 @@ config BR2_PACKAGE_SYSTEMD_FIRSTBOOT
 
          http://www.freedesktop.org/software/systemd/man/systemd-firstboot.html
 
+config BR2_PACKAGE_SYSTEMD_RANDOMSEED
+       bool "enable random-seed support"
+       help
+         systemd-random-seed is a service that restores the random
+         seed of the system at early boot and saves it at
+         shutdown. Saving/restoring the random seed across boots
+         increases the amount of available entropy early at boot.
+
+         http://www.freedesktop.org/software/systemd/man/systemd-random-seed.service.html
+
 config BR2_PACKAGE_SYSTEMD_NETWORKD
        bool "enable network manager"
        help
index c5d6478f43c08c4527ea0b2716b85d8359c4178d..5672f00fb30ee463dca055e6bad159ad0ff669e7 100644 (file)
@@ -177,6 +177,12 @@ else
 SYSTEMD_CONF_OPTS += --disable-firstboot
 endif
 
+ifeq ($(BR2_PACKAGE_SYSTEMD_RANDOMSEED),y)
+SYSTEMD_CONF_OPTS += --enable-randomseed
+else
+SYSTEMD_CONF_OPTS += --disable-randomseed
+endif
+
 ifeq ($(BR2_PACKAGE_SYSTEMD_NETWORKD),y)
 SYSTEMD_CONF_OPTS += --enable-networkd
 define SYSTEMD_INSTALL_RESOLVCONF_HOOK