On Mar 30, 2012 3:11 PM, "Thomas Bächler" <thomas@archlinux.org> wrote:
>
> Am 30.03.2012 15:01, schrieb Gerardo Exequiel Pozzi:
> > Anyway using shutdown hook provided by mkinitcpio in archiso can not be
> > a good idea archiso initramfs has a looots of kernel modules, shutdown
> > hooks will copy all them to ram.
>
> Ehm what? This is a bad idea regardless. Usual initramfs can also have
> lots of modules. You don't need to load additional modules on shutdown,
> so why copy them at all?

If the shutdown stuff had not been a hook, but built in, we could avoid this easily:

Just delete the modules and copy the rest to /run as the last thing in ./init before switching to the new root.

T