summaryrefslogtreecommitdiff
path: root/scripts/vgimportclone.sh
diff options
context:
space:
mode:
authorPetr Rockai <prockai@redhat.com>2013-04-28 22:38:22 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2013-06-02 00:47:17 +0200
commit05bf4b8cc3e3d15e79c9964e496dbe396beacb3c (patch)
treeab56aa80c7912770e6a9d17dc0d9dae9ae3bc3b1 /scripts/vgimportclone.sh
parentc5f7d401e5e558ea7dffaa326a27dd432241e639 (diff)
downloadlvm2-05bf4b8cc3e3d15e79c9964e496dbe396beacb3c.tar.gz
vgimportclone: override global_filter in lvm.conf
The global filter in system's lvm.conf may conflict with the custom filter we set up in vgimportclone (they can easily fail to intersect). Since we explicitly avoid talking to lvmetad in vgimportclone, it is safe and reasonable to do so.
Diffstat (limited to 'scripts/vgimportclone.sh')
-rwxr-xr-xscripts/vgimportclone.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/vgimportclone.sh b/scripts/vgimportclone.sh
index 520ca0294..d6ad75d3c 100755
--- a/scripts/vgimportclone.sh
+++ b/scripts/vgimportclone.sh
@@ -250,6 +250,7 @@ LVMCONF=${TMP_LVM_SYSTEM_DIR}/lvm.conf
/^[ \t]*scan[ \t]*=/{print "scan = [ \"" DEV "\" ]";next} \
/^[ \t]*cache[ \t]*=/{print "cache = \"" CACHE "\"";next} \
/^[ \t]*use_lvmetad[ \t]*=/{print "use_lvmetad = 0";next} \
+ /^[ \t]*global_filter[ \t]*=/{print "global_filter = [ \"a|.*|\" ]";next} \
/^[ \t]*cache_dir[ \t]*=/{print "cache_dir = \"" CACHE_DIR "\"";next} \
{print $0}' > ${LVMCONF}