1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

tests: skip system_id machineid case when not available

instead of creating a fake /etc/machine-id file on the
system to test with.
This commit is contained in:
David Teigland 2015-02-20 13:12:38 -06:00
parent e0946dca69
commit 55dd45239a

View File

@ -27,16 +27,14 @@ vgremove $vg1
## machineid
if [ ! -e /etc/machine-id ]; then
echo "49e0eef929d541a0b8b56128441b2d60" > /etc/machine-id
fi
if [ -e /etc/machine-id ]; then
SID=$(cat /etc/machine-id)
aux lvmconf "global/system_id_source = machineid"
vgcreate $vg1 "$dev1"
vgs -o+systemid $vg1
check vg_field $vg1 systemid $SID
vgremove $vg1
# FIXME: remove file if created
fi
## uname