mirror of
git://sourceware.org/git/lvm2.git
synced 2025-08-05 16:22:02 +03:00
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.
This commit is contained in:
committed by
Zdenek Kabelac
parent
c5f7d401e5
commit
05bf4b8cc3
@ -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}
|
||||
|
||||
|
Reference in New Issue
Block a user