Harald Hoyer píše v Pá 19. 08. 2011 v 09:07 +0200: > On 19.08.2011 09:04, Américo Wang wrote: > > On Fri, Aug 19, 2011 at 2:47 PM, Harald Hoyer <harald@xxxxxxxxxx> wrote: > >> On 19.08.2011 06:53, WANG Cong wrote: > >>> As a kdump developer, I worry more about the size of initramfs generated > >>> by dracut, because we have very limited memory (usually 128M or 256M) > >>> in the second kernel. So, the output of `lsinitrd test2.img` would > >>> be helpful too. > >>> > >>> Thanks. > >> > >> Maybe you should build your kdump kernel with the "hostonly" option, which will > >> significantly reduce your initramfs. > >> > > > > Yeah, that does help, but the size is still large, see below > > > > [root@nec-em18 ~]# dracut -H -M -f test.img --force-add nfs > > dash > > i18n > > rpmversion > > network > > ifcfg > > plymouth > > dm > > kernel-modules > > lvm > > nfs > > resume > > rootfs-block > > terminfo > > udev-rules > > biosdevname > > base > > fs-lib > > shutdown > > [root@nec-em18 ~]# ls -lh test.img > > -rw-r--r--. 1 root root 11M Aug 19 03:00 test.img > > > > Also note, there are still some unneeded modules get included, e.g. i18n > > and plymouth. > > > > Therefore, I choose to use -m and -a to specify the modules we really need. > > Absolutely! You don't want plymouth and shutdown for example in your kdump > initramfs :-) and maybe you can use --filesystems too, http://fedora.danny.cz/arm/dracut.conf is an example of dracut config I use for preparing size-limited initramfs images for my Fedora/ARM devices Dan -- 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