forked from containers/bootc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: run lints on image root filesystem (only)
There are only three operations that make use of the `root` variable declared at the top of the main CLI `run_from_opt()` function. Move the definition of this variable into each of those users. For "lint", instead of opening "/" and using it for the `root` variable in the main CLI function, use `open_tree()` to create a non-recursive mountpoint to operate on instead. This lets us operate directly on the container image filesystem and not on the unified view with all the bind mounts set up by the container runtime. Signed-off-by: Allison Karlitskaya <[email protected]>
- Loading branch information
1 parent
1b04637
commit 2992f4d
Showing
1 changed file
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters