From 1701d7adc83ae53411a752419d6efb23a289298f Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 24 Feb 2012 14:54:59 +0100 Subject: [PATCH] 30convertfs/convertfs.sh: add check for /usr/bin Check if /usr is mounted, by checking for /usr/bin --- modules.d/30convertfs/convertfs.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules.d/30convertfs/convertfs.sh b/modules.d/30convertfs/convertfs.sh index ab4e97a..69c3b3e 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" -- 2.7.4