Robertof / nixos-docker-sd-image-builder

Build custom SD images of NixOS for your Raspberry Pi (or any other supported AArch64 device) in 5-20 minutes.
MIT License
214 stars 35 forks source link

Added .gitattributes EOL=LF, fixing errors when building on Windows #34

Closed Denperidge closed 6 months ago

Denperidge commented 6 months ago

This fixes the following error occuring when ./run.sh is used after cloning on a Windows host:

 => CACHED [setup-qemu 4/5] RUN apk add dpkg curl
 => ERROR [setup-qemu 5/5] RUN sh /root/setup-image.sh
 ------
 > [setup-qemu 5/5] RUN sh /root/setup-image.sh:
 0.313 /root/setup-image.sh: set: line 2: illegal option -
 failed to solve: process "/bin/sh -c sh /root/setup-image.sh" did not complete successfully: exit code: 2
Robertof commented 6 months ago

Thanks a lot!