How to reproduce:
1.down the latest build
2.[root@rhmn netboot]# lsdef -v
lsdef - Version 2.8.5 (git commit 44452f4cd8f69406fed0d97f4cbfa4dfd8ac1d65, built Tue Jun 3 10:33:13 EDT 2014)
[root@rhmn netboot]#
genimage rhels6.5-x86_64-statelite-compute failed
-I, --install [LIST] Install the space separated list of files into the
initramfs.
the initial ramdisk for stateless is generated successfully.
Try to load drivers: pps_core i2c-core ptp mdio libcrc32c i2c-algo-bit dca virtio_ring virtio tg3 bnx2 bnx2x e1000 e1000e igb mlx_en virtio_net be2net ext3 ext4 to initrd.
Unknown option: -N
Usage: /sbin/dracut [OPTION]... <initramfs> <kernel-version>
Creates initial ramdisk images for preloading modules
-f, --force Overwrite existing initramfs file.
-m, --modules [LIST] Specify a space-separated list of dracut modules to
call when building the initramfs. Modules are located
in /usr/share/dracut/modules.d.
-o, --omit [LIST] Omit a space-separated list of dracut modules.
-a, --add [LIST] Add a space-separated list of dracut modules.
-d, --drivers [LIST] Specify a space-separated list of kernel modules to
exclusively include in the initramfs.
--add-drivers [LIST] Specify a space-separated list of kernel
modules to add to the initramfs.
--omit-drivers [LIST] Specify a space-separated list of kernel
modules not to add to the initramfs.
--filesystems [LIST] Specify a space-separated list of kernel filesystem
modules to exclusively include in the generic
initramfs.
-k, --kmoddir [DIR] Specify the directory, where to look for kernel
modules
--fwdir [DIR] Specify additional directories, where to look for
firmwares, separated by :
--kernel-only Only install kernel drivers and firmware files
--no-kernel Do not install kernel drivers and firmware files
--strip Strip binaries in the initramfs (default)
--nostrip Do not strip binaries in the initramfs
--mdadmconf Include local /etc/mdadm.conf
--nomdadmconf Do not include local /etc/mdadm.conf
--lvmconf Include local /etc/lvm/lvm.conf
--nolvmconf Do not include local /etc/lvm/lvm.conf
-h, --help This message
--debug Output debug information of the build process
-v, --verbose Verbose output during the build process
-c, --conf [FILE] Specify configuration file to use.
Default: /etc/dracut.conf
-l, --local Local mode. Use modules from the current working
directory instead of the system-wide installed in
/usr/share/dracut/modules.d.
Useful when running dracut from a git checkout.
-H, --hostonly Host-Only mode: Install only what is needed for
booting the local host instead of a generic host.
-i, --include [SOURCE] [TARGET]
Include the files in the SOURCE directory into the
Target directory in the final initramfs.
-I, --install [LIST] Install the space separated list of files into the
initramfs.
the initial ramdisk for statelite is generated successfully.</kernel-version></initramfs>
The root cause was a typo when support rh7 that using -N flag for dracut command, but '-N' is not supported in rh6 version of dracut. I already made '-N' only for high dracut version, but has a typo that added '-N' all dracut calling.
commit:
2.8.5: e40f69e
2.9: d5e6982