[arch-projects] [PATCH] shutdown: add a shutdown hook

Tom Gundersen teg at jklm.no
Fri Jul 22 09:10:58 EDT 2011

On Fri, Jul 22, 2011 at 2:58 PM, Tom Gundersen <teg at jklm.no> wrote:
> On Fri, Jul 22, 2011 at 1:45 PM, Tom Gundersen <teg at jklm.no> wrote:
>> Enabling the shutdown hook and using systemd v31
>> (which is yet to be released), means that on shutdown the root
>> will be pivoted to /run/initramfs, from where the rootfs and
>> all its submonuts (such as /usr) are unmounted cleanly.
> Looks like I made a mistake. This only works with busybox from
> [community], not with mkinitcpio-busybox from [core].
> It looks like there are two problematic differences: our busybox does
> not come with "tr", and the --install function creates symlinkes to
> /bin/busybox, rather than to the calling binary
> (/run/initramfs/bin/busybox, in this case).

Looks easy to fix. Any objections to changing the mkinitrd-busybox config
# CONFIG_TR is not set

When busybox is installed in the initramfs, we have /proc/self/exe ->
/bin/busybox, so it should not make a difference (though, I have not
actually tried, will do later).



More information about the arch-projects mailing list