iscsi/mount-lun.sh: use NEWROOT
authorHarald Hoyer <harald@redhat.com>
Mon, 11 Apr 2011 11:35:27 +0000 (13:35 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 11 Apr 2011 11:35:27 +0000 (13:35 +0200)
modules.d/95iscsi/mount-lun.sh

index 0eadfd2..b11dd0a 100755 (executable)
@@ -8,7 +8,7 @@ NEWROOT=${NEWROOT:-"/sysroot"}
 
 for disk in /dev/disk/by-path/*-iscsi-*-$iscsi_lun; do
     if mount -t ${fstype:-auto} -o "$rflags" $disk $NEWROOT; then
-        if [ ! -d /sysroot/proc ]; then
+        if [ ! -d $NEWROOT/proc ]; then
             umount $disk
             continue
         fi