]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev: probe GPT sector size and trigger loop device on mismatch
authorDaan De Meyer <daan@amutable.com>
Mon, 30 Mar 2026 20:11:15 +0000 (20:11 +0000)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 4 Apr 2026 18:03:44 +0000 (20:03 +0200)
commit047ae265cc3ce339e14022ac63281535da6b6f8f
tree9754e7693dce17d3e608a6e0e375e83d8133b617
parent8f5735ad50e27a036925b02bd876eedce2630f8f
udev: probe GPT sector size and trigger loop device on mismatch

When the GPT partition table uses a different sector size than the
device's native block size (e.g. 512-byte GPT on a 2048-byte CD-ROM
booted via El Torito), the kernel cannot parse the partition table.

Probe the GPT sector size upfront and configure blkid with the correct
value so it always finds the partition table. If a sector size mismatch
is detected, trigger a loop device to re-expose the device with the
correct sector size and skip root partition discovery on the original
device — it will happen on the loop device instead.

Co-developed-by: Claude Opus 4.6 <noreply@anthropic.com>
rules.d/99-systemd.rules.in
src/udev/udev-builtin-blkid.c