From: Harald Hoyer Date: Mon, 11 Apr 2011 11:35:27 +0000 (+0200) Subject: iscsi/mount-lun.sh: use NEWROOT X-Git-Tag: 011~103 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3fc621ee45343f033c65fb61505f12b0e6e16414;p=platform%2Fupstream%2Fdracut.git iscsi/mount-lun.sh: use NEWROOT --- diff --git a/modules.d/95iscsi/mount-lun.sh b/modules.d/95iscsi/mount-lun.sh index 0eadfd2..b11dd0a 100755 --- a/modules.d/95iscsi/mount-lun.sh +++ b/modules.d/95iscsi/mount-lun.sh @@ -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