场景描述:为什么没有将REHD和SLES放在一块说明,而是分而治之的方法,是因为一直在说SLES中的mkinitrd存在bug,无法使用with,实际上,我并没有从SLES的官网,不管从哪个层面我确实应该如此做。对于很多项目只能够说时间不够,不可能完全去查看手册,那需要多长的时间,但是基本的语法还是需要掌握的。
摘自:http://man7.org/linux/man-pages/man8/mkinitrd-suse.8.html
姓名:mkinitrd-suse
- is a compat wrapper, which calls dracut to generate
an initramfs
***:
mkinitrd creates an initramfs image <initrd-image> for the kernel
with version <kernel-version> by calling dracut.
Important
This version of mkinitrd is provided for compability with older
versions of mkinitrd. If a more fine grained control over the
resulting image is needed, dracut should be called directly.
职业:
-R, --version
print info about the version
-k <kernel_list>
List of kernel images for which initrd files are created
(relative to boot_dir), defaults to vmlinux on ppc/ppc64, image
on s390/s390x and vmlinuz for everything else.
-i <initrd_list>
List of file names (relative to boot_dir) for the initrd;
positions have to match the kernel_list. Defaults to initrd.
-m <module_list>
Modules to include in initrd, defaults to INITRD_MODULES variable
in /etc/sysconfig/kernel.
-f <feature_list>
Features to be enabled for the initrd. In general mkinitrd
configures the initrd for the root device it is started from.
With this option additional feature can be enabled.
我们想修改initrd文件,无非的一个理由是添加驱动raid,但是没有with参数,但是有:
-m <module_list>
Modules to include in initrd, defaults to INITRD_MODULES variable
in /etc/sysconfig/kernel.
这就已经足够了,目前没有任何的SUSE系统,并不清楚有没有这个文件,但是有一点可以肯定,这是一个新的发现。
原文地址:http://5228690.blog.51cto.com/5218690/1580234