Skip to content

install: support passing ostree repo config #1710

Description

@jbtrystram

It would be nice to be able to add ostree repo configuration through the bootc-install-config file, e.g. :

[install.ostree.config]
sysroot.bls-append-except-default = 'grub_users=""'
sysroot.bootloader = 'none'

I see bootc have some default here :

const DEFAULT_REPO_CONFIG: &[(&str, &str)] = &[
// Default to avoiding grub2-mkconfig etc.
("sysroot.bootloader", "none"),
// Always flip this one on because we need to support alongside installs
// to systems without a separate boot partition.
("sysroot.bootprefix", "true"),
("sysroot.readonly", "true"),
];

Activity

  1. cgwalters commented on Oct 29, 2025

    @cgwalters
    Member

    This is really just about sysroot.bls-append-except-default = 'grub_users=""' right?

    One of the things we're trying to do here remember to support composefs as a backend. Now IMO fully sealed images obviate a lot of the use cases for grub passwords, but yes they're not quite the same thing.

    Also, multi-profile UKIs allow having explicitly gated kargs like systemd.unit=custom-recovery-shell.target (that might not allow unrestricted root say).


    Anyways I'm not opposed to the feature as written for the most part, though we could also consider only offering

    [install.ostree]
    bls_append_except_default = 'grub_users=""
    

    i.e. so arbitrary keys can't be written, just that one.

  2. jbtrystram commented on Oct 30, 2025

    @jbtrystram
    ContributorAuthor

    This is really just about sysroot.bls-append-except-default = 'grub_users=""' right?

    Yes.

    One of the things we're trying to do here remember to support composefs as a backend.

    Yeah I know that would solve this but right now I am focused on transitioning our pipeline to use bootc install, staying as close as possible to the existing artifacts.

    Anyways I'm not opposed to the feature as written for the most part, though we could also consider only offering

    [install.ostree]
    bls_append_except_default = 'grub_users=""
    

    i.e. so arbitrary keys can't be written, just that one.

    Allright, i'll give that a go

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

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions