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:
984a819
)
add udev rules for iscsi_firmware
author
Harald Hoyer
<harald@redhat.com>
Thu, 30 Jul 2009 14:11:11 +0000
(16:11 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Thu, 30 Jul 2009 14:12:52 +0000
(16:12 +0200)
modules.d/95iscsi/iscsiroot
patch
|
blob
|
history
diff --git
a/modules.d/95iscsi/iscsiroot
b/modules.d/95iscsi/iscsiroot
index
f0dbdaa
..
436b67c
100755
(executable)
--- a/
modules.d/95iscsi/iscsiroot
+++ b/
modules.d/95iscsi/iscsiroot
@@
-40,8
+40,12
@@
source_all /etc/conf.d
modprobe crc32c
if getarg iscsi_firmware ; then
- iscsistart -b
- exit 0
+ if [ -n "${root%%block:*}" ]; then
+ # if root is not specified try to mount the whole iSCSI LUN
+ printf 'ENV{DEVTYPE}!="partition", SYMLINK=="disk/by-path/*-iscsi-*-%s", SYMLINK+="root"\n' $iscsi_lun >> /etc/udev/rules.d/99-iscsi-root.rules
+ fi
+ iscsistart -b
+ exit 0
fi
# override conf settings by command line options