mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:17:45 +00:00
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.
This commit is contained in:
parent
7bc871ca8d
commit
330aecb5d8
3 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue