18922761a6
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
13 lines
450 B
INI
13 lines
450 B
INI
%post --erroronfail
|
|
|
|
# Source common functions
|
|
. /tmp/ks-functions.sh
|
|
|
|
# uncomment the global_filter line in lvm.conf
|
|
perl -0777 -i.bak -pe 's:(# This configuration option has an automatic default value\.\n)\t# global_filter:$1 global_filter:m' /etc/lvm/lvm.conf
|
|
|
|
# Edit the LVM config so LVM does not look for LVs (we have none on compute nodes)
|
|
sed -i "s#^\( *\)global_filter = \[.*#\1global_filter = [ \"r|.*|\" ]#" /etc/lvm/lvm.conf
|
|
%end
|
|
|