[node-patches] Change in ovirt-node[master]: common-post: Add validation for 40-multipath.rules

dougsland at redhat.com dougsland at redhat.com
Thu Nov 6 00:31:07 UTC 2014


Douglas Schilling Landgraf has uploaded a new change for review.

Change subject: common-post: Add validation for 40-multipath.rules
......................................................................

common-post: Add validation for 40-multipath.rules

This patch adds a validation before applyting the 40-multipath.rules patch
to all flavors of ovirt-node.

Change-Id: Ic4b2164e1244e102e694f1d0b9a3111ec933def8
Signed-off-by: Douglas Schilling Landgraf <dougsland at redhat.com>
---
M recipe/common-post.ks
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/46/34846/1

diff --git a/recipe/common-post.ks b/recipe/common-post.ks
index 3629a4a..b6dc16f 100644
--- a/recipe/common-post.ks
+++ b/recipe/common-post.ks
@@ -290,6 +290,7 @@
 EOF_sos_patch
 fi
 
+if [ -f /lib/udev/rules.d/40-multipath.rules ]; then
 patch --ignore-whitespace -d /lib/udev/rules.d -p0 << \EOF_udev_patch
 --- 40-multipath.rules.orig     2014-11-04 14:57:12.385999154 +0000
 +++ 40-multipath.rules  2014-11-04 14:58:19.081002175 +0000
@@ -301,6 +302,7 @@
 +ENV{DM_ACTIVATION}==1, RUN+="$env{MPATH_SBIN_PATH}/kpartx -a -p p $tempnode"
  LABEL="end_mpath"
 EOF_udev_patch
+fi
 
 echo "Regenerating initramfs"
 dracut -f || :


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic4b2164e1244e102e694f1d0b9a3111ec933def8
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <dougsland at redhat.com>



More information about the node-patches mailing list