Am 23.04.2012 17:17, schrieb Vivek Goyal:
> On Mon, Apr 23, 2012 at 09:40:26AM +0200, Harald Hoyer wrote:
> 
> [..]
>> Just activate the host-only mode "--hostonly" or "-H"
> 
> I tried -H but then it looks like it does not include modules required
> to mount disks passed using "--mount" option. For example, I want to 
> mount a multipath target in initramfs but I don't see multipath module
> being included.
> 
> Following is dracut command line.
> 
> dracut --add kdumpbase --add dash --add fstab-sys --add kernel-modules -c 
> /dev/null -I /sbin/makedumpfile --hostonly --mount '/dev/mapper/vg-lv_root / 
> ext4 rw,seclabel,relatime,user_xattr,barrier=1,data=ordered' --mount 
> '/dev/mapper/mpathb /mnt/common ext4 
> rw,seclabel,relatime,user_xattr,barrier=1,data=ordered' -M -f 
> /boot/initramfs-3.3.2-1.fc17.x86_64kdump.img 3.3.2-1.fc17.x86_64
> 
> Notice, /dev/mapper/mpathb is the multipath device.
> 
> Following is the list of modules included by dracut.
> 
> -----------------
> i18n
> rpmversion
> plymouth
> dm
> kernel-modules
> lvm
> fstab-sys
> resume
> rootfs-block
> terminfo
> udev-rules
> biosdevname
> usrmount
> base
> fs-lib
> kdumpbase
> shutdown
> -------------------
> 
> Notice it did not inclde "multipath" module.
> 
> I passed the --debug option to dracut and attaching the resulting output.
> I personally think that a new dracut option "--mount-only" might make
> sense where only those modules are included which somehow contribute to
> mounting of targets specified by "--mount".
> 
> BTW, using --hostonly gave a nice redcution in initramfs size and my
> uncomressed initramfs is around 18MB which sounds just right.
> 
> Thanks
> Vivek

oh.. multipath detection is not yet implemented for host-only... everything else
should work, though
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to