You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fixes bootc's use of the Discoverable Partition Specification (DPS)
to properly support systemd-gpt-auto-generator. Previously, bootc was
incorrectly setting filesystem UUIDs to the DPS partition type UUID value,
which caused UUID collisions and prevented proper DPS functionality.
It's still a TODO on our side to support systemd-repart in this flow.
Note we go back to using random filesystem UUIDs with this, but
per above we should likely reinitialize them on boot via repart.
Note we remove root= parameter from kernel cmdline for composefs sealed images,
allowing systemd-gpt-auto-generator to auto-discover the root partition
and we test this.
Fixes: #1771
Assisted-by: Claude Code (Sonnet 4.5)
Signed-off-by: Colin Walters <[email protected]>
// Verify that we booted via systemd-gpt-auto-generator by checking
84
+
// that /proc/cmdline does NOT contain a root= parameter
85
+
let has_root_param = cmdline.iter().any(|entry| {
86
+
entry.key() == "root".into()
87
+
});
88
+
assert!(!has_root_param,"Sealed composefs image should not have root= in kernel cmdline; systemd-gpt-auto-generator should discover the root partition via DPS");
Copy file name to clipboardExpand all lines: docs/src/man/bootc-install-to-disk.8.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,19 @@ the container image, alongside any required system partitions such as
19
19
the EFI system partition. Use `install to-filesystem` for anything
20
20
more complex such as RAID, LVM, LUKS etc.
21
21
22
+
## Partitioning details
23
+
24
+
The default as of bootc 1.11 uses the [Discoverable Partitions Specification](https://uapi-group.org/specifications/specs/discoverable_partitions_specification/)
25
+
for the generated root filesystem, as well as any required system partitions
26
+
such as the EFI system partition.
27
+
28
+
Note that by default when used with "type 1" bootloader setups (i.e. non-UKI)
29
+
a kernel argument `root=UUID=<uuid of filesystem>` is injected by default.
30
+
31
+
When used with the composefs backend and UKIs, it's recommended that
32
+
a bootloader implementing the DPS specification is used and that the root
assert (not$has_root_param) "systemd-boot image should not have root= in kernel cmdline; systemd-gpt-auto-generator should discover the root partition via DPS"
0 commit comments