summaryrefslogtreecommitdiffstats
path: root/core/rootfs
diff options
context:
space:
mode:
authorSimon Rettberg2018-10-05 16:35:34 +0200
committerSimon Rettberg2018-10-05 16:35:34 +0200
commitba88f472f19a78319c93c2fb70fc90b5f919727a (patch)
tree4a8c1676e9c8bb38462efe12357b4e2cbb696a1c /core/rootfs
parent[haveged] New module; used in stage31 to fill random pool (diff)
downloadmltk-ba88f472f19a78319c93c2fb70fc90b5f919727a.tar.gz
mltk-ba88f472f19a78319c93c2fb70fc90b5f919727a.tar.xz
mltk-ba88f472f19a78319c93c2fb70fc90b5f919727a.zip
[rfs-stage31] Write haveged pidfile to /tmp
haveged by default tries to write its pid file to /var/run, which wo don't have, so instead of complaining or just starting up without pid file, it would die. We don't want it to die. It should die on switchroot.
Diffstat (limited to 'core/rootfs')
-rwxr-xr-xcore/rootfs/rootfs-stage31/data/init2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/rootfs/rootfs-stage31/data/init b/core/rootfs/rootfs-stage31/data/init
index 34c4c416..90c469f8 100755
--- a/core/rootfs/rootfs-stage31/data/init
+++ b/core/rootfs/rootfs-stage31/data/init
@@ -34,7 +34,7 @@ busybox mount -n -t devtmpfs -o 'rw,relatime,nosuid,noexec,mode=0755' initramfsd
busybox mount -n -t tmpfs -o 'mode=755,size=10m' run "/run"
busybox mount -n -t tmpfs -o 'mode=755,size=50m' temp "/tmp"
-haveged
+haveged --pidfile /tmp/haveged.pid # Tries to put it in /var/run by default, which doesn't exist so it just dies without any error message :-/
# IMPORTANT - check if kernel modules in initrams match kernel version
BASEDIR="/lib/modules/$(uname -r)/kernel/drivers"