iscsiroot: fixed udev rules for iscsi_firmware

master
Harald Hoyer 2009-07-30 16:14:09 +02:00
parent b61ca28260
commit bb57587b42
1 changed files with 1 additions and 1 deletions

View File

@ -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