Bug#826297: patch

積丹尼 Dan Jacobson jidanni at jidanni.org
Fri Nov 18 23:31:33 GMT 2016


--- README.Debian	2016-11-19 07:17:12.657166692 +0800
+++ README.Debian.NEW	2016-11-19 07:25:48.293169579 +0800
@@ -45,6 +45,16 @@
 and then get more detailed information with "systemctl status -l foo.service"
 to get a service "foo"'s status and recent logging.
 
+To make a /shutdown-log.txt file on Debian:
+1. boot with the debug options:
+    systemd.log_level=debug systemd.log_target=kmsg log_buf_len=1M enforcing=0
+2. save the following script as /lib/systemd/system-shutdown/debug.sh and make it executable:
+    #!/bin/sh
+    mount -o remount,rw /
+    dmesg > /shutdown-log.txt
+    mount -o remount,ro /
+3. reboot
+
 Enable and use networkd
 =======================
 networkd is a small and lean service to configure network interfaces, designed



More information about the Pkg-systemd-maintainers mailing list