projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8234b92
)
iscsi/mount-lun.sh: use NEWROOT
author
Harald Hoyer
<harald@redhat.com>
Mon, 11 Apr 2011 11:35:27 +0000
(13:35 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Mon, 11 Apr 2011 11:35:27 +0000
(13:35 +0200)
modules.d/95iscsi/mount-lun.sh
patch
|
blob
|
history
diff --git
a/modules.d/95iscsi/mount-lun.sh
b/modules.d/95iscsi/mount-lun.sh
index
0eadfd2
..
b11dd0a
100755
(executable)
--- 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