summaryrefslogtreecommitdiff
path: root/Meta/build-image-grub.sh
diff options
context:
space:
mode:
authoretaIneLp <33374857+etaIneLp@users.noreply.github.com>2020-05-28 04:08:38 -0400
committerGitHub <noreply@github.com>2020-05-28 10:08:38 +0200
commit330aecb5d8982ee3823909908993e4284cf1b7c9 (patch)
treea1f7af00b1ef3e01b700262d8716719fd857be48 /Meta/build-image-grub.sh
parent7bc871ca8dd851605bfd67cb5be1538d009aa56b (diff)
downloadserenity-330aecb5d8982ee3823909908993e4284cf1b7c9.zip
Build: Use a separate byproduct name for the GRUB disk image (#2424)
The grub-image target no longer conflicts with normal image target. This unbreaks using CMake with Ninja. Fixes #2423.
Diffstat (limited to 'Meta/build-image-grub.sh')
-rwxr-xr-xMeta/build-image-grub.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/Meta/build-image-grub.sh b/Meta/build-image-grub.sh
index 985323e4a9..019761dd9d 100755
--- a/Meta/build-image-grub.sh
+++ b/Meta/build-image-grub.sh
@@ -22,12 +22,12 @@ fi
echo "using grub-install at ${grub}"
echo "setting up disk image..."
-dd if=/dev/zero of=_disk_image bs=1M count="${DISK_SIZE:-800}" status=none || die "couldn't create disk image"
-chown "$SUDO_UID":"$SUDO_GID" _disk_image || die "couldn't adjust permissions on disk image"
+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"
printf "creating loopback device... "
-dev=$(losetup --find --partscan --show _disk_image)
+dev=$(losetup --find --partscan --show grub_disk_image)
if [ -z "$dev" ]; then
die "couldn't mount loopback device"
fi