Thin wrapper for invoking `podman image ` but set up for our internal image store (as distinct from /var/lib/containers default).
(
storage: &CStorage,
arg: &str,
args: &[std::ffi::OsString],
)
| 258 | /// Thin wrapper for invoking `podman image <X>` but set up for our internal |
| 259 | /// image store (as distinct from /var/lib/containers default). |
| 260 | pub(crate) async fn imgcmd_entrypoint( |
| 261 | storage: &CStorage, |
| 262 | arg: &str, |
| 263 | args: &[std::ffi::OsString], |
| 264 | ) -> std::result::Result<(), anyhow::Error> { |
| 265 | let mut cmd = storage.new_image_cmd()?; |
| 266 | cmd.arg(arg); |
| 267 | cmd.args(args); |
| 268 | cmd.run_capture_stderr() |
| 269 | } |
| 270 | |
| 271 | /// Re-pull the currently booted image into the bootc-owned container storage. |
| 272 | /// |
no test coverage detected