30 Mar
2012
30 Mar
'12
3:32 p.m.
Am 30.03.2012 17:19, schrieb Tom Gundersen:
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.
It's not like this is unsolvable as a hook.