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
This commit is contained in:
Antoine Amarilli 2017-10-25 11:17:50 +02:00
parent 5d5fca8794
commit dff4a40534
1 changed files with 2 additions and 1 deletions

View File

@ -40,7 +40,8 @@ issuing the following:
```shell ```shell
umask 022 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 ## Installing the image onto the Raspberry Pi 3