[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:
parent
aece3e3d2e
commit
a79559c897
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user