@@ -3304,7 +3304,7 @@ def save_esp_components(
3304
3304
if not stub .exists ():
3305
3305
die (f"sd-stub not found at /{ stub .relative_to (context .root )} in the image" )
3306
3306
3307
- return shutil .copy2 (stub , context .workspace ), None , None , []
3307
+ return Path ( shutil .copy2 (stub , context .workspace ) ), None , None , []
3308
3308
3309
3309
if context .config .output_format not in (OutputFormat .uki , OutputFormat .esp ):
3310
3310
return None , None , None , []
@@ -3317,7 +3317,7 @@ def save_esp_components(
3317
3317
3318
3318
return None , None , None , []
3319
3319
3320
- kimg = shutil .copy2 (context .root / kimg , context .workspace )
3320
+ kimg = Path ( shutil .copy2 (context .root / kimg , context .workspace ) )
3321
3321
3322
3322
if not context .config .architecture .to_efi ():
3323
3323
die (f"Architecture { context .config .architecture } does not support UEFI" )
@@ -3326,7 +3326,7 @@ def save_esp_components(
3326
3326
if not stub .exists ():
3327
3327
die (f"sd-stub not found at /{ stub .relative_to (context .root )} in the image" )
3328
3328
3329
- stub = shutil .copy2 (stub , context .workspace )
3329
+ stub = Path ( shutil .copy2 (stub , context .workspace ) )
3330
3330
microcode = build_microcode_initrd (context )
3331
3331
3332
3332
return stub , kver , kimg , microcode
0 commit comments