RobertCNelson / omap-image-builder

omap image builder
http://elinux.org/BeagleBoardUbuntu
MIT License
153 stars 200 forks source link

chroot.sh: Clean out /tmp #94

Closed cdsteinkuehler closed 7 years ago

cdsteinkuehler commented 7 years ago

Delete any files in the chroot /tmp/ directory before exiting.

Signed-off-by: Charles Steinkuehler charles@steinkuehler.net

cdsteinkuehler commented 7 years ago

The dtc build script leaves artifacts in the /tmp directory which don't really need to go into the uSD image.

This takes a heavy handed approach and just wipes the whole /tmp directory in the chroot before the chroot.sh script exits, but that's pretty much what happens on the first full boot anyway, so it should be OK.