From 3631c1f778b5ec856cb7e9507b33123616ab1c14 Mon Sep 17 00:00:00 2001 From: Balint Reczey Date: Thu, 23 Nov 2017 20:27:16 +0100 Subject: [PATCH] Zero fill space in UEFI partitions, too --- live-build/functions | 3 +++ 1 file changed, 3 insertions(+) diff --git a/live-build/functions b/live-build/functions index 549f3be3..04397fdb 100644 --- a/live-build/functions +++ b/live-build/functions @@ -171,6 +171,9 @@ umount_disk_image() { local uefi_dev="/dev/mapper${loop_device///dev/}p15" if [ -e "$mountpoint/boot/efi" -a -b "$uefi_dev" ]; then + # zero fill free space in UEFI partition + cat < /dev/zero > "$mountpoint/boot/efi/bloat_file" 2> /dev/null || true + rm "$mountpoint/boot/efi/bloat_file" umount --detach-loop "$mountpoint/boot/efi" fi