lvm: silence errors from "lvm dumpconfig"
if the config option does not exist, we ignore the error anywaymaster
parent
319867faa8
commit
4916bf1a58
|
@ -73,7 +73,7 @@ install() {
|
||||||
if [ -f /etc/lvm/lvmlocal.conf ]; then
|
if [ -f /etc/lvm/lvmlocal.conf ]; then
|
||||||
inst_simple -H /etc/lvm/lvmlocal.conf
|
inst_simple -H /etc/lvm/lvmlocal.conf
|
||||||
fi
|
fi
|
||||||
eval $(lvm dumpconfig global/system_id_source)
|
eval $(lvm dumpconfig global/system_id_source &>/dev/null)
|
||||||
if [ "$system_id_source" == "file" ]; then
|
if [ "$system_id_source" == "file" ]; then
|
||||||
eval $(lvm dumpconfig global/system_id_file)
|
eval $(lvm dumpconfig global/system_id_file)
|
||||||
if [ -f "$system_id_file" ]; then
|
if [ -f "$system_id_file" ]; then
|
||||||
|
|
Loading…
Reference in New Issue