Bug#826297: patch

2016-11-21 Thread Martin Pitt
Control: tag -1 pending

Hello Dan,

thanks! Applied with slightly adjusted wording:

  https://anonscm.debian.org/cgit/pkg-systemd/systemd.git/commit/?id=1b7ba57

Martin
-- 
Martin Pitt| http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)



Bug#826297: patch

2016-11-18 Thread 積丹尼 Dan Jacobson
--- 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