[Buildroot] [PATCH] package/haveged: Allow service to run early

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sat Jun 6 19:33:10 UTC 2020


Hello,

On Sat,  6 Jun 2020 00:54:21 +0200
Norbert Lange <nolange79 at gmail.com> wrote:

> Drop default dependencies, haveged needs nothing but
> local sockets and /dev/random.
> This allows the entropy to be available earlier.
> 
> Signed-off-by: Norbert Lange <nolange79 at gmail.com>

Thanks Norbert. I will need the review of those systemd person on this
patch. Jérémy ? Matt ?

>  package/haveged/haveged.service | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/package/haveged/haveged.service b/package/haveged/haveged.service
> index 91035c6711..ed9f043a91 100644
> --- a/package/haveged/haveged.service
> +++ b/package/haveged/haveged.service
> @@ -1,10 +1,13 @@
>  [Unit]
>  Description=Entropy Harvesting Daemon
>  Documentation=man:haveged(8)
> +DefaultDependencies=no
> +Conflicts=shutdown.target
> +Before=sysinit.target shutdown.target systemd-update-done.service
>  
>  [Service]
>  ExecStart=/usr/sbin/haveged -F -w 1024 -v 1
>  SuccessExitStatus=143
>  
>  [Install]
> -WantedBy=multi-user.target
> +WantedBy=sysinit.target



-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list