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:
Dan MacDonald 2019-07-03 14:57:37 +00:00 committed by Andreas Kling
parent b79112e6d6
commit 0d19a4eaab
Notes: sideshowbarker 2024-07-19 13:24:02 +09:00
2 changed files with 5 additions and 1 deletions

View file

@ -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... "

View file

@ -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