bootc-dev / bootc-dev/bootc

`bootc install to-filesystem` does not check for mutable /usr before performing destructive operations

Open
#787 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2.3k
Forks
230
Avg merge
3d 12h
Merged PRs (30d)
38

Description

This isn't really a bug, just a behavior that probably needs to be documented or prevented outright.

### To reproduce

1. Have a Fedora Atomic system (with read-only usr)
2. Run this command (from the documentation [here](https://containers.github.io/bootc/bootc-install.html#using-bootc-install-to-existing-root)):

```
sudo podman run --rm --privileged -v /dev:/dev -v /var/lib/containers:/var/lib/containers -v /:/target \
--pid=host --security-opt label=type:unconfined_t \
\
bootc install to-existing-root
```

Observe how your /boot drive will be wiped and then the installation will fail to run `fchmod`, my guess being due to the read-only /usr, aborting the installation.

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.