revert ext4 calculation

This commit is contained in:
Tobias Powalowski 2022-09-18 21:20:26 +02:00
parent 178fe5656b
commit f06356ac8d

View file

@ -213,7 +213,7 @@ _prepare_extlinux_image() {
echo "Prepare extlinux image ..."
## get size of boot files
BOOTSIZE=$(du -bc "${_ISODIR}"/boot | grep total | cut -f1)
IMGSZ=$(((BOOTSIZE)/1024 + 21000)) # image size in sectors
IMGSZ=$(((BOOTSIZE*117)/100/1024)) # image size in sectors
## Create extlinux.img
dd if=/dev/zero of="${_ISODIR}"/extlinux.img bs="${IMGSZ}" count=1024 status=none
EXT_IMAGE="${_ISODIR}/extlinux.img"