]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
iscsi/iscsiroot.sh: reload rules after adding 99-iscsi-root.rules
authorHarald Hoyer <harald@redhat.com>
Fri, 30 Nov 2012 10:13:17 +0000 (11:13 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 14 Dec 2012 08:04:56 +0000 (09:04 +0100)
modules.d/95iscsi/iscsiroot.sh

index 1a8cc8dffe06568442e4845ec6271393f96f9036..20738cfde58296c9a2a5d5af1ff8c23db9c82563 100755 (executable)
@@ -135,6 +135,7 @@ handle_netroot()
     if [ -z "$root" -o -n "${root%%block:*}" ]; then
         # if root is not specified try to mount the whole iSCSI LUN
         printf 'SYMLINK=="disk/by-path/*-iscsi-*-%s", SYMLINK+="root"\n' $iscsi_lun >> /etc/udev/rules.d/99-iscsi-root.rules
+        udevadm control --reload
 
         # install mount script
         echo "iscsi_lun=$iscsi_lun . /bin/mount-lun.sh " > $hookdir/mount/01-$$-iscsi.sh