On Mon, 2012-04-23 at 08:54 -0400, Vivek Goyal wrote: > On Mon, Apr 23, 2012 at 10:37:57AM +0200, Harald Hoyer wrote: > > Am 23.04.2012 09:53, schrieb Cong Wang: > > > On Mon, 2012-04-23 at 09:40 +0200, Harald Hoyer wrote: > > >> > > >> Just activate the host-only mode "--hostonly" or "-H" > > >> > > > > > > Well, -H will set host-only mode for all dracut modules, but here we > > > want to activate host-only mode _only_ for kernel-modules module. > > > > > > For other dracut modules, we use --add to only specify those we need, as > > > you can see from Vivek's output. > > > > > > > > > > Why don't you want host-only mode for the other kernel modules? > > I think host-only should be reasonable but there should be scope for > further optimization. IIUC, host-only will try to include all the modules > which are needed to mount root and boot the machine. But in kdump, we > might not want to mount root at all. We just might want to dump vmcore > over NFS and reboot. Yes, exactly. The last time I tried host-only, it included more dracut modules than what we need, thus increased the initrd size. (The other reason is, as you replied in another email, host-only doesn't respect --mount, this also means "network" module will not be included when I dump to NFS but my rootfs is not NFS.) > > So the assumption that we will necessarily mount root is not valid in > kdump context. I am not sure how much memory saving this extra > optimization will lead to, but I will try passing -H and do some testing > and see how size is varying. Before this, we have to fix -H to work with --mount. ;-) -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html