@@ -160,8 +160,8 @@ class EfibootguardBootPlugin(SourcePlugin):
# dosfs image, created by mkdosfs
bootimg = "%s/%s.%s.img" % (cr_workdir, part.label, part.lineno)
- dosfs_cmd = "mkdosfs -F 16 -S 512 -n %s -C %s %d" % \
- (part.label.upper(), bootimg, blocks)
+ dosfs_cmd = "mkdosfs -F 16 -S 512 -n %s -C %s %d -i %s" % \
+ (part.label.upper(), bootimg, blocks, part.fsuuid)
exec_cmd(dosfs_cmd)
mcopy_cmd = "mcopy -v -i %s -s %s/* ::/" % (bootimg, part_rootfs_dir)
@@ -105,8 +105,8 @@ class EfibootguardEFIPlugin(SourcePlugin):
# dosfs image, created by mkdosfs
efi_part_image = "%s/%s.%s.img" % (cr_workdir, part.label, part.lineno)
- dosfs_cmd = "mkdosfs -S 512 -n %s -C %s %d" % \
- (part.label.upper(), efi_part_image, blocks)
+ dosfs_cmd = "mkdosfs -S 512 -n %s -C %s %d -i %s" % \
+ (part.label.upper(), efi_part_image, blocks, part.fsuuid)
exec_cmd(dosfs_cmd)
# mtools for buster have problems with resursive mcopy.
@@ -1,8 +1,8 @@
# default partition layout EFI Boot Guard usage
# EFI partition containing efibootguard bootloader binary
-part --source efibootguard-efi --size 16M --extra-space 0 --overhead-factor 1 --label efi --align 1024 --part-type=EF00 --active
+part --source efibootguard-efi --size 16M --extra-space 0 --overhead-factor 1 --label efi --align 1024 --part-type=EF00 --active --fsuuid "0x4321dcba"
# EFI Boot Guard environment/config partitions plus Kernel files
-part --source efibootguard-boot --size 32M --extra-space 0 --overhead-factor 1 --label BOOT0 --align 1024 --part-type=0700 --sourceparams "revision=2"
-part --source efibootguard-boot --size 32M --extra-space 0 --overhead-factor 1 --label BOOT1 --align 1024 --part-type=0700 --sourceparams "revision=1"
+part --source efibootguard-boot --size 32M --extra-space 0 --overhead-factor 1 --label BOOT0 --align 1024 --part-type=0700 --sourceparams "revision=2" --fsuuid "0x4321dcbb"
+part --source efibootguard-boot --size 32M --extra-space 0 --overhead-factor 1 --label BOOT1 --align 1024 --part-type=0700 --sourceparams "revision=1" --fsuuid "0x4321dcbc"