usrmount/mount-usr.sh: check the right path with ismounted
authorHarald Hoyer <harald@redhat.com>
Tue, 3 Jul 2012 16:20:46 +0000 (18:20 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 3 Jul 2012 16:20:46 +0000 (18:20 +0200)
modules.d/98usrmount/mount-usr.sh

index 3173241..c277d74 100755 (executable)
@@ -84,7 +84,7 @@ mount_usr()
             info "Mounting /usr"
             mount "$NEWROOT/usr" 2>&1 | vinfo
         fi
-        if ! ismounted /usr; then
+        if ! ismounted "$NEWROOT/usr"; then
             warn "Mounting /usr to $NEWROOT/usr failed"
             warn "*** Dropping you to a shell; the system will continue"
             warn "*** when you leave the shell."