network: don't use "ifup -m"
[dracut.git] / modules.d / 95iscsi / mount-lun.sh
blob9df18ccca73cc5f733d9202cd6b7776dce5c30d8
1 #!/bin/sh
2 if [ -z $iscsi_lun ]; then
3 iscsi_lun=0
4 fi
5 NEWROOT=${NEWROOT:-"/sysroot"}
7 for disk in /dev/disk/by-path/*-iscsi-*-$iscsi_lun; do
8 if mount -t ${fstype:-auto} -o "$rflags" $disk $NEWROOT; then
9 if [ ! -d $NEWROOT/proc ]; then
10 umount $disk
11 continue
13 break
15 done