blockdev: use 'blkid' for reading device's UUID#917
Conversation
firstboot of RHCOS on IBM zKVM from time to time fails during "File System Check". This happens, because systemd unit has an old filesystem's UUID from pristine qcow2 image, not the regenerated one: ``` coreos-boot-edit: + lsblk -o NAME,LABEL,UUID --paths --pairs /dev/disk/by-label/boot coreos-boot-edit: NAME="/dev/mapper/crypt_bootfs" LABEL="boot" UUID="96d15588-3596-4b3c-adca-a2ff7279ea63" coreos-boot-edit: + blkid /dev/disk/by-label/boot coreos-boot-edit: /dev/disk/by-label/boot: LABEL="boot" UUID="eee55c4f-c2df-47e9-a284-992e9e122a97" BLOCK_SIZE="1024" TYPE="ext4" coreos-boot-edit: + rdcore bind-boot /sysroot /mnt/boot_partition ..... coreos-boot-mount-generator: ++ cat /run/coreos/bootfs_uuid coreos-boot-mount-generator: + bootdev=/dev/disk/by-uuid/96d15588-3596-4b3c-adca-a2ff7279ea63 ``` Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
|
Hmm, so the bootfs UUID reported by |
i guess that issue is somewhere between old kernel of RHEL and udev on zKVM. FCOS works just fine. Maybe i'm wrong. |
|
Hmm. I think this may be that (Comparing e.g. This to mean signals that the real problem is likely that we need to synchronously wait for a |
|
Do we still need this now that we're using an Ignition config for the reprovisioning in coreos/fedora-coreos-config#1819? |
i'd prefer to have this. i wasn't able to test ignition+luks on RHCOS, because it again switched to an old kernel (or haven't picked up a fixed one): https://bugzilla.redhat.com/show_bug.cgi?id=2075085 . switching to |
cgwalters
left a comment
There was a problem hiding this comment.
FWIW, while I think ensuring we can know the kernel state is correct here would be better, I'm personally fine with this too.
|
Right, my concern with this is that this feels like it's working around what could possibly be a deeper issue. We're fixing it for |
firstboot of RHCOS on IBM zKVM from time to time fails during "File System Check".
This happens, because systemd unit has an old filesystem's UUID from pristine qcow2 image,
not the regenerated one: