Arch Linux Hangs on Shutdown
Published 2016-06-22
After a system update, the system is hanging when I try to shutdown or reboot my laptop.
Introduction
After a systemd
upgrade, the system started to hang on shutdown/reboot, with the console indicating it was waiting on a user session.
Resolution
Per this bug report, it looks like some process is dumping core during shutdown (do I care at this point?).
The core pattern is:
$ cat /proc/sys/kernel/core_pattern |/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %e
So, something dumps core during shutdown and the data is piped to systemd
, which is trying to shutdown, and the 90 second wait ensues…
I created a systemd
unit file to change the core pattern to /dev/null
on shutdown:
[Unit] Description=Fix core. [Service] Type=oneshot RemainAfterExit=true ExecStart=/bin/true ExecStop=echo "/dev/null" > /proc/sys/kernel/core_pattern [Install] WantedBy=multi-user.target
I'm not ordering the unit, so that could be better, but so far, this works for me.