aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorsickcodes <[email protected]>2021-02-25 15:17:52 +0000
committersickcodes <[email protected]>2021-02-25 15:17:52 +0000
commit284fe9fbde6fd3449aee1580179e789cc6df4ccf (patch)
tree81ce579a7255e54cd3e8d18e2879c287393fe9c0 /Dockerfile
parentSet temporary branch (diff)
downloaddocker-osx-284fe9fbde6fd3449aee1580179e789cc6df4ccf.tar.xz
docker-osx-284fe9fbde6fd3449aee1580179e789cc6df4ccf.zip
Early chown required for all volumes...
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 7b262e6..ae3cceb 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -260,9 +260,9 @@ VOLUME ["/tmp/.X11-unix"]
# the default serial numbers are already contained in ./OpenCore-Catalina/OpenCore.qcow2
# And the default serial numbers
-CMD case "$(file --brief /image)" in \
+CMD sudo chown "$(id -u)":"$(id -g)" "${IMAGE_PATH}" "${BOOTDISK}" 2>/dev/null || true \
+ ; case "$(file --brief /image)" in \
QEMU\ QCOW2\ Image* ) export IMAGE_PATH=/image \
- ; sudo chown "$(id -u)":"$(id -g)" "${IMAGE_PATH}" 2>/dev/null || true \
;; \
directory* ) export IMAGE_PATH=/home/arch/OSX-KVM/mac_hdd_ng.img \
;; \
@@ -287,7 +287,6 @@ CMD case "$(file --brief /image)" in \
--output-bootdisk "${BOOTDISK:-/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" \
; case "$(file --brief /bootdisk)" in \
QEMU\ QCOW2\ Image* ) export BOOTDISK=/bootdisk \
- ; sudo chown "$(id -u)":"$(id -g)" "${BOOTDISK}" 2>/dev/null || true \
;; \
directory* ) export BOOTDISK=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2 \
;; \