mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-05 07:41:31 +00:00
Zero fill space in UEFI partitions, too
This commit is contained in:
parent
79377f4312
commit
3631c1f778
@ -171,6 +171,9 @@ umount_disk_image() {
|
|||||||
|
|
||||||
local uefi_dev="/dev/mapper${loop_device///dev/}p15"
|
local uefi_dev="/dev/mapper${loop_device///dev/}p15"
|
||||||
if [ -e "$mountpoint/boot/efi" -a -b "$uefi_dev" ]; then
|
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"
|
umount --detach-loop "$mountpoint/boot/efi"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user