mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
Build: Fix incorrect user and group settings for disk image (#280)
Build: Fix incorrect user and group settings for disk image. Fixes #261.
This commit is contained in:
parent
b79112e6d6
commit
0d19a4eaab
Notes:
sideshowbarker
2024-07-19 13:24:02 +09:00
Author: https://github.com/danboid Commit: https://github.com/SerenityOS/serenity/commit/0d19a4eaab0 Pull-request: https://github.com/SerenityOS/serenity/pull/280 Reviewed-by: https://github.com/awesomekling
2 changed files with 5 additions and 1 deletions
|
@ -13,7 +13,7 @@ fi
|
|||
|
||||
echo "setting up disk image..."
|
||||
qemu-img create _disk_image ${DISK_SIZE:-500}m || die "couldn't create disk image"
|
||||
chown 1000:1000 _disk_image || die "couldn't adjust permissions on disk image"
|
||||
chown $build_user:$build_group _disk_image || die "couldn't adjust permissions on disk image"
|
||||
echo "done"
|
||||
|
||||
echo -n "creating new filesystem... "
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Get user and group details for setting qemu disk image ownership
|
||||
export build_user=$(id -u)
|
||||
export build_group=$(id -g)
|
||||
|
||||
sudo id
|
||||
|
||||
if [ -z "$MAKEJOBS" ]; then
|
||||
|
|
Loading…
Reference in a new issue