summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-11-12 01:20:26 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-11-15 06:12:50 +0000
commite42332c3af8ab01ba76e46d80750b5fc2b5d6d3c (patch)
tree1097af0ffee25960d92a92ffcb85d64206c7eae0
parentAdding chroot hook to remove auto-generated kernel autoremove file. (diff)
downloadsystem-build-e42332c3af8ab01ba76e46d80750b5fc2b5d6d3c.tar.xz
system-build-e42332c3af8ab01ba76e46d80750b5fc2b5d6d3c.zip
Adding chroot hook to remove systemd journal database.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
-rwxr-xr-xshare/hooks/normal/0185-remove-systemd-journal-database.hook.chroot6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/hooks/normal/0185-remove-systemd-journal-database.hook.chroot b/share/hooks/normal/0185-remove-systemd-journal-database.hook.chroot
new file mode 100755
index 000000000..01ac200dc
--- /dev/null
+++ b/share/hooks/normal/0185-remove-systemd-journal-database.hook.chroot
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+set -e
+
+# Remove journal database
+rm -f /var/lib/systemd/catalog/database