Skip to content

install to-filesystem: support opt-out for the root and boot mountspec kernel arguments #1441

Closed

Description

@jbtrystram

I am working on using bootc install to-filesystem to create disk images for Fedora CoreOS.

Currently this works with theses osbuild changes, but the resulting disk image have root=UUID... and boot=UUID... kernel arguments baked in.

This causes issues because ignition generates new uniques UUIDs for those filesystems during the first boot, and if the root argument is already present, some of that logic get short-circuited:

https://github.com/coreos/fedora-coreos-config/blob/bf40cb9f3eef371434b2f6e625250185af7bbc3d/overlay.d/05core/usr/lib/dracut/modules.d/35coreos-ignition/coreos-diskful-generator#L77-L79

So it would be good to be able to not inject those kargs and have our intramfs bit do it after the UUID are regenerated.

More discussion in coreos/fedora-coreos-tracker#1827

Activity

  1. changed the title [-]install to-filesystem: support opt-out for the `root` mountspec kernel argument[/-] [+]install to-filesystem: support opt-out for the `root` and `boot` mountspec kernel arguments[/+] on Jul 23, 2025
  2. cgwalters commented on Jul 23, 2025

    @cgwalters
    Member
  3. jbtrystram commented on Jul 23, 2025

    @jbtrystram
    ContributorAuthor

    Did you see this coreos/fedora-coreos-tracker#1827 (comment) ?

    Yes, I tried playing with it but the only way to get the image to boot is to remove the karg entirely.
    I guess we could have a dumb-firstboot placeholder value and look for it, but I suppose bootc won't be happy if the mountspec is invalid?

  4. cgwalters commented on Jul 23, 2025

    @cgwalters
    Member

    Oh right yes, we should support omitting the kargs entirely. We'll want that for DPS based too. Hmm, maybe we just make --root-mount-spec= i.e. the empty string mean to omit it.

  5. dustymabe commented on Jul 24, 2025

    @dustymabe

    Oh right yes, we should support omitting the kargs entirely. We'll want that for DPS based too. Hmm, maybe we just make --root-mount-spec= i.e. the empty string mean to omit it.

    This SGTM!

  6. added this to the 1.6.0 milestone on Jul 25, 2025
  7. cgwalters commented on Aug 1, 2025

    @cgwalters
    Member

    Fixed by 560711d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions