Skip to content

Commit 4dd26d3

Browse files
committed
cli: Remove ostree detection in prepare_for_write
We detect things later regardless, and this is prep for composefs. Signed-off-by: Colin Walters <[email protected]>
1 parent 1526b8b commit 4dd26d3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

crates/lib/src/cli.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -870,10 +870,6 @@ fn prepare_for_write() -> Result<()> {
870870
if ostree_ext::container_utils::running_in_container() {
871871
anyhow::bail!("Detected container; this command requires a booted host system.");
872872
}
873-
anyhow::ensure!(
874-
ostree_booted()?,
875-
"This command requires an ostree-booted host system"
876-
);
877873
crate::cli::require_root(false)?;
878874
ensure_self_unshared_mount_namespace()?;
879875
if crate::lsm::selinux_enabled()? && !crate::lsm::selinux_ensure_install()? {

0 commit comments

Comments
 (0)