1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:27:35 +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

@ -16,7 +16,7 @@ if [ "$(uname -s)" = "Darwin" ]; then
fi
echo "setting up disk image..."
qemu-img create _disk_image "${DISK_SIZE:-600}"m || die "couldn't create disk image"
chown "$build_user":"$build_group" _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 new filesystem... "