0e48f2301e
Adjust rngd-wake-threshold.service and post section so udevadm is not run in a container. Resolves: rhbz#1975588 Signed-off-by: Vladis Dronov <vdronov@redhat.com>
15 lines
481 B
Desktop File
15 lines
481 B
Desktop File
[Unit]
|
|
Description=Hardware RNG Entropy Gatherer Wake threshold service
|
|
ConditionVirtualization=!container
|
|
Before=rngd.service
|
|
|
|
[Service]
|
|
CapabilityBoundingSet=CAP_SYS_ADMIN
|
|
AmbientCapabilities=CAP_SYS_ADMIN
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
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"
|
|
|
|
[Install]
|
|
WantedBy=sysinit.target
|