dracut:initrd制作工具

 

dracut -f -v -N -I "/usr/sbin/mkfs.ext4 /etc/mke2fs.conf /usr/bin/busybox /usr/bin/lsblk /usr/bin/find /usr/lib64/libntfs-3g.so.89 /usr/bin/ntfs-3g /usr/sbin/mount.ntfs-3g" initrd.img

 

dracut的一些选项说明:

  -i, --include [SOURCE] [TARGET]
                        Include the files in the SOURCE directory into the Target directory in the final initramfs.
                        If SOURCE is a file, it will be installed to TARGET in the final initramfs.
  -I, --install [LIST]  Install the space separated list of files into the initramfs.
  --install-optional [LIST]  
                        Install the space separated list of files into the initramfs, if they exist.

 

posted on 2022-05-28 10:41  jinzhenshui  阅读(530)  评论(0)    收藏  举报