From cc1b8a39309fef45d092140fa130d0e82c696a44 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Wed, 18 May 2011 23:08:13 +0200 Subject: fixup: also clear /tmp if it is a mountpoint eda191cf78365cc3d1 inadvertently introduced a change so that /tmp was not cleared if it was a mountpoint. This restores the old behaviour. It is strongly adviced to not monut anything but a tmpfs on /tmp. This would avoid the issue. Signed-off-by: Tom Gundersen --- rc.sysinit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.sysinit') diff --git a/rc.sysinit b/rc.sysinit index 2250546..46f0c9b 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -316,7 +316,7 @@ fi stat_busy "Removing Leftover Files" /bin/rm -rf /etc/{nologin,shutdownpid} /forcefsck &>/dev/null -/bin/mountpoint -q /tmp || /bin/rm -rf /tmp/* /tmp/.* &>/dev/null +/bin/rm -rf /tmp/* /tmp/.* &>/dev/null [[ ! -L /var/lock ]] && /bin/rm -rf /var/lock/* [[ ! -L /var/run && -d /var/run ]] && /usr/bin/find /var/run/ \! -type d -delete [[ ! -L /var/run && ! -L /var/run/daemons ]] && /bin/rm -rf /var/run/daemons \ -- cgit v1.2.3