[node-patches] Change in ovirt-node[master]: Wait to trigger udev until multipath settles

rbarry at redhat.com rbarry at redhat.com
Tue Nov 18 17:15:36 UTC 2014


Ryan Barry has uploaded a new change for review.

Change subject: Wait to trigger udev until multipath settles
......................................................................

Wait to trigger udev until multipath settles

See:
http://git.kernel.org/cgit/boot/dracut/dracut.git/commit/?id=d829e7fce273e9dbd8a71dbf71612556331f28fa

Change-Id: I71dc86c7831b5e31b8d3b89d6a014bbd0ccc57a1
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
M recipe/rhevh7-post.ks
1 file changed, 20 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/97/35297/1

diff --git a/recipe/rhevh7-post.ks b/recipe/rhevh7-post.ks
index 475a1a3..330c5fb 100644
--- a/recipe/rhevh7-post.ks
+++ b/recipe/rhevh7-post.ks
@@ -200,3 +200,23 @@
 add_dracutmodules+="dmsquash-live"
 
 _EOF_
+
+patch --ignore-whitespace -d /usr/lib/dracut/ -p0 << \EOF_dracut
+--- modules.d/90dmsquash-live/dmsquash-live-genrules.sh
++++ modules.d/90dmsquash-live/dmsquash-live-genrules.sh
+@@ -3,10 +3,10 @@
+ case "$root" in
+   live:/dev/*)
+     {
+-        printf 'KERNEL=="%s", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/dmsquash-live-root $env{DEVNAME}"\n' \
+-            ${root#live:/dev/}
+-        printf 'SYMLINK=="%s", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/dmsquash-live-root $env{DEVNAME}"\n' \
+-            ${root#live:/dev/}
++        printf 'KERNEL=="%s", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/dmsquash-live-root %s"\n' \
++            "${root#live:/dev/}" "${root#live:}"
++        printf 'SYMLINK=="%s", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/dmsquash-live-root %s"\n' \
++            "${root#live:/dev/}" "${root#live:}"
+     } >> /etc/udev/rules.d/99-live-squash.rules
+     wait_for_dev -n "${root#live:}"
+   ;;
+EOF_dracut


-- 
To view, visit http://gerrit.ovirt.org/35297
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I71dc86c7831b5e31b8d3b89d6a014bbd0ccc57a1
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Ryan Barry <rbarry at redhat.com>



More information about the node-patches mailing list