Files
packages/utils
Daniel Golle 75438c8934 uvol: pad the MBR disk signature when matching root=
get_bootdev() identifies the boot disk for a root=PARTUUID=xxxxxxxx-NN
command line by reading the four-byte signature at offset 440 of each
block device, but renders it with %x per byte, so a byte below 0x10 comes
out as a single digit and the string is too short to ever match. A disk
whose signature is cf0a3161 yields "cfa3161", get_bootdev() returns null,
and every backend's init fails: uvol then reports no backend at all and
no volume can be created on a perfectly good volume group.

Pad each byte to two digits, as the GPT branch of the same function
already does.

Fixes: 6350c7bc63 ("uvol: replace with re-write in ucode")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-28 23:46:00 +01:00
..
…
2026-06-24 13:39:16 +08:00
2026-07-29 20:33:35 +03:00
…
2026-05-08 22:28:27 +02:00
2026-09-16 18:53:00 +03:00
…
2026-05-08 22:28:27 +02:00
2026-05-08 22:28:27 +02:00
2026-06-23 22:50:16 +08:00
2026-08-22 15:59:59 +01:00
2026-05-08 22:28:27 +02:00
2026-08-04 07:33:19 +02:00
2026-07-06 20:25:02 -06:00
2026-05-15 13:45:40 +01:00
2026-05-15 13:45:40 +01:00
2026-07-18 11:46:26 +03:00
2026-06-23 22:48:58 +08:00
2026-09-11 01:46:29 +01:00
…
2026-05-08 22:28:27 +02:00
2026-06-11 11:37:29 +02:00
2026-07-18 11:46:26 +03:00
2026-07-18 11:46:26 +03:00
2026-05-08 22:28:27 +02:00
2026-07-29 22:48:02 +03:00
2026-05-08 22:28:27 +02:00
2026-05-08 22:28:27 +02:00
2026-08-23 19:51:30 +03:00
…
2026-05-10 11:32:19 +03:00
2026-07-06 10:01:00 +02:00
2026-06-11 08:23:55 +02:00
2026-06-01 08:10:43 +03:00
2026-08-27 14:50:51 +03:00
2026-05-10 11:32:19 +03:00
2026-07-09 16:52:14 +03:00
2026-08-23 19:53:55 +03:00
2026-05-08 22:28:27 +02:00
2026-05-08 22:28:27 +02:00
2026-05-08 22:28:27 +02:00
2026-08-23 19:56:11 +03:00
2026-09-28 08:01:08 +02:00
2026-05-08 22:28:27 +02:00
2026-05-08 22:28:27 +02:00
2026-05-08 22:28:27 +02:00
2026-06-23 16:40:19 +03:00
2026-05-08 22:28:27 +02:00
2026-05-08 22:28:27 +02:00
2026-07-14 15:48:20 +02:00
2026-08-11 13:50:26 +03:00
…
…
2026-07-31 12:52:31 +03:00
…
2026-05-08 22:28:27 +02:00
…
2026-05-08 22:28:27 +02:00
2026-05-08 22:28:27 +02:00
2026-07-31 12:52:31 +03:00
…
2026-07-07 20:29:49 +02:00
2026-08-31 17:30:15 +01:00
2026-06-21 17:25:02 +02:00
2026-05-17 08:55:58 +02:00
…
…
2026-05-08 22:28:27 +02:00
2026-05-06 21:05:02 +03:00
2026-09-18 19:08:53 +03:00
2026-08-03 18:10:36 +03:00
…
2026-05-08 22:28:27 +02:00
2026-05-08 22:28:27 +02:00
2026-05-08 22:28:27 +02:00
2026-05-12 16:18:56 +01:00
…
2026-08-31 11:54:17 +02:00
2026-05-08 22:28:27 +02:00
2026-08-22 15:59:59 +01:00
…
2026-07-20 08:17:44 +02:00
2026-07-30 14:21:19 +03:00
2026-09-04 17:04:13 +03:00
2026-09-18 19:16:28 +03:00
2026-05-19 08:50:55 +03:00
2026-05-08 22:28:27 +02:00
2026-06-10 00:07:48 +02:00
2026-06-26 16:39:50 +08:00
2026-07-18 11:46:26 +03:00
2026-05-03 08:14:01 +02:00
2026-05-08 22:28:27 +02:00
2026-05-08 22:28:27 +02:00
2026-05-08 22:28:27 +02:00
2026-08-24 20:05:46 +03:00
2026-05-10 11:32:19 +03:00
2026-09-08 10:52:20 +03:00
…
…
2026-08-10 20:26:40 +03:00
…
…
…
2026-09-27 21:18:46 +02:00
…
2026-08-23 12:35:52 +02:00
…
…
2026-09-07 12:03:33 +02:00
2026-05-08 22:28:27 +02:00
2026-08-28 09:01:42 +03:00
2026-05-22 16:28:17 +03:00
…
2026-05-06 21:05:02 +03:00
2026-09-28 11:10:45 +03:00
2026-05-08 22:28:27 +02:00
2026-09-01 09:45:10 +08:00
2026-05-08 22:28:27 +02:00
2026-07-15 08:30:36 +02:00