From: Harald Hoyer Date: Fri, 24 Feb 2012 13:54:59 +0000 (+0100) Subject: 30convertfs/convertfs.sh: add check for /usr/bin X-Git-Tag: 017~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1701d7adc83ae53411a752419d6efb23a289298f;p=thirdparty%2Fdracut.git 30convertfs/convertfs.sh: add check for /usr/bin Check if /usr is mounted, by checking for /usr/bin --- diff --git a/modules.d/30convertfs/convertfs.sh b/modules.d/30convertfs/convertfs.sh index ab4e97a94..69c3b3e34 100755 --- a/modules.d/30convertfs/convertfs.sh +++ b/modules.d/30convertfs/convertfs.sh @@ -47,6 +47,11 @@ if ! needconvert; then exit 0 fi +if [ -e "$ROOT/usr/bin" ]; then + echo "$ROOT/usr/bin does not exist" + exit 1 +fi + testfile="$ROOT/.usrmovecheck$$" rm -f "$testfile" > "$testfile"