From 0f266074995bacc3c9776501e289046d21a47307 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 11 Oct 2007 15:14:55 +0000 Subject: Only update mtab if /proc/mounts exists --- init.d/checkroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init.d/checkroot') diff --git a/init.d/checkroot b/init.d/checkroot index 087e2c97..959ca0b3 100755 --- a/init.d/checkroot +++ b/init.d/checkroot @@ -131,7 +131,7 @@ start() { fi # Only Linux has mtab - [ "${RC_UNAME}" = "Linux" ] && do_mtab + [ "${RC_UNAME}" = "Linux" -a -e /proc/mounts ] && do_mtab # If the user's /dev/null or /dev/console are missing, we # should help them out and explain how to rectify the situation -- cgit v1.2.3