diff --git a/fedora-build-opennebula-image.sh b/fedora-build-opennebula-image.sh index 419e193..84d8d57 100755 --- a/fedora-build-opennebula-image.sh +++ b/fedora-build-opennebula-image.sh @@ -135,10 +135,11 @@ run_root dnf -y install openssh-server run_root systemctl enable sshd # Generate fstab file. -# TODO: use UIDs instead of /dev/vdaX, current scheme is very fragile. +boot_uuid=$(blkid --match-tag UUID --output value "${NBD_DEVICE}p1") +root_uuid=$(blkid --match-tag UUID --output value "${NBD_DEVICE}p2") cat >>/mnt/etc/fstab <