summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2012-10-24 13:18:17 -0300
committerGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2012-10-24 13:18:17 -0300
commita79559c897fe346ff51afbc54ac4a93ef194576a (patch)
tree6e1581f25964e30376007999876884c2789e3fcb
parentaece3e3d2e07953b9aab2a3bb4e3ed9fd926197f (diff)
downloadarchiso32-a79559c897fe346ff51afbc54ac4a93ef194576a.tar.xz
[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>
-rwxr-xr-xarchiso/mkarchiso4
1 files changed, 4 insertions, 0 deletions
diff --git a/archiso/mkarchiso b/archiso/mkarchiso
index b8d14e1..a1ff68d 100755
--- a/archiso/mkarchiso
+++ b/archiso/mkarchiso
@@ -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