From 4534ca313be4e38faa53bf9c6514bec18dd82b75 Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Tue, 20 Oct 2015 14:15:20 +0300 Subject: [PATCH] init: improve systemd debug facilities The "best" "feature" of systemd "init system" has just emerged once again: it will happily sit there idling given startup or shutdown loops resulting in what looks like a hang to an unsuspecting user; let's provide the suspecting one with at least some tools described at http://www.freedesktop.org/wiki/Software/systemd/Debugging --- features.in/init/config.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/features.in/init/config.mk b/features.in/init/config.mk index 91b12029..6aa58f08 100644 --- a/features.in/init/config.mk +++ b/features.in/init/config.mk @@ -22,5 +22,10 @@ use/init/systemd: use/init @$(call set,INIT_TYPE,systemd) @$(call add,INSTALL2_PACKAGES,installer-feature-journald-tty) +# http://www.freedesktop.org/wiki/Software/systemd/Debugging use/init/systemd/debug: use/init/systemd use/services + @$(call add,THE_PACKAGES,systemd-shutdown-debug-script) @$(call add,SERVICES_ENABLE,debug-shell) + @$(call add,STAGE2_BOOTARGS,systemd.log_level=debug) + @$(call add,STAGE2_BOOTARGS,systemd.log_target=kmsg) + @$(call add,STAGE2_BOOTARGS,log_buf_len=1M enforcing=0)