Skip to content
Open
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
8 changes: 8 additions & 0 deletions crates/lib/src/podstorage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,14 @@ impl CStorage {
sepolicy: Option<&ostree::SePolicy>,
) -> Result<Self> {
Self::init_globals()?;

let bin = bootc_utils::podman_bin();
if !crate::utils::have_executable(bin)? {
anyhow::bail!(
"{bin} executable not found in PATH; it is required for container image storage operations"
);
}

let subpath = &Self::subpath();

// SAFETY: We know there's a parent
Expand Down
Loading