@@ -134,7 +134,7 @@ impl DiskImageBuilder {
134
134
}
135
135
#[ cfg( feature = "bios" ) ]
136
136
/// Create an MBR disk image for booting on BIOS systems.
137
- pub fn create_bios_image ( & self , image_filename : & Path ) -> anyhow:: Result < ( ) > {
137
+ pub fn create_bios_image ( & self , image_path : & Path ) -> anyhow:: Result < ( ) > {
138
138
const BIOS_STAGE_3 : & str = "boot-stage-3" ;
139
139
const BIOS_STAGE_4 : & str = "boot-stage-4" ;
140
140
let bootsector_path = Path :: new ( env ! ( "BIOS_BOOT_SECTOR_PATH" ) ) ;
@@ -152,7 +152,7 @@ impl DiskImageBuilder {
152
152
bootsector_path,
153
153
stage_2_path,
154
154
fat_partition. path ( ) ,
155
- image_filename ,
155
+ image_path ,
156
156
)
157
157
. context ( "failed to create BIOS MBR disk image" ) ?;
158
158
@@ -164,15 +164,15 @@ impl DiskImageBuilder {
164
164
165
165
#[ cfg( feature = "uefi" ) ]
166
166
/// Create a GPT disk image for booting on UEFI systems.
167
- pub fn create_uefi_image ( & self , image_filename : & Path ) -> anyhow:: Result < ( ) > {
167
+ pub fn create_uefi_image ( & self , image_path : & Path ) -> anyhow:: Result < ( ) > {
168
168
const UEFI_BOOT_FILENAME : & str = "efi/boot/bootx64.efi" ;
169
169
let bootloader_path = Path :: new ( env ! ( "UEFI_BOOTLOADER_PATH" ) ) ;
170
170
let mut internal_files = BTreeMap :: new ( ) ;
171
171
internal_files. insert ( UEFI_BOOT_FILENAME , bootloader_path) ;
172
172
let fat_partition = self
173
173
. create_fat_filesystem_image ( internal_files)
174
174
. context ( "failed to create FAT partition" ) ?;
175
- gpt:: create_gpt_disk ( fat_partition. path ( ) , image_filename )
175
+ gpt:: create_gpt_disk ( fat_partition. path ( ) , image_path )
176
176
. context ( "failed to create UEFI GPT disk image" ) ?;
177
177
fat_partition
178
178
. close ( )
0 commit comments