Skip to content

Add install alongside #380

Closed
Closed
@cgwalters

Description

@cgwalters

Right now we have

podman run --rm --privileged --pid=host -v /:/target --security-opt label=type:unconfined_t "${image}" bootc install-to-filesystem --karg=console=ttyS0,115200n8 --replace=alongside /target

We can first consider simplifying like this by adding a new toplevel to-existing-root:

podman run --rm --privileged --pid=host --security-opt label=type:unconfined_t -v /:/target "${image}" bootc install to-existing-root

or so, which would assume installing to /target. This consolidates --replace=alongside and /target to just to-existing-root.

I don't see a reason to support installing alongside to not the rootfs.

Now, if we can switch to using dynamic mounts then we can also drop the -v /:/target - I'd like to test this out as it could simplify a lot of our code.

Handling kargs in alongside

When doing an alongside install, there are a ton of use cases for picking up things from the existing environment:

  • root ssh keys
  • console= kargs

Or in general, picking up "configuration".

I am a bit uncertain if we try to add a lot of sugar to bootc in the near term for this versus having higher level tools do it, but...

We could in to-existing-root also have something like --import-kargs=console=* or so to fetch the existing console kernel args (match by glob).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/installIssues related to `bootc install`enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions