Skip to content

Commit 4141129

Browse files
committed
cfsctl: Add --bootable flag to 'oci dump' command
Assisted-by: OpenCode (Opus 4.5) Signed-off-by: Colin Walters <walters@verbum.org>
1 parent 9da19e5 commit 4141129

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

crates/cfsctl/src/main.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ enum OciCommand {
7070
Dump {
7171
config_name: String,
7272
config_verity: Option<String>,
73+
#[clap(long)]
74+
bootable: bool,
7375
},
7476
Pull {
7577
image: String,
@@ -249,10 +251,14 @@ where
249251
OciCommand::Dump {
250252
ref config_name,
251253
ref config_verity,
254+
bootable,
252255
} => {
253256
let verity = verity_opt(config_verity)?;
254-
let fs =
257+
let mut fs =
255258
composefs_oci::image::create_filesystem(&repo, config_name, verity.as_ref())?;
259+
if bootable {
260+
fs.transform_for_boot(&repo)?;
261+
}
256262
fs.print_dumpfile()?;
257263
}
258264
OciCommand::ComputeId {

0 commit comments

Comments
 (0)