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(-)master
parent
0a35a80b93
commit
b8a81fb885
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue