Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding 640_verify_lvm_conf.sh script #2107

Merged
merged 2 commits into from
Apr 5, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions usr/share/rear/build/GNU/Linux/640_verify_lvm_conf.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# build/GNU/Linux/640_verify_lvm_conf.sh
# Purpose is to turn off the "WARNING: Failed to connect to lvmetad. Falling back to device scanning" in the output during
# the 'rear recover' process - see issue https://github.com/rear/rear/issues/2044 for more details

if test -f $ROOTFS_DIR/etc/lvm/lvm.conf ; then
sed -i 's/use_lvmetad =.*/use_lvmetad = 0/' $ROOTFS_DIR/etc/lvm/lvm.conf
fi