Don't nuke /tmp on the pristine image

Just nuke /tmp/* instead.

Signed-off-by: Simo Leone <simo@archlinux.org>
This commit is contained in:
Simo Leone 2007-10-09 02:14:12 -05:00 committed by Dan McGee
parent 8dea2b65fc
commit 3b35c6e759

View File

@ -155,7 +155,7 @@ if [ "${command_name}" = "install" -o "${command_name}" = "all" ]; then
echo "Cleaning up ISO root files..." echo "Cleaning up ISO root files..."
find "${instroot}" -name *.pacnew -name *.pacsave -name *.pacorig -delete find "${instroot}" -name *.pacnew -name *.pacsave -name *.pacorig -delete
kill_dirs="var/abs var/cache/man var/cache/pacman var/log/* var/mail tmp usr/include initrd" kill_dirs="var/abs var/cache/man var/cache/pacman var/log/* var/mail tmp/* usr/include initrd"
for x in ${kill_dirs}; do for x in ${kill_dirs}; do
if [ -e "${instroot}/${x}" ]; then if [ -e "${instroot}/${x}" ]; then
rm -rf "${instroot}/${x}" rm -rf "${instroot}/${x}"