Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
image: quay.io/fedora/fedora:latest
options: "--privileged --tmpfs /var/tmp:rw,exec"
steps:
- run: dnf -y install cargo gcc-c++ fuse3-devel openssl-devel crun skopeo pasta netavark
- run: dnf -y install cargo gcc-c++ fuse3-devel openssl-devel crun skopeo pasta netavark catatonit
- uses: actions/checkout@v4
- name: Download binaries
uses: actions/download-artifact@v4
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ cfsctl init --insecure /tmp/repo
cfsctl --repo /tmp/repo oci pull docker://quay.io/centos/centos:stream10 cs10

# Run a container (rootless — automatic)
target/debug/cfsrun --repo /tmp/repo -it cs10 -- bash
target/debug/cfsrun --repo /tmp/repo -t cs10 -- bash

# Run as root (uses kernel erofs + bridge networking)
sudo target/debug/cfsrun --repo /tmp/repo -it cs10 -- bash
sudo target/debug/cfsrun --repo /tmp/repo -t cs10 -- bash
```

### Common options
Expand All @@ -48,7 +48,6 @@ cfsrun [OPTIONS] <IMAGE> [-- <CMD>...]

Options:
--repo <PATH> Path to composefs repository
-i, --interactive Keep stdin open
-t, --tty Allocate a pseudo-TTY
-e, --env <KEY=VALUE> Set environment variables
-u, --user <UID[:GID]> Override user
Expand Down
12 changes: 4 additions & 8 deletions composefs-run/src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -631,14 +631,10 @@ fn build_runtime_spec(

let use_init = !cli.no_init && !systemd_mode;
let init_path = if use_init {
match find_catatonit() {
Ok(path) => {
args.insert(0, "/dev/init".into());
args.insert(1, "--".into());
Some(path)
}
Err(_) => None,
}
let path = find_catatonit().context("catatonit is required (use --no-init to disable)")?;
args.insert(0, "/dev/init".into());
args.insert(1, "--".into());
Some(path)
} else {
None
};
Expand Down
Loading