[node-patches] Change in ovirt-node[master]: Don't use lvmetad
fabiand at redhat.com
fabiand at redhat.com
Wed Oct 1 12:14:04 UTC 2014
Fabian Deutsch has posted comments on this change.
Change subject: Don't use lvmetad
......................................................................
Patch Set 6:
(1 comment)
http://gerrit.ovirt.org/#/c/33540/6/recipe/rhevh7-post.ks
File recipe/rhevh7-post.ks:
Line 6: dirs /var/db
Line 7: EOF_RWTAB_RHEVH
Line 8:
Line 9: # disable lvmetad rhbz#1147217
Line 10: sed -ie 's/^[^#]\(\s*use_lvmetad\)\s*=\s*[[:digit:]]/\1 = 0/' /etc/lvm/lvm.conf
> You don't need [^#]. The pattern is: start of line + zero or more whitespac
Nir, we can not be sure that the directive is commented out or not.
To handle both cases we should take the hash-bang into account.
Line 11:
Line 12: enabled=$(grep -E '^[^#]\s*use_lvmetad\s*=\s*[1-9][0-9]*' /etc/lvm/lvm.conf)
Line 13: if [ -n "$enabled" ]; then
Line 14: echo "lvmetad not disabled, value is:"
--
To view, visit http://gerrit.ovirt.org/33540
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie111f462d15bde004506638e3d70943e3dd9daba
Gerrit-PatchSet: 6
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Ryan Barry <rbarry at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Fabian Deutsch <fabiand at redhat.com>
Gerrit-Reviewer: Federico Simoncelli <fsimonce at redhat.com>
Gerrit-Reviewer: Nir Soffer <nsoffer at redhat.com>
Gerrit-Reviewer: Ryan Barry <rbarry at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-HasComments: Yes
More information about the node-patches
mailing list