From: Harald Hoyer Date: Thu, 30 Jul 2009 14:11:11 +0000 (+0200) Subject: add udev rules for iscsi_firmware X-Git-Tag: 0.8~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a3f4e7709bf886587fb65f172d4f950d0a3c33d7;p=thirdparty%2Fdracut.git add udev rules for iscsi_firmware --- diff --git a/modules.d/95iscsi/iscsiroot b/modules.d/95iscsi/iscsiroot index f0dbdaaa3..436b67c77 100755 --- 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