Skip to content

Commit c268ac2

Browse files
Johan-Liebert1cgwalters
authored andcommitted
composefs-backend: Add composefs opts to install-to-existing-root
Signed-off-by: Pragyan Poudyal <[email protected]> Signed-off-by: Colin Walters <[email protected]>
1 parent f7ccb55 commit c268ac2

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

crates/lib/src/install.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,10 @@ pub(crate) struct InstallToExistingRootOpts {
407407
/// via e.g. `-v /:/target`.
408408
#[clap(default_value = ALONGSIDE_ROOT_MOUNT)]
409409
pub(crate) root_path: Utf8PathBuf,
410+
411+
#[cfg(feature = "composefs-backend")]
412+
#[clap(flatten)]
413+
pub(crate) composefs_opts: InstallComposefsOpts,
410414
}
411415

412416
/// Global state captured from the container.
@@ -2185,12 +2189,7 @@ pub(crate) async fn install_to_existing_root(opts: InstallToExistingRootOpts) ->
21852189
target_opts: opts.target_opts,
21862190
config_opts: opts.config_opts,
21872191
#[cfg(feature = "composefs-backend")]
2188-
composefs_opts: InstallComposefsOpts {
2189-
composefs_backend: true,
2190-
insecure: false,
2191-
uki_addon: None,
2192-
bootloader: None,
2193-
},
2192+
composefs_opts: opts.composefs_opts,
21942193
};
21952194

21962195
install_to_filesystem(opts, true, cleanup).await

0 commit comments

Comments
 (0)