diff --git a/test/shell/system_id.sh b/test/shell/system_id.sh index 14d2c6fd4..486fba1c3 100644 --- a/test/shell/system_id.sh +++ b/test/shell/system_id.sh @@ -24,10 +24,13 @@ print_lvmlocal() { aux prepare_devs 5 -SIDFILE="etc/lvm_test.conf" -LVMLOCAL="etc/lvmlocal.conf" +# get lvm.conf location in a form of: etc=path +eval "$(lvmconfig global/etc)" -DFDIR="$LVM_SYSTEM_DIR/devices" +SIDFILE="$etc/lvm_test.conf" +LVMLOCAL="$etc/lvmlocal.conf" + +DFDIR="$etc/devices" DF="$DFDIR/system.devices" # Avoid system id validation in the devices file @@ -50,10 +53,6 @@ vgcreate $vg1 "$dev1" check vg_field $vg1 systemid "$SID" vgremove $vg1 -# FIXME - print 'life' config data -#eval "$(lvmconfig global/etc 2>/dev/null || lvmconfig --type default global/etc)" -etc="/etc" - ## machineid if [ -e "$etc/machine-id" ]; then SID=$(cat "$etc/machine-id") @@ -708,4 +707,3 @@ vgs -o+systemid $vg1 check vg_field $vg1 systemid "$SID" grep "No system ID found from system_id_source" err vgremove $vg1 -