From f0695e9fcd1b113614d77e8e3243692ee0e59672 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 24 Nov 2006 10:50:49 +0000 Subject: [PATCH] * Clear utmp. svn path=/nixu/trunk/; revision=7115 --- test/boot-stage-2-init.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/boot-stage-2-init.sh b/test/boot-stage-2-init.sh index 3f480e87519d..d2dc42045a17 100644 --- a/test/boot-stage-2-init.sh +++ b/test/boot-stage-2-init.sh @@ -84,6 +84,13 @@ ln -sf /nix/var/nix/profiles /nix/var/nix/gcroots/ export MODULE_DIR=@kernel@/lib/modules/ +# Miscellaneous cleanup. +rm -f /var/run/* + +echo -n > /var/run/utmp # must exist +chmod 664 /var/run/utmp + + # Start udev. udevd --daemon