[solved] initramfs 'pro' needed
Doug Hunley
doug.hunley at gmail.com
Mon Apr 23 10:10:56 PDT 2012
On Fri, Apr 20, 2012 at 09:25, Doug Hunley <doug.hunley at gmail.com> wrote:
> I'm using an init.cfg (attached) to have the kernel build the
> initramfs and pull in all the binaries that are needed. How do I tweak
> this to pull in the appropriate modules?
I consulted The Google and put some 'echo' statements into the
kernel's make file and determined that it is *not* possible to
auto-include the modules when building an initramfs in this fashion.
In fact, the initramfs is damn near the *first* thing the kernel
builds....
So I ended up just having my /sbin/init that runs inside the initramfs
use busybox to symlink /lib/modules/`uname -r` from the real_root to
the initramfs and then run modprobe. So the kernel boots up w/o the
modules, loads the initramfs, and then the modules get loaded and boot
gets handed off to the 'real' system
TL;DR you can't, but you can work around it and get close enough
--
Douglas J Hunley (doug.hunley at gmail.com)
Twitter: @hunleyd Web:
douglasjhunley.com
G+: http://goo.gl/sajR3
More information about the Linux-users
mailing list