Skip to content

Commit 175f2fa

Browse files
committed
bootupctl: add backend copy-to-boot
1 parent ab6f83e commit 175f2fa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cli/bootupctl.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ pub enum CtlBackend {
7373
Generate(super::bootupd::GenerateOpts),
7474
#[clap(name = "install", hide = true)]
7575
Install(super::bootupd::InstallOpts),
76+
#[clap(name = "copy-to-boot", hide = true)]
77+
CopyToBoot,
7678
}
7779

7880
#[derive(Debug, Parser)]
@@ -109,6 +111,9 @@ impl CtlCommand {
109111
CtlVerb::Backend(CtlBackend::Install(opts)) => {
110112
super::bootupd::DCommand::run_install(opts)
111113
}
114+
CtlVerb::Backend(CtlBackend::CopyToBoot) => {
115+
super::bootupd::DCommand::run_copy_to_boot()
116+
}
112117
CtlVerb::MigrateStaticGrubConfig => Self::run_migrate_static_grub_config(),
113118
}
114119
}

0 commit comments

Comments
 (0)