Skip to content

Commit b0b66d3

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

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
@@ -413,6 +413,10 @@ pub(crate) struct InstallToExistingRootOpts {
413413
/// via e.g. `-v /:/target`.
414414
#[clap(default_value = ALONGSIDE_ROOT_MOUNT)]
415415
pub(crate) root_path: Utf8PathBuf,
416+
417+
#[cfg(feature = "composefs-backend")]
418+
#[clap(flatten)]
419+
pub(crate) composefs_opts: InstallComposefsOpts,
416420
}
417421

418422
/// Global state captured from the container.
@@ -2139,12 +2143,7 @@ pub(crate) async fn install_to_existing_root(opts: InstallToExistingRootOpts) ->
21392143
target_opts: opts.target_opts,
21402144
config_opts: opts.config_opts,
21412145
#[cfg(feature = "composefs-backend")]
2142-
compoesfs_opts: InstallComposefsOpts {
2143-
composefs_backend: true,
2144-
insecure: false,
2145-
bootloader: Bootloader::Grub,
2146-
uki_addon: None,
2147-
},
2146+
compoesfs_opts: opts.composefs_opts,
21482147
};
21492148

21502149
install_to_filesystem(opts, true, cleanup).await

0 commit comments

Comments
 (0)