From 284fe9fbde6fd3449aee1580179e789cc6df4ccf Mon Sep 17 00:00:00 2001 From: sickcodes Date: Thu, 25 Feb 2021 15:17:52 +0000 Subject: Early chown required for all volumes... --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Dockerfile') 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 \ ;; \ -- cgit v1.2.3