The command reliable works here on the fully booted VM:
slestemplate:~ # blkid -c /dev/null -o export >/dev/null ; echo $? 0
DEVNAME=/dev/sda1 UUID=[…] TYPE=LVM2_member PARTUUID=[…]
DEVNAME=/dev/sr0 UUID=2018-05-16-12-18-22-00 LABEL=cidata TYPE=iso9660
DEVNAME=/dev/mapper/0QEMU_QEMU_HARDDISK_drive-scsi0 PTUUID=[…] PTTYPE=dos
DEVNAME=/dev/mapper/0QEMU_QEMU_HARDDISK_drive-scsi0-part1 UUID=Tlko7f-sFXz-tgEn-3Pks-m652-XxVK-tl5dIB TYPE=LVM2_member PARTUUID=[…]
DEVNAME=/dev/mapper/sys0-rootfs UUID=[…] UUID_SUB=[…] TYPE=btrfs
I think I am just going to hardcode the datasource now. Either via configuration file if possible or by hacking the shell script.
The command reliable works here on the fully booted VM:
slestemplate:~ # blkid -c /dev/null -o export >/dev/null ; echo $?
0
DEVNAME=/dev/sda1
UUID=[…]
TYPE=LVM2_member
PARTUUID=[…]
DEVNAME=/dev/sr0 05-16-12- 18-22-00
UUID=2018-
LABEL=cidata
TYPE=iso9660
DEVNAME= /dev/mapper/ 0QEMU_QEMU_ HARDDISK_ drive-scsi0
PTUUID=[…]
PTTYPE=dos
DEVNAME= /dev/mapper/ 0QEMU_QEMU_ HARDDISK_ drive-scsi0- part1 sFXz-tgEn- 3Pks-m652- XxVK-tl5dIB
UUID=Tlko7f-
TYPE=LVM2_member
PARTUUID=[…]
DEVNAME= /dev/mapper/ sys0-rootfs
UUID=[…]
UUID_SUB=[…]
TYPE=btrfs
I think I am just going to hardcode the datasource now. Either via configuration file if possible or by hacking the shell script.