Skip to content

Commit 791fc9a

Browse files
composefs-backend: Add composefs opts to install-to-existing-root
Signed-off-by: Pragyan Poudyal <[email protected]>
1 parent 611853b commit 791fc9a

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
@@ -409,6 +409,10 @@ pub(crate) struct InstallToExistingRootOpts {
409409
/// via e.g. `-v /:/target`.
410410
#[clap(default_value = ALONGSIDE_ROOT_MOUNT)]
411411
pub(crate) root_path: Utf8PathBuf,
412+
413+
#[cfg(feature = "composefs-backend")]
414+
#[clap(flatten)]
415+
pub(crate) composefs_opts: InstallComposefsOpts,
412416
}
413417

414418
/// Global state captured from the container.
@@ -2135,12 +2139,7 @@ pub(crate) async fn install_to_existing_root(opts: InstallToExistingRootOpts) ->
21352139
target_opts: opts.target_opts,
21362140
config_opts: opts.config_opts,
21372141
#[cfg(feature = "composefs-backend")]
2138-
composefs_opts: InstallComposefsOpts {
2139-
composefs_backend: true,
2140-
insecure: false,
2141-
bootloader: Bootloader::Grub,
2142-
uki_addon: None,
2143-
},
2142+
composefs_opts: opts.composefs_opts,
21442143
};
21452144

21462145
install_to_filesystem(opts, true, cleanup).await

0 commit comments

Comments
 (0)