summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Amarilli <a3nm@a3nm.net>2017-10-25 11:17:50 +0200
committerAntoine Amarilli <a3nm@a3nm.net>2017-10-25 11:17:50 +0200
commitdff4a405344a9a1dd9caef8c9298b7dff9d3cc3a (patch)
tree9345a3cadab9388a69afd2d1d93042f1c6b28743
parent5d5fca879430daba9db7b81d729f3ab1482e0870 (diff)
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
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
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