Debian / raspi3-image-spec

contains the files to build the https://wiki.debian.org/RaspberryPi3 image
127 stars 32 forks source link

No /usr/sbin in path when building image using proposed method #8

Closed st31ny closed 6 years ago

st31ny commented 6 years ago

I tried to build an image using the method proposed in the README (Option 2). However, vmdb2 failed: "FileNotFoundError: [Errno 2] No such file or directory: 'parted': 'parted'" because there was no /usr/sbin in the $PATH variable expanded before env is called. The solution is to manually add /usr/sbin and /sbin:

sudo  env -i LC_CTYPE=C.UTF-8 PATH="/usr/sbin:/sbin:$PATH" ./vmdb2/vmdb2 --output raspi3.img raspi3.yaml --log raspi3.log

This should probably be mentioned in the README.