Build: Fix build of grub image when choosing EBR scheme
This commit is contained in:
parent
0f208669af
commit
bc18712adf
Notes:
sideshowbarker
2024-07-19 00:31:28 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/bc18712adf8 Pull-request: https://github.com/SerenityOS/serenity/pull/4527 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/bugaevc
1 changed files with 3 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue