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

Felipe Sateler fsateler at debian.org
Thu Jan 14 13:30:30 GMT 2016


On 14 January 2016 at 10:21, Frank Heckenbach <f.heckenbach at fh-soft.de> wrote:
>
> As a work around, I've put the following in
> /etc/systemd/system/workaround-788303.service and activated it with
> systemctl enable workaround-788303
>
> This seems to work for me for now. Of course, I'd prefer a real
> bugfix. (And so should the systemd author, seeing how much he hates
> using the shell ... ;)
>
> [Unit]
> Description=Work-around for Debian bug #788303
> After=local-fs.target
>
> [Service]
> Type=oneshot
> RemainAfterExit=yes
> ExecStart=/bin/true
> ExecStop=/bin/sh -c 'while mount | grep -q "on /tmp "; do umount /tmp; sleep 1; done; while ! swapoff -a; do sleep 1; done'
>
> [Install]
> WantedBy=multi-user.target

What if instead of this service, you add an:

After=swap.target

To your tmp.mount ?

That should be less hackish.

-- 

Saludos,
Felipe Sateler




More information about the Pkg-systemd-maintainers mailing list