How to debug a system while it shuts down?
How to fetch dmesg during this time?
I thought I could place a few lines (like "dmesg > /foo/bar") in /sbin/poweroff, but this is not a script ...
EDIT: I tried syslogd, unfortunately without success. The last line that was logged is:
Apr 12 22:49:49 (none) daemon.info init: starting pid 8513, tty '': '/etc/init.d/rc.shutdown'