repo.or.cz
/
dracut.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
network: don't use "ifup -m"
[dracut.git]
/
modules.d
/
95iscsi
/
mount-lun.sh
blob
9df18ccca73cc5f733d9202cd6b7776dce5c30d8
1
#!/bin/sh
2
if
[
-z
$iscsi_lun
];
then
3
iscsi_lun
=
0
4
fi
5
NEWROOT
=
${NEWROOT:-"/sysroot"}
6
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
12
fi
13
break
14
fi
15
done