From 4891014cca35fb4b2309f9fa9a3284436367119b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 9 Oct 2008 20:05:52 +0000 Subject: [PATCH] boot-stage-2-init.sh: Delete files under `/tmp'. svn path=/nixos/trunk/; revision=13034 --- boot/boot-stage-2-init.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boot/boot-stage-2-init.sh b/boot/boot-stage-2-init.sh index e79f9992734..3ae40824285 100644 --- a/boot/boot-stage-2-init.sh +++ b/boot/boot-stage-2-init.sh @@ -82,6 +82,9 @@ mkdir -m 0755 -p /home # Miscellaneous boot time cleanup. rm -rf /var/run +echo -n "cleaning \`/tmp'..." +rm -rf --one-file-system /tmp/* +echo " done" if test -n "$safeMode"; then mkdir -m 0755 -p /var/run