Skip to content

Commit

Permalink
Update lib/src/cli.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Omer Tuchfeld <[email protected]>
  • Loading branch information
cgwalters and omertuc authored Dec 6, 2024
1 parent 43337a0 commit b4bbe9c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -612,9 +612,7 @@ fn prepare_for_write() -> Result<()> {
if ostree_ext::container_utils::running_in_container() {
anyhow::bail!("Detected container; this command requires a booted host system.");
}
if !is_ostree_booted()? {
anyhow::bail!("This command requires an ostree-booted host system");
}
anyhow::ensure!(ostree_booted()?, "This command requires an ostree-booted host system");
crate::cli::require_root()?;
ensure_self_unshared_mount_namespace()?;
if crate::lsm::selinux_enabled()? && !crate::lsm::selinux_ensure_install()? {
Expand Down

0 comments on commit b4bbe9c

Please sign in to comment.