File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,11 @@ pub enum DVerb {
3535 GenerateUpdateMetadata ( GenerateOpts ) ,
3636 #[ clap( name = "install" , about = "Install components" ) ]
3737 Install ( InstallOpts ) ,
38+ #[ clap(
39+ name = "copy-to-boot" ,
40+ about = "Copy bootloader files from /usr/lib/efi to boot/ESP (package mode)"
41+ ) ]
42+ CopyToBoot ,
3843}
3944
4045#[ derive( Debug , Parser ) ]
@@ -88,6 +93,7 @@ impl DCommand {
8893 match self . cmd {
8994 DVerb :: Install ( opts) => Self :: run_install ( opts) ,
9095 DVerb :: GenerateUpdateMetadata ( opts) => Self :: run_generate_meta ( opts) ,
96+ DVerb :: CopyToBoot => Self :: run_copy_to_boot ( ) ,
9197 }
9298 }
9399
@@ -122,4 +128,9 @@ impl DCommand {
122128 . context ( "boot data installation failed" ) ?;
123129 Ok ( ( ) )
124130 }
131+
132+ pub ( crate ) fn run_copy_to_boot ( ) -> Result < ( ) > {
133+ bootupd:: copy_to_boot ( ) . context ( "copying to boot failed" ) ?;
134+ Ok ( ( ) )
135+ }
125136}
You can’t perform that action at this time.
0 commit comments