Skip to content

Commit

Permalink
generator: use fat_fill instead of fat_recursive_copy
Browse files Browse the repository at this point in the history
The latter copies everything _including_ the directory specified by
path. In our case, the specified path is the _root_ of the UEFI
partition, we don't want to copy anything above it.

Signed-off-by: Daniil Tatianin <[email protected]>
  • Loading branch information
d-tatianin committed Oct 12, 2023
1 parent a019fea commit e717414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def make_iso(
fat_image = os.path.join(root_path, "efi_esp")
file_resize_to_mib(fat_image, 1)
make_fat(fat_image, 1, False)
fat_recursive_copy(fat_image, os.path.join(root_path, uefi_root_path))
fat_fill(fat_image, uefi_root_path)

xorriso_args.extend([
"--efi-boot", "efi_esp", "-efi-boot-part", "--efi-boot-image"
Expand Down

0 comments on commit e717414

Please sign in to comment.