@@ -134,7 +134,7 @@ impl DiskImageBuilder {
134134 }
135135 #[ cfg( feature = "bios" ) ]
136136 /// 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 < ( ) > {
138138 const BIOS_STAGE_3 : & str = "boot-stage-3" ;
139139 const BIOS_STAGE_4 : & str = "boot-stage-4" ;
140140 let bootsector_path = Path :: new ( env ! ( "BIOS_BOOT_SECTOR_PATH" ) ) ;
@@ -152,7 +152,7 @@ impl DiskImageBuilder {
152152 bootsector_path,
153153 stage_2_path,
154154 fat_partition. path ( ) ,
155- image_filename ,
155+ image_path ,
156156 )
157157 . context ( "failed to create BIOS MBR disk image" ) ?;
158158
@@ -164,15 +164,15 @@ impl DiskImageBuilder {
164164
165165 #[ cfg( feature = "uefi" ) ]
166166 /// 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 < ( ) > {
168168 const UEFI_BOOT_FILENAME : & str = "efi/boot/bootx64.efi" ;
169169 let bootloader_path = Path :: new ( env ! ( "UEFI_BOOTLOADER_PATH" ) ) ;
170170 let mut internal_files = BTreeMap :: new ( ) ;
171171 internal_files. insert ( UEFI_BOOT_FILENAME , bootloader_path) ;
172172 let fat_partition = self
173173 . create_fat_filesystem_image ( internal_files)
174174 . 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 )
176176 . context ( "failed to create UEFI GPT disk image" ) ?;
177177 fat_partition
178178 . close ( )
0 commit comments