-
Bug
-
Resolution: Done-Errata
-
Minor
-
rhel-9.4
-
None
-
util-linux-2.37.4-19.el9
-
None
-
None
-
rhel-sst-cs-plumbers
-
ssg_core_services
-
26
-
2
-
False
-
-
None
-
None
-
None
It looks like `blkid` gives a higher priority to LUKS header than to swap header (even if the swap header is at the start of the partition, the detected LUKS header is the secondary one on offset 0x8000) – we have a system for storage testing where a LUKS image saved in memory was swapped out resulting in blkid detecting LUKS header on the swap partition instead. The result is the system isn't booting because the swap partition (referred by UUID in /etc/fstab) now doesn't exist.
# blkid /dev/vda2 /dev/vda2: UUID="0768e313-748c-46bf-9721-5a126d1cf444" TYPE="crypto_LUKS" PARTUUID="71396e3d-02"
# wipefs /dev/vda2 DEVICE OFFSET TYPE UUID LABEL vda2 0x8000 crypto_LUKS 0768e313-748c-46bf-9721-5a126d1cf444 vda2 0xff6 swap 05ef84fa-9140-483f-97a2-20c179f409c2
- links to
-
RHBA-2024:137968 util-linux bug fix update