1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:57:47 +00:00

Build: use $SUDO_[UG]ID in build-image-* instead of relying on makeall

This commit is contained in:
joshua stein 2020-01-15 14:45:39 -06:00 committed by Andreas Kling
parent c6c7e40bd1
commit 0fa38e4a4a
3 changed files with 2 additions and 8 deletions

View file

@ -23,7 +23,7 @@ echo "using grub-install at ${grub}"
echo "setting up disk image..."
dd if=/dev/zero of=_disk_image bs=1M count="${DISK_SIZE:-600}" status=none || die "couldn't create disk image"
chown 1000:1000 _disk_image || die "couldn't adjust permissions on disk image"
chown "$SUDO_UID":"$SUDO_GID" _disk_image || die "couldn't adjust permissions on disk image"
echo "done"
printf "creating loopback device... "