diff --git a/rust/src/main.rs b/rust/src/main.rs index 1439b9f2ff..63f0bf2168 100644 --- a/rust/src/main.rs +++ b/rust/src/main.rs @@ -34,6 +34,14 @@ async fn inner_async_main(args: Vec) -> Result { "usroverlay" | "unlock" => builtins::usroverlay::entrypoint(args).map(|_| 0), // A hidden wrapper to intercept some binaries in RPM scriptlets. "scriptlet-intercept" => builtins::scriptlet_intercept::entrypoint(args).map(|_| 0), + // This is a deprecated entrypoint + "container-encapsulate" => { + rpmostree_rust::client::warn_future_incompatibility( + "This entrypoint is deprecated; use `rpm-ostree compose container-encapsulate` instead", + ); + rpmostree_rust::container::container_encapsulate(args_orig).map(|_| 0) + .map_err(anyhow::Error::msg) + }, // C++ main _ => Ok(rpmostree_rust::ffi::rpmostree_main(args)?), }