mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
efi.img change calculation
This commit is contained in:
parent
3f44c2bbbf
commit
b6598d65ac
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ _prepare_uefi_image() {
|
|||
echo "Preparing UEFI image..."
|
||||
## get size of boot files
|
||||
BOOTSIZE=$(du -bc "${_ISODIR}"/EFI "${_ISODIR}"/boot | grep total | cut -f1)
|
||||
IMGSZ=$(((BOOTSIZE*102)/100/1024 + 1)) # image size in sectors
|
||||
IMGSZ=$((BOOTSIZE/1024 + 1)) # image size in sectors
|
||||
VFAT_IMAGE="${_ISODIR}/efi.img"
|
||||
## Creating efi.img
|
||||
mkfs.vfat --invariant -C "${VFAT_IMAGE}" "${IMGSZ}" >/dev/null
|
||||
|
|
Loading…
Reference in a new issue