30convertfs/convertfs.sh: add check for /usr/bin
authorHarald Hoyer <harald@redhat.com>
Fri, 24 Feb 2012 13:54:59 +0000 (14:54 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 24 Feb 2012 13:59:18 +0000 (14:59 +0100)
Check if /usr is mounted, by checking for /usr/bin

modules.d/30convertfs/convertfs.sh

index ab4e97a..69c3b3e 100755 (executable)
@@ -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"