From d146d9945b492e1d36c4b4a5da7df98a1d8244e4 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 29 Oct 2008 13:10:49 +0000 Subject: [PATCH] * Disable deleting /tmp at boot time. This should be controlled by an option (which should default to off, IMHO). I was rather surprised when I rebooted my system and it started deleting all of /tmp (which, for instance, contained some test DB/repos for the Subversion server)... svn path=/nixos/trunk/; revision=13145 --- boot/boot-stage-2-init.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/boot/boot-stage-2-init.sh b/boot/boot-stage-2-init.sh index 3ae40824285..01963d43cc1 100644 --- a/boot/boot-stage-2-init.sh +++ b/boot/boot-stage-2-init.sh @@ -82,9 +82,10 @@ 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" + +#echo -n "cleaning \`/tmp'..." +#rm -rf --one-file-system /tmp/* +#echo " done" if test -n "$safeMode"; then mkdir -m 0755 -p /var/run