bootc-dev / bootc-dev/bootc

Add `bootc commit`

Open
#365 4 comments 3 reactions 0 assignees View on GitHub
area/updates enhancement
Dominant language
Rust
Stars
2.3k
Forks
230
Avg merge
3d 12h
Merged PRs (30d)
38

Description

Let's consider adding a flow like `podman commit` that creates a bootable container image state from the running host. This would be really useful in concert with a transient rw rootfs as it would allow people to explicitly persist hotfixes where desired.

## Upgrade

This is out of scope.

## Intersection with configmap/layers

The more I think about this the more I feel it intersects with https://github.com/bootc-dev/bootc/issues/22

## Proposed flow example with dnf

```
$ dnf -y install --persist bpftrace
...
Created floating layer: dnf-local
$ bootc status
Booted image: quay.io/exampleos/exampleos@sha256:...
Floating layers:
- bootc-storage:dnf-local (pinned: true)
- registry:quay.io/customer/ca-certificates:latest
$ reboot
... # now i have bpftrace across reboot
$ bootc upgrade
error: Pinned floating layer bootc-storage:dnf-local is not compatible with upgrades
To remove: bootc floating-layers remove bootc-storage:dnf-local
```

But it'd be nice to have a dnf option for this too: `dnf -y remove --bootc-floating-layers`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.