[archiso] Avoid journald log to /var/log/journal

This was recently enabled in [systemd] package.

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
Gerardo Exequiel Pozzi 2012-10-24 13:18:17 -03:00
parent aece3e3d2e
commit a79559c897

View File

@ -255,6 +255,10 @@ _cleanup () {
if [[ -d "${work_dir}/root-image/var/log" ]]; then
find "${work_dir}/root-image/var/log" -type f -delete
fi
# Avoid journald use permanent storage (Storage=auto)
if [[ -d "${work_dir}/root-image/var/log/journal" ]]; then
rm -rf "${work_dir}/root-image/var/log/journal"
fi
# Delete all temporary files and dirs
if [[ -d "${work_dir}/root-image/var/tmp" ]]; then
find "${work_dir}/root-image/var/tmp" -mindepth 1 -delete