File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ use crate::task::Task;
7
7
8
8
/// The name of the mountpoint for efi (as a subdirectory of /boot, or at the toplevel)
9
9
pub ( crate ) const EFI_DIR : & str = "efi" ;
10
+ pub ( crate ) const ESP_GUID : & str = "C12A7328-F81F-11D2-BA4B-00A0C93EC93B" ;
10
11
pub ( crate ) const PREPBOOT_GUID : & str = "9E1A2D38-C612-4316-AA26-8B49521E5A8B" ;
11
12
pub ( crate ) const PREPBOOT_LABEL : & str = "PowerPC-PReP-boot" ;
12
13
#[ cfg( target_arch = "powerpc64" ) ]
Original file line number Diff line number Diff line change @@ -256,10 +256,11 @@ pub(crate) fn install_create_rootfs(
256
256
}
257
257
258
258
let esp_partno = if super :: ARCH_USES_EFI {
259
+ let esp_guid = crate :: bootloader:: ESP_GUID ;
259
260
partno += 1 ;
260
261
writeln ! (
261
262
& mut partitioning_buf,
262
- r#"size={EFIPN_SIZE_MB}MiB, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B , name="EFI-SYSTEM""#
263
+ r#"size={EFIPN_SIZE_MB}MiB, type={esp_guid} , name="EFI-SYSTEM""#
263
264
) ?;
264
265
Some ( partno)
265
266
} else {
@@ -411,7 +412,6 @@ pub(crate) fn install_create_rootfs(
411
412
. run ( ) ?;
412
413
let efifs_path = bootfs. join ( crate :: bootloader:: EFI_DIR ) ;
413
414
std:: fs:: create_dir ( & efifs_path) . context ( "Creating efi dir" ) ?;
414
- mount:: mount ( espdev. node . as_str ( ) , & efifs_path) ?;
415
415
}
416
416
417
417
let luks_device = match block_setup {
You can’t perform that action at this time.
0 commit comments