To build a ready to flash one-step setup image for CIFS, do the following:
- Clone pi-gen from https://github.com/RPi-Distro/pi-gen
- Follow the instructions in the pi-gen readme to install the required dependencies
- In the pi-gen folder, run:
echo 'IMG_NAME=teslausb' > config echo 'HOSTNAME=teslausb' >> config echo 'STAGE_LIST="stage0 stage1 stage2 stage_teslausb"' >> config rm -rf stage2/EXPORT_NOOBS mkdir stage_teslausb touch stage_teslausb/EXPORT_IMAGE cp stage2/prerun.sh stage_teslausb/prerun.sh
- Copy teslausb/pi-gen-sources/00-teslausb-tweaks to the pi-gen/stage_teslausb folder
- Run
build.sh
orbuild-docker.sh
, depending on how you configured pi-gen to build the image - Sit back and relax, this could take a while (for reference, on a dual-core 2.6 Ghz Intel Core i3 and 50 Mbps internet connection, it took under an hour)
If all went well, the image will be in the
deploy
folder. Use Etcher or similar tool to flash it.