Skip to content

install: support configuring sysroot.bls-append-except-default#1909

Merged
cgwalters merged 1 commit intobootc-dev:mainfrom
joelcapitao:feat-grubusers
Jan 22, 2026
Merged

install: support configuring sysroot.bls-append-except-default#1909
cgwalters merged 1 commit intobootc-dev:mainfrom
joelcapitao:feat-grubusers

Conversation

@joelcapitao
Copy link
Contributor

@joelcapitao joelcapitao commented Jan 14, 2026

Add a new [install.ostree] configuration section to allow setting the ostree sysroot.bls-append-except-default option during installation.

Closes: #1710

Signed-off-by: Joel Capitao jcapitao@redhat.com
Co-authored-by: Jean-Baptiste Trystram jbtrystram@redhat.com
Assisted-by: Claude (Sonnet 4)

@github-actions github-actions bot added the area/install Issues related to `bootc install` label Jan 14, 2026
@bootc-bot bootc-bot bot requested a review from cgwalters January 14, 2026 15:51
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds support for configuring sysroot.bls-append-except-default for ostree during installation. The changes are well-structured, introducing the necessary configuration options and the logic to apply them. The new functionality is also covered by a test case. I've provided a couple of suggestions to improve code readability and remove duplication.

@joelcapitao joelcapitao force-pushed the feat-grubusers branch 3 times, most recently from c13cf9e to b806975 Compare January 20, 2026 18:03
@joelcapitao
Copy link
Contributor Author

It looks like the packit failures are not related to this patch

Copy link
Collaborator

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the install config docs for this.

We could probably also add this option to one of our existing install tests too (we have a bunch).

Otherwise I just have nits.

@cgwalters
Copy link
Collaborator

I rebased 🏄 this btw alongside other outstanding PRs

@github-actions github-actions bot added area/ostree Issues related to ostree area/documentation Updates to the documentation labels Jan 21, 2026
@joelcapitao joelcapitao force-pushed the feat-grubusers branch 2 times, most recently from 9de6c8f to ed03854 Compare January 22, 2026 07:45
Add a new [install.ostree] configuration section to allow setting the
ostree sysroot.bls-append-except-default option during installation.

Closes: bootc-dev#1710

Signed-off-by: Joel Capitao <jcapitao@redhat.com>
Co-authored-by: Jean-Baptiste Trystram <jbtrystram@redhat.com>
Assisted-by: Claude (Sonnet 4)
@cgwalters cgwalters self-assigned this Jan 22, 2026
Copy link
Collaborator

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@cgwalters cgwalters merged commit b901498 into bootc-dev:main Jan 22, 2026
29 of 36 checks passed
joelcapitao added a commit to joelcapitao/osbuild that referenced this pull request Jan 22, 2026
Add support for the new [install.ostree] configuration section
with the bls-append-except-default option, which was introduced
in bootc PR osbuild#1909 [1]

This option allows setting the ostree sysroot.bls-append-except-default
config key during installation, which appends kernel arguments to
Boot Loader Spec entries except for the default entry. A common use
case is setting grub_users="" to bypass GRUB password prompts for
non-default deployments.

Example usage in manifest:
  {
    "type": "org.osbuild.bootc.install.config",
    "options": {
      "filename": "10-custom.toml",
      "config": {
        "install": {
          "ostree": {
            "bls-append-except-default": "grub_users=\"\""
          }
        }
      }
    }
  }

[1] bootc-dev/bootc#1909

Signed-off-by: Joel Capitao <jcapitao@redhat.com>
supakeen pushed a commit to joelcapitao/osbuild that referenced this pull request Jan 27, 2026
Add support for the new [install.ostree] configuration section
with the bls-append-except-default option, which was introduced
in bootc PR osbuild#1909 [1]

This option allows setting the ostree sysroot.bls-append-except-default
config key during installation, which appends kernel arguments to
Boot Loader Spec entries except for the default entry. A common use
case is setting grub_users="" to bypass GRUB password prompts for
non-default deployments.

Example usage in manifest:
  {
    "type": "org.osbuild.bootc.install.config",
    "options": {
      "filename": "10-custom.toml",
      "config": {
        "install": {
          "ostree": {
            "bls-append-except-default": "grub_users=\"\""
          }
        }
      }
    }
  }

[1] bootc-dev/bootc#1909

Signed-off-by: Joel Capitao <jcapitao@redhat.com>
supakeen pushed a commit to osbuild/osbuild that referenced this pull request Jan 27, 2026
Add support for the new [install.ostree] configuration section
with the bls-append-except-default option, which was introduced
in bootc PR #1909 [1]

This option allows setting the ostree sysroot.bls-append-except-default
config key during installation, which appends kernel arguments to
Boot Loader Spec entries except for the default entry. A common use
case is setting grub_users="" to bypass GRUB password prompts for
non-default deployments.

Example usage in manifest:
  {
    "type": "org.osbuild.bootc.install.config",
    "options": {
      "filename": "10-custom.toml",
      "config": {
        "install": {
          "ostree": {
            "bls-append-except-default": "grub_users=\"\""
          }
        }
      }
    }
  }

[1] bootc-dev/bootc#1909

Signed-off-by: Joel Capitao <jcapitao@redhat.com>
jbtrystram added a commit to jbtrystram/coreos-assembler that referenced this pull request Feb 16, 2026
jbtrystram added a commit to jbtrystram/coreos-assembler that referenced this pull request Mar 2, 2026
jbtrystram added a commit to jbtrystram/coreos-assembler that referenced this pull request Mar 2, 2026
Instead of deploying the container to the tree then copy all the contents
to the disk image, use bootc to directly manage the installation to the
target filesystems.

We can keep the manifest duplicated until we are confident to roll this
to all streams.

[1] bootc-dev/bootc#1410

Requires:
bootc-dev/bootc#1460
bootc-dev/bootc#1451
osbuild/osbuild#2149
osbuild/osbuild#2152
bootc-dev/bootc#1978
bootc-dev/bootc#1909

All of which have landed in osbuild-159 and bootc 1.6
jbtrystram added a commit to jbtrystram/coreos-assembler that referenced this pull request Mar 2, 2026
jbtrystram added a commit to jbtrystram/coreos-assembler that referenced this pull request Mar 2, 2026
Instead of deploying the container to the tree then copy all the contents
to the disk image, use bootc to directly manage the installation to the
target filesystems.

We can keep the manifest duplicated until we are confident to roll this
to all streams or move to image-builder.

Requires:
bootc-dev/bootc#1460
bootc-dev/bootc#1451
osbuild/osbuild#2149
osbuild/osbuild#2152
bootc-dev/bootc#1978
bootc-dev/bootc#1909
jbtrystram added a commit to jbtrystram/coreos-assembler that referenced this pull request Mar 2, 2026
Add a bootc install config file[1] to set ostree repo options so we inject
the `grub_users` config on non-default entries.

[1] https://bootc-dev.github.io/bootc/man/bootc-install-config.5.html#ostree

See bootc-dev/bootc#1909
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/documentation Updates to the documentation area/install Issues related to `bootc install` area/ostree Issues related to ostree

Projects

None yet

Development

Successfully merging this pull request may close these issues.

install: support passing ostree repo config

3 participants