Bug#788303: systemd: Hangs indefinitely on >90% of reboot attempts

Frank Heckenbach f.heckenbach at fh-soft.de
Fri Jan 8 12:04:55 GMT 2016


> On 6 Jan 2016 02:45, "Frank Heckenbach" <f.heckenbach at fh-soft.de> wrote:
> >
> > I did some more debugging, and found out some things:
> >
> > - In a debug shell after the failed shutdown, I did:
> >
> >   systemctl status `systemctl | grep failed | grep swap | awk '{print
> $2}'`
> >
> >   and found an error message like this:
> >
> >   swapoff: /dev/sdxx: swapoff failed: Cannot allocate memory
>
> Maybe related to:
> 
> https://github.com/systemd/systemd/issues/1902
> 
> I don't think we have backported that fix to stable. Could you try the
> workaround of ordering the aliased swap units?
> 
> Add a file /etc/systemd/system/swap.target.d/override.conf
> 
> [Unit]
> After=$swapunits
> 
> You can find out the precise swap units by using `systemctl list-units
> --type swap`
> 
> You need to do systemctl daemon-reload after adding the file.

Doesn't help, and I hadn't really expected it to. It seems to be
about the ordering relative to swap.target, but what I need is for
swapoff to be ordered after unmounting (of at least all tmpfs
mounts).




More information about the Pkg-systemd-maintainers mailing list