[arch-projects] [mkinitcpio] shutdown magic

Tom Gundersen teg at jklm.no
Thu Aug 25 13:13:54 EDT 2011


Hi guys,

Thanks to Thomas implementing "cp -x" in busybox, I have now been able
to get back to implementing the shutdown hook.

Thomas' patch only applies to busybox git, and annoyingly they
introduced a bug (imho) which causes some issues with busybox
--install.

To try this out you'll need:

busybox from git: git://git.busybox.net/busybox
revert 5c942713b7369d239b1303c0cfc7049d898564d
revert 4a2a86d5e7e7bf284a31af604a738dfa1f1a2240
thoma's patch: curl http://paste.xinu.at/F5a | git am
.config from mkinitcpio-busybox:
http://projects.archlinux.org/svntogit/packages.git/plain/mkinitcpio-busybox/trunk/config
"make menuconfig" and enable init

initscripts from git: git://projects.archlinux.org/initscripts.git
mkinitcpio from my git: git://github.com/teg/mkinitcpio.git

Finally, you enable the shutdown hook in mkinitcpio.conf, regenerate and reboot.

Assuming your machine came back up again you can now "chroot
/run/initramfs /bin/sh" and have a look around in the init/shutdown
ramfs.

Cheers,

Tom


More information about the arch-projects mailing list