RPi-Distro / pi-gen

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

How to copy my file to the raspberry pi image? #591

Closed gxbag closed 2 years ago

gxbag commented 2 years ago

I created stage3/files/myfile.tar. I edited stage3/01-tweaks/00-run.sh where I added cp files/myfile.tar "${ROOTFS_DIR}/root/" before the on_chroot line.

Upon execution it returns: cp: cannot stat 'files/myfile.tar': No such file or directory.

How would I copy my file to the image?

gxbag commented 2 years ago

I got it:

I needed to place it like this: stage3/01-tweaks/files/myfile.tar. This is the correct structure.