aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.d/31-logging.sh
diff options
context:
space:
mode:
authorFilip Pytloun <filip@pytloun.cz>2016-03-09 11:09:41 +0100
committerFilip Pytloun <filip@pytloun.cz>2016-03-11 09:50:51 +0100
commitea1f8911cd69216027df5f9d727f47a1b67ef29b (patch)
treea1f2590c4b1be985b4a276ac291e0dfc9ad78484 /bootstrap.d/31-logging.sh
parent27d947162017091ac25267c7f235c97d5c685dd2 (diff)
downloadrpi2-gen-image-ea1f8911cd69216027df5f9d727f47a1b67ef29b.tar.gz
rpi2-gen-image-ea1f8911cd69216027df5f9d727f47a1b67ef29b.tar.bz2
rpi2-gen-image-ea1f8911cd69216027df5f9d727f47a1b67ef29b.zip
Refactor: split bootstrap actions and allow custom
Diffstat (limited to 'bootstrap.d/31-logging.sh')
-rw-r--r--bootstrap.d/31-logging.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/bootstrap.d/31-logging.sh b/bootstrap.d/31-logging.sh
new file mode 100644
index 0000000..a09e623
--- /dev/null
+++ b/bootstrap.d/31-logging.sh
@@ -0,0 +1,12 @@
+#
+# Setup logging
+#
+
+. ./functions.sh
+
+# Disable rsyslog
+if [ "$ENABLE_RSYSLOG" = false ]; then
+ sed -i 's|[#]*ForwardToSyslog=yes|ForwardToSyslog=no|g' $R/etc/systemd/journald.conf
+ chroot_exec systemctl disable rsyslog
+ chroot_exec apt-get purge -q -y --force-yes rsyslog
+fi