FS#54583 - [arch-install-scripts] `lsblk` still returns old UUID after `mkfs`, causing `genfstab -U` to fail

Attached to Project: Arch Linux
Opened by tromang (tromang) - Sunday, 25 June 2017, 05:17 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 26 November 2017, 22:43 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Dave Reisner (falconindy)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

... since [`genfstab -U` uses `lsblk`](https://git.archlinux.org/arch-install-scripts.git/tree/genfstab.in).

`blkid` returns correct UUID immediately.

`lsblk -f` still returns old UUID (which no longer exists). Returns correct UUID after rebooting.

----

As a result, running `genfstab -U` as (and when) [prescribed](https://wiki.archlinux.org/index.php/installation_guide) causes the now-nonexistent UUIDs returned by `lsblk` to be written to `/etc/fstab`, causing a nasty boot failure.

Using `archlinux-2017.06.01-x86_64.iso` on a Lenovo N21.

----

Further discussion: https://www.reddit.com/r/archlinux/comments/6j34ra/archiso_lsblk_still_returns_old_uuid_after_mkfs/
This task depends upon

Closed by  Dave Reisner (falconindy)
Sunday, 26 November 2017, 22:43 GMT
Reason for closing:  Won't fix
Additional comments about closing:  Not a problem with arch-install-scripts.
Comment by Dave Reisner (falconindy) - Sunday, 25 June 2017, 12:43 GMT
lsblk reads from udev. If udev has the wrong info, then there's a missing CHANGE event which would have synchronized the info in the udev DB with reality. You can confirm this by calling 'udevadm info /dev/whatever' after the UUID changes to see the old UUID.

I don't want to make genfstab rely on blkid, because then it requires privileged access to the disk to read UUIDs (and even then, it might cache bad data).
Comment by Doug Newgard (Scimmia) - Tuesday, 27 June 2017, 16:54 GMT
Link suggests it's specific to installing on an SD card. I could see udev having issues with that.

Loading...