From: Frantisek Sumsal Date: Mon, 25 Sep 2023 11:25:27 +0000 (+0200) Subject: test: enable debug logs for the user instances as well X-Git-Tag: v255-rc1~442 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7f048f0ed0168be6e90ca4bdb41f3fda030df244;p=thirdparty%2Fsystemd.git test: enable debug logs for the user instances as well To make debugging [0], hopefully, easier. [0] https://github.com/systemd/systemd/issues/28504 --- diff --git a/test/test-functions b/test/test-functions index 9eeabd860a9..6187aa84e8d 100644 --- a/test/test-functions +++ b/test/test-functions @@ -1381,6 +1381,9 @@ install_systemd() { if [[ -n "$TEST_SYSTEMD_LOG_LEVEL" ]]; then echo DefaultEnvironment=SYSTEMD_LOG_LEVEL="$TEST_SYSTEMD_LOG_LEVEL" >>"$initdir/etc/systemd/system.conf.d/99-log-level.conf" fi + # Enable debug logging for user instances as well + mkdir -p "$initdir/etc/systemd/user.conf.d/" + echo -ne "[Manager]\nLogLevel=debug\n" >"$initdir/etc/systemd/user.conf.d/10-log-level.conf" # Store coredumps in journal mkdir -p "$initdir/etc/systemd/coredump.conf.d/" echo -ne "[Coredump]\nStorage=journal\n" >"$initdir/etc/systemd/coredump.conf.d/10-storage-journal.conf"