]> sourceware.org Git - lvm2.git/commitdiff
tests: pvscan-autoactivate check for machine-id
authorDavid Teigland <teigland@redhat.com>
Thu, 6 Jun 2019 20:32:42 +0000 (15:32 -0500)
committerDavid Teigland <teigland@redhat.com>
Thu, 6 Jun 2019 20:32:42 +0000 (15:32 -0500)
test/shell/pvscan-autoactivate.sh

index 362a4ff83ef46d86a92fbd94e056e948c8b4fe1d..d674dc52278035103139ecf2cc3adc2c41c8e94a 100644 (file)
@@ -134,6 +134,8 @@ not ls "$RUNDIR/lvm/pvs_online/$PVID3"
 
 # pvscan cache ignores pv in a foreign vg
 
+if [ -e "/etc/machine-id" ]; then
+
 aux lvmconf "global/system_id_source = machineid"
 
 _clear_online_files
@@ -168,6 +170,8 @@ cat tmp
 grep $lv2 tmp
 check lv_field $vg2/$lv2 lv_active "" --foreign
 
+fi
+
 
 # Test the case where pvscan --cache -aay (with no devs)
 # gets the final PV to complete the VG, where that final PV
This page took 0.030541 seconds and 5 git commands to generate.