-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fedora CoreOS images should support discoverable partitions #1038
Comments
Could you give an example of a tool that would benefit from this? |
I am currently working on a tool that mounts disk images and optionally opens a local shell with |
If we're going to do this we probably need Ignition to update partitions types when re-partitioning the disk with LUKS/RAID/etc. |
I am able to help if you want me to. In case you do, can you please compile me a list of related projects? |
We discussed this during the community meeting yesterday.
@bgilbert - given your expertise with Igntion/Butane can you weigh in on the implications for that tooling and if there are any major concerns with moving forward on a plan like this? |
I concur that this is harmless but not especially useful. Of the benefits listed at the top of the spec, 1 and 2 are not relevant, 4 isn't especially interesting, and 3 is dubious. If a container manager expects to mount an FCOS rootfs, bypass the initrd, and directly start pid 1, startup will fail since we won't have pivoted into the ostree deployment. And to the extent discoverability would benefit tooling that modifies disk images behind the back of the OS provisioning system, users have the freedom to do that of course, but I'm not excited about encouraging it. As to practicalities: It appears that components of a multiple-device volume (RAID, LVM, etc.) aren't affected by the spec, even when such a volume is used for the root filesystem. The spec only mentions RAID once, to say that it's out of scope. This BZ comment explicitly says that some other type GUID should be used for such partitions. For LUKS-encrypted root, the spec and the BZ comment both say that we should use the discoverable GUID and then name the LUKS volume So AFAICS the logistics would be:
@Richterrettich, if you're up for it, I think this just needs a coreos-assembler PR for |
Some related discussions in #976. |
Mentioned in #976, asking upstream about GRUB support for discoverable partitions: https://lists.gnu.org/archive/html/grub-devel/2022-01/msg00171.html Discussion in systemd-devel@ the idea of a "discoverable subvolumes spec" that mimics discoverable partitions but for storage supporting multiple trees. While the lingo and impetus is Btrfs, the idea is to include plain directories so that ostree could take advantage of this naming scheme, as well as LVM and ZFS if they wanted to. |
Describe the enhancement
Fedora CoreOS images should follow the Discoverable Partitions Specification (https://systemd.io/DISCOVERABLE_PARTITIONS/).
At the moment, when I mount a bare metal image locally, it prints the following partition types:
PTTYPE
ofloop0p4
should beb921b045-1df0-41c3-af44-4c6f280d3fae
(since this is an aarch64 system) instead of the generic linux filesystem that it currently is.Likewise,
loop0p3
should havebc13c2ff-59e6-4262-a352-b275fd6f7172
asPTTYPE
.This would make it easier for tools to correctly mount these partitions without resorting to label parsing.
System details
Additional Information
The image I've used was
fedora-coreos-35.20211029.3.0-metal.aarch64.raw
The text was updated successfully, but these errors were encountered: