RPi-Distro / pi-gen

Tool used to create the official Raspberry Pi OS images
BSD 3-Clause "New" or "Revised" License
2.57k stars 1.61k forks source link

Ensure deploy is owned by user #680

Closed stefanb2 closed 1 year ago

stefanb2 commented 1 year ago

Files copied out by sudo docker cp ... are owned by root and not the calling user.

Update the build-docker.sh to use tar streaming mode instead. As the receiving tar command is executed outside Docker the resulting directories & files are owned by the calling user. Hence you no longer need to use sudo rm -rf deploy to remove it.

XECDesign commented 1 year ago

Seems okay. Shall I merge or are you still making changes?

stefanb2 commented 1 year ago

Seems okay. Shall I merge or are you still making changes?

Please go ahead and merge. Thank you.

XECDesign commented 1 year ago

Github says no. Another day.