From: Gabe Evans Date: Fri, 1 Jul 2016 21:51:04 +0000 (+0200) Subject: package/systemd: add optional support for random-seed X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bab978a09bd48e587c110390618def91cf9507be;p=buildroot.git package/systemd: add optional support for random-seed Signed-off-by: Gabe Evans Signed-off-by: Maxime Hadjinlian Signed-off-by: Thomas Petazzoni --- diff --git a/package/systemd/Config.in b/package/systemd/Config.in index a2cf4be671..959154ea11 100644 --- a/package/systemd/Config.in +++ b/package/systemd/Config.in @@ -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 diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk index c5d6478f43..5672f00fb3 100644 --- a/package/systemd/systemd.mk +++ b/package/systemd/systemd.mk @@ -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