From bc18712adf8b683d3f8a319df3fd1ea5cf03b517 Mon Sep 17 00:00:00 2001 From: Liav A Date: Sat, 26 Dec 2020 14:16:45 +0200 Subject: [PATCH] Build: Fix build of grub image when choosing EBR scheme --- Meta/build-image-grub.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Meta/build-image-grub.sh b/Meta/build-image-grub.sh index f54bb1ebba..7c82ce2aa5 100755 --- a/Meta/build-image-grub.sh +++ b/Meta/build-image-grub.sh @@ -30,6 +30,9 @@ disk_usage() { DISK_SIZE=$(($(disk_usage "$SERENITY_ROOT/Base") + $(disk_usage Root) + 300)) echo "setting up disk image..." +if [ "$1" = "ebr" ]; then + DISK_SIZE= +fi dd if=/dev/zero of=grub_disk_image bs=1M count="${DISK_SIZE:-800}" status=none || die "couldn't create disk image" chown "$SUDO_UID":"$SUDO_GID" grub_disk_image || die "couldn't adjust permissions on disk image" echo "done"