Skip to content

bootc is read-only when run as a default container #1461

@jlsherrill

Description

@jlsherrill

bootc-image-builder has been asked to add WSL2 support, but bootc switch doesn't appear to work when running under it.

When trying to run bootc switch, the following error is given:

ERROR Switching: Initializing storage: Acquiring sysroot: Preparing for write: Detected container (ostree base); this command requires a booted host system.

I've created a simple reproducer here: https://github.com/jlsherrill/wsl2-bootc-reproducer

Its entirely possible i've done something incorrect, but given that wsl runs these things in a container, the error makes sense.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions