summaryrefslogtreecommitdiff
path: root/modules.d
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2012-04-10 04:40:53 -0400
committerHarald Hoyer <harald@redhat.com>2012-04-16 14:46:53 +0200
commitb8a81fb885c981d795a664ae8665e68d7359231a (patch)
tree193c3d2de81c2940bf0f360e3f4b01bc75019c80 /modules.d
parent0a35a80b934a0a5a34e3c23244aca0caa440e5d4 (diff)
downloaddracut-b8a81fb885c981d795a664ae8665e68d7359231a.tar.gz
dracut-b8a81fb885c981d795a664ae8665e68d7359231a.tar.bz2
dracut-b8a81fb885c981d795a664ae8665e68d7359231a.zip
lvm: disable lvmetad
Currently dracut uses lvm.conf as found in the system and modifies only global/locking_type setting. As there's a new feature introduced - the lvmetad daemon, dracut should disable its use as well by setting "global/use_lvmetad=0" (patch attached). Otherwise, there's a warning message issued: dracut: WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning. @@ -, +, @@ modules.d/90lvm/lvm_scan.sh | 2 ++ modules.d/90lvm/module-setup.sh | 1 + 2 files changed, 3 insertions(+), 0 deletions(-)
Diffstat (limited to 'modules.d')
-rwxr-xr-xmodules.d/90lvm/lvm_scan.sh2
-rwxr-xr-xmodules.d/90lvm/module-setup.sh1
2 files changed, 3 insertions, 0 deletions
diff --git a/modules.d/90lvm/lvm_scan.sh b/modules.d/90lvm/lvm_scan.sh
index 104565f0..17c29bc6 100755
--- a/modules.d/90lvm/lvm_scan.sh
+++ b/modules.d/90lvm/lvm_scan.sh
@@ -35,10 +35,12 @@ if [ ! -e /etc/lvm/lvm.conf ]; then
if [ -n $SNAPSHOT ]; then
echo 'global {';
echo ' locking_type = 1';
+ echo ' use_lvmetad = 0';
echo '}';
else
echo 'global {';
echo ' locking_type = 4';
+ echo ' use_lvmetad = 0';
echo '}';
fi
} > /etc/lvm/lvm.conf
diff --git a/modules.d/90lvm/module-setup.sh b/modules.d/90lvm/module-setup.sh
index 15c824d2..2ce5c501 100755
--- a/modules.d/90lvm/module-setup.sh
+++ b/modules.d/90lvm/module-setup.sh
@@ -49,6 +49,7 @@ install() {
# FIXME: near-term hack to establish read-only locking;
# use command-line lvm.conf editor once it is available
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
fi