[arch-releng] [PATCH 1/1] [configs/releng] use dynamic size calculation for efiboot.img
From: Christian Hesse <mail@eworm.de> Signed-off-by: Christian Hesse <mail@eworm.de> --- configs/releng/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/releng/build.sh b/configs/releng/build.sh index c208a15..54cf0ee 100755 --- a/configs/releng/build.sh +++ b/configs/releng/build.sh @@ -169,7 +169,7 @@ make_efi() { # Prepare efiboot.img::/EFI for "El Torito" EFI boot mode make_efiboot() { mkdir -p ${work_dir}/iso/EFI/archiso - truncate -s 64M ${work_dir}/iso/EFI/archiso/efiboot.img + truncate -s $(($(du -sm ${work_dir}/efiboot/ | tr '\t' ' ' | cut -d' ' -f1) + 1))M ${work_dir}/iso/EFI/archiso/efiboot.img mkfs.fat -n ARCHISO_EFI ${work_dir}/iso/EFI/archiso/efiboot.img mkdir -p ${work_dir}/efiboot -- 2.11.0
participants (1)
-
Christian Hesse