Skip to content

Commit

Permalink
lint: Drop ostree-container restriction
Browse files Browse the repository at this point in the history
We now support deploying containers without `sysroot/ostree`, so
drop the requirement for the linter to find that.

Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Feb 5, 2025
1 parent 5e0df36 commit 2bf14d9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1048,11 +1048,6 @@ async fn run_from_opt(opt: Opt) -> Result<()> {
if list {
return lints::lint_list(std::io::stdout().lock());
}
if !ostree_ext::container_utils::is_ostree_container()? {
anyhow::bail!(
"Not in a ostree container, this command only verifies ostree containers."
);
}
let root = &Dir::open_ambient_dir(rootfs, cap_std::ambient_authority())?;
lints::lint(root, fatal_warnings, std::io::stdout().lock())?;
Ok(())
Expand Down

0 comments on commit 2bf14d9

Please sign in to comment.