Only update mtab if /proc/mounts exists
This commit is contained in:
parent
77205862e3
commit
0f26607499
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user