mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 12:00:37 +02:00
revert ext4 calculation
This commit is contained in:
parent
178fe5656b
commit
f06356ac8d
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ _prepare_extlinux_image() {
|
||||||
echo "Prepare extlinux image ..."
|
echo "Prepare extlinux image ..."
|
||||||
## get size of boot files
|
## get size of boot files
|
||||||
BOOTSIZE=$(du -bc "${_ISODIR}"/boot | grep total | cut -f1)
|
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
|
## Create extlinux.img
|
||||||
dd if=/dev/zero of="${_ISODIR}"/extlinux.img bs="${IMGSZ}" count=1024 status=none
|
dd if=/dev/zero of="${_ISODIR}"/extlinux.img bs="${IMGSZ}" count=1024 status=none
|
||||||
EXT_IMAGE="${_ISODIR}/extlinux.img"
|
EXT_IMAGE="${_ISODIR}/extlinux.img"
|
||||||
|
|
Loading…
Reference in a new issue