]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
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 3173241130a6bb224c7cdbe8fa75dcfba841d61e..c277d74e2ec08d818d359f7b4487514d189af9ed 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."