Skip to content

install : run bootupd with --src-root pointing to the deployed container #1455

@jbtrystram

Description

@jbtrystram

Currently the bootc install makes assumptions about being run from the container. It mostly work outside of it, but also assume the buildroot is the same as the container content. (see #1438 and #1410).

the bootloader setup runs into the same pitfall : it expects /usr/lib/bootupd/updates/<component> to exists, but it may not if we are using a different buildroot.
If i understand correctly, the call to bootupd is done after the container content is deployed, so bootupd could be pointed to the deployment.
The docs even outline the ostree use case :

https://github.com/coreos/bootupd/blob/3acb6742f74be63c655c64c6adff57b2c2fb93cc/README-devel.md?plain=1#L44-L53

In CoreOS builds through osbuild we chroot before calling bootupd to work around this:

https://github.com/osbuild/osbuild/blob/841e89fe08cb80d115871aa45696e37fae41cf23/stages/org.osbuild.bootupd#L67-L72

Related discussion in #879

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/installIssues related to `bootc install`area/install-source-imgrefIssues related to non-containerized install with `--source-imgref`gain/mediumMedium gaintriagedThis looks like a valid issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions