about summary refs log tree commit diff
path: root/core-services/05-misc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'core-services/05-misc.sh')
-rw-r--r--core-services/05-misc.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/core-services/05-misc.sh b/core-services/05-misc.sh
index 8aabaa0..0f3d28c 100644
--- a/core-services/05-misc.sh
+++ b/core-services/05-misc.sh
@@ -1,9 +1,11 @@
 # vim: set ts=4 sw=4 et:
 
+install -m0664 -o root -g utmp /dev/null /run/utmp
+halt -B  # for wtmp
+
 if [ -z "$VIRTUALIZATION" ]; then
     msg "Initializing random seed..."
     cp /var/lib/random-seed /dev/urandom >/dev/null 2>&1 || true
-    ( umask 077; bytes=$(cat /proc/sys/kernel/random/poolsize) || bytes=512; dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=$bytes >/dev/null 2>&1 )
 fi
 
 msg "Setting up loopback interface..."