Browse Source

iscsiroot: fixed udev rules for iscsi_firmware

master
Harald Hoyer 16 years ago
parent
commit
bb57587b42
  1. 2
      modules.d/95iscsi/iscsiroot

2
modules.d/95iscsi/iscsiroot

@ -42,7 +42,7 @@ modprobe crc32c @@ -42,7 +42,7 @@ modprobe crc32c
if getarg iscsi_firmware ; then
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
printf 'ENV{DEVTYPE}!="partition", SYMLINK=="disk/by-path/*-iscsi-*-*", SYMLINK+="root"\n' >> /etc/udev/rules.d/99-iscsi-root.rules
fi
iscsistart -b
exit 0

Loading…
Cancel
Save