File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -441,7 +441,7 @@ async fn edit(opts: EditOpts) -> Result<()> {
441
441
anyhow:: bail!( "No changes in current host spec" ) ;
442
442
}
443
443
let new_spec = RequiredHostSpec :: from_spec ( & new_host. spec ) ?;
444
- let fetched = pull ( repo, & new_spec. image , opts. quiet ) . await ?;
444
+ let fetched = pull ( repo, new_spec. image , opts. quiet ) . await ?;
445
445
446
446
// TODO gc old layers here
447
447
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ pub(crate) async fn stage(
128
128
sysroot,
129
129
merge_deployment. as_ref ( ) ,
130
130
stateroot,
131
- & image,
131
+ image,
132
132
& origin,
133
133
)
134
134
. await ?;
Original file line number Diff line number Diff line change @@ -1091,10 +1091,10 @@ pub(crate) async fn install_to_filesystem(opts: InstallToFilesystemOpts) -> Resu
1091
1091
let rootarg = format ! ( "root={root_mount_spec}" ) ;
1092
1092
let boot = if let Some ( spec) = fsopts. boot_mount_spec {
1093
1093
Some ( MountSpec :: new ( & spec, "/boot" ) )
1094
- } else if let Some ( boot_uuid) = boot_uuid. as_deref ( ) {
1095
- Some ( MountSpec :: new_uuid_src ( & boot_uuid, "/boot" ) )
1096
1094
} else {
1097
- None
1095
+ boot_uuid
1096
+ . as_deref ( )
1097
+ . map ( |boot_uuid| MountSpec :: new_uuid_src ( boot_uuid, "/boot" ) )
1098
1098
} ;
1099
1099
// By default, we inject a boot= karg because things like FIPS compliance currently
1100
1100
// require checking in the initramfs.
Original file line number Diff line number Diff line change @@ -372,7 +372,7 @@ pub(crate) fn install_create_rootfs(
372
372
. run ( ) ?;
373
373
let efifs_path = bootfs. join ( crate :: bootloader:: EFI_DIR ) ;
374
374
std:: fs:: create_dir ( & efifs_path) . context ( "Creating efi dir" ) ?;
375
- mount:: mount ( & espdev, & efifs_path) ?;
375
+ mount:: mount ( espdev, & efifs_path) ?;
376
376
}
377
377
378
378
let luks_device = match opts. block_setup {
You can’t perform that action at this time.
0 commit comments