From 7b407238bed3fab604aa53bb2d169154e325cfe7 Mon Sep 17 00:00:00 2001 From: Martyn Welch <martyn.welch@collabora.com> Date: Wed, 6 May 2020 10:06:25 +0100 Subject: [PATCH] Set HOME in apertis-image-builder Docker is defaulting to setting HOME as `/`. When running the suggested Docker command in apertis-image-recipes for generating images, this is resulting in a UML kernel panic as UML is unable to create `~/.uml/`. Set the HOME to point to a location that we know is backed by tmpfs. Signed-off-by: Martyn Welch <martyn.welch@collabora.com> --- apertis-image-builder/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apertis-image-builder/Dockerfile b/apertis-image-builder/Dockerfile index 60a8fde..ad31325 100644 --- a/apertis-image-builder/Dockerfile +++ b/apertis-image-builder/Dockerfile @@ -41,6 +41,9 @@ FROM $REGISTRY/$RELEASE-base:$TAG ENV LANG=C.UTF-8 ENV LC_ALL C.UTF-8 +# Need $HOME to point to somewhere writable for UML +ENV HOME="/scratch" + ENV DEBIAN_FRONTEND=noninteractive ENV GOPATH=/usr/local/go -- GitLab