Skip to content

Drop dependency on /etc/fstab for /boot #364

Open
@cgwalters

Description

@cgwalters

Splitting this sub-thread from #357

Today bootc install to-filesystem always writes an /etc/fstab entry for /boot. However, I think the OS container should be in control of the semantics more here (things like mount options, filesystem type).

One strawman here is that we could look for a /usr/lib/systemd/system/boot.mount unit, and template it (adding the final uuid) into /etc/systemd/system.

The other option is for bootc install to switch to generating a boot= kernel argument...one thing is this sadly is required for FIPS compliant mode (to compare the booted kernel in the initramfs), and so we might as well do it unconditionally. We'd then probably argue to extend systemd-fstab-generator for this (or carry an equivalent generator elsewhere).

Yet another model...since the bootloader had to parse the /boot filesystem anyways, get that information passed to us. I commented earlier on this...this seems like the most elegant, but also hardest as in the general case we'd need to get a coordinated change across systemd-boot, grub, zipl etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/installIssues related to `bootc install`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions