From dff4a405344a9a1dd9caef8c9298b7dff9d3cc3a Mon Sep 17 00:00:00 2001 From: Antoine Amarilli Date: Wed, 25 Oct 2017 11:17:50 +0200 Subject: [PATCH] clean the environment but keep important variables building the image fails otherwise (encoding issues, missing PATH, etc.); took invocation from https://unix.stackexchange.com/a/49057 --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 364115b..1f1d275 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,8 @@ issuing the following: ```shell umask 022 -sudo env -i ./vmdb2/vmdb2 --output raspi3.img raspi3.yaml --log raspi3.log +sudo env -i HOME="$HOME" LC_CTYPE="${LC_ALL:-${LC_CTYPE:-$LANG}}" PATH="$PATH" USER="$USER" \ + ./vmdb2/vmdb2 --output raspi3.img raspi3.yaml --log raspi3.log ``` ## Installing the image onto the Raspberry Pi 3