From dea0634544fc8e8ca4c93e0550f9a1416a82b29c Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Mon, 16 Mar 2015 11:55:13 +0100 Subject: [PATCH] lvm: add files needed for LVM system id support The LVM system id support is recent addition to LVM. See https://git.fedorahosted.org/cgit/lvm2.git/tree/man/lvmsystemid.7.in for more information (since lvm v2.02.117, currently the configuration is ignored, but we will enable it soon in next release). https://bugzilla.redhat.com/show_bug.cgi?id=1199918 --- modules.d/90lvm/module-setup.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules.d/90lvm/module-setup.sh b/modules.d/90lvm/module-setup.sh index c799a1cfb..82690781b 100755 --- a/modules.d/90lvm/module-setup.sh +++ b/modules.d/90lvm/module-setup.sh @@ -67,6 +67,20 @@ install() { sed -i -e 's/\(^[[:space:]]*\)locking_type[[:space:]]*=[[:space:]]*[[:digit:]]/\1locking_type = 4/' ${initdir}/etc/lvm/lvm.conf sed -i -e 's/\(^[[:space:]]*\)use_lvmetad[[:space:]]*=[[:space:]]*[[:digit:]]/\1use_lvmetad = 0/' ${initdir}/etc/lvm/lvm.conf fi + + export LVM_SUPPRESS_FD_WARNINGS=1 + # Also install any files needed for LVM system id support. + if [ -f /etc/lvm/lvmlocal.conf ]; then + inst_simple -H /etc/lvm/lvmlocal.conf + fi + eval $(lvm dumpconfig global/system_id_source) + if [ "$system_id_source" == "file" ]; then + eval $(lvm dumpconfig global/system_id_file) + if [ -f "$system_id_file" ]; then + inst_simple -H $system_id_file + fi + fi + unset LVM_SUPPRESS_FD_WARNINGS fi if ! [[ -e ${initdir}/etc/lvm/lvm.conf ]]; then -- 2.47.3