add udev rules for iscsi_firmware
parent
984a819b92
commit
a3f4e7709b
|
@ -40,8 +40,12 @@ source_all /etc/conf.d
|
||||||
modprobe crc32c
|
modprobe crc32c
|
||||||
|
|
||||||
if getarg iscsi_firmware ; then
|
if getarg iscsi_firmware ; then
|
||||||
iscsistart -b
|
if [ -n "${root%%block:*}" ]; then
|
||||||
exit 0
|
# 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
|
fi
|
||||||
|
|
||||||
# override conf settings by command line options
|
# override conf settings by command line options
|
||||||
|
|
Loading…
Reference in New Issue