2021-05-27 15:16:17 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Hardware RNG Entropy Gatherer Wake threshold service
|
2021-07-22 12:36:36 +00:00
|
|
|
ConditionVirtualization=!container
|
2021-05-27 15:16:17 +00:00
|
|
|
Before=rngd.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
CapabilityBoundingSet=CAP_SYS_ADMIN
|
|
|
|
AmbientCapabilities=CAP_SYS_ADMIN
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|
2021-05-27 17:45:48 +00:00
|
|
|
ExecStart=/bin/sh -c "PSIZE=$(cat /proc/sys/kernel/random/poolsize); let THRESH=$PSIZE*3/4; echo $THRESH>/proc/sys/kernel/random/write_wakeup_threshold; udevadm trigger --sysname-match=hw_random --settle"
|
2021-05-27 15:16:17 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=sysinit.target
|