archlinux / archinstall

Arch Linux installer - guided, templates etc.
GNU General Public License v3.0
6.09k stars 528 forks source link

Add udev sync before lsblk that follows formatting #2412

Closed codefiles closed 6 months ago

codefiles commented 6 months ago

Resolves #2411

Torxed commented 6 months ago

Awesome work, and nice finding. This might have been the issue I've had issue describing and finding a solution to back when we had issues with partitions not being available in lsblk/partition listing? Sounds like that's exactly what it's for at least, to let the kernel discover all the nodes properly.

codefiles commented 6 months ago

When a device is added or modified udev is updated with information about the device via udev events. If lsblk is used before udev is finished processing the event queue then information may be missing. According to udevadm.8, udevadm settle waits until all the currently queued udev events are handled before it exits.