[systemd-devel] shutdown pivot to /run/initramfs

Lennart Poettering lennart at poettering.net
Thu Jul 21 19:41:34 PDT 2011

On Fri, 22.07.11 01:56, Tom Gundersen (teg at jklm.no) wrote:

> Hi guys,
> I'm playing around with the new shutdown pivot mechanism (using v30),
> and trying to make it work without using dracut (as Arch has its own
> initramfs implementation). I ran across a problem related to
> pivot_to_new_root(), and wondered if anyone could point me in the
> right direction.
> A minimal testcase is:
> # mkdir /run/initramfs
> # touch /run/initramfs/shutdown
> # chmod +x /run/initramfs/shutdown
> # systemctl reboot
> I then get an assert in close_nointr_nofail() when pivot_to_new_root()
> tries to close /dev/console. (This happens before we execv shutdown,
> so it does not matter that shutdown is empty).

Try again with current git. I merged a patch from Harald now, that fixes this.


Lennart Poettering - Red Hat, Inc.

More information about the systemd-devel mailing list