iscsiroot: fixed udev rules for iscsi_firmware
parent
b61ca28260
commit
bb57587b42
|
@ -42,7 +42,7 @@ modprobe crc32c
|
||||||
if getarg iscsi_firmware ; then
|
if getarg iscsi_firmware ; then
|
||||||
if [ -n "${root%%block:*}" ]; then
|
if [ -n "${root%%block:*}" ]; then
|
||||||
# if root is not specified try to mount the whole iSCSI LUN
|
# 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
|
printf 'ENV{DEVTYPE}!="partition", SYMLINK=="disk/by-path/*-iscsi-*-*", SYMLINK+="root"\n' >> /etc/udev/rules.d/99-iscsi-root.rules
|
||||||
fi
|
fi
|
||||||
iscsistart -b
|
iscsistart -b
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue