• linux包之dracut


    这是一个工具类,不是一个后台服务类

    centos7.2-minimal就下面三个包

    [root@1st-kvm ~]# rpm -qa|grep dracut
    dracut-config-rescue-033-359.el7.x86_64
    dracut-033-359.el7.x86_64
    dracut-network-033-359.el7.x86_64

    [root@222-comecs ~]# rpm -qf /var/log/dracut.log
    dracut-004-335.el6.noarch
    [root@222-comecs ~]# rpm -ql dracut|more
    /etc/dracut.conf
    /etc/dracut.conf.d
    /etc/logrotate.d/dracut
    /sbin/dracut
    /sbin/lsinitrd
    /sbin/mkinitrd

    dracut - low-level tool for generating an initramfs image
       47  dracut aa.img
       49  lsinitrd  aa.img
       50  file aa.img
       51  dracut --print-cmdline
       57  dracut --list-modules|more


    lsinitrd shows the contents of an initramfs image. if <image> is omitted, then lsinitrd uses the default image
    /boot/<machine-id>/<kernel-version>/initrd or /boot/initramfs-<kernel-version>.img.

    [root@222-comecs ~]# cat /etc/dracut.conf
    # Sample dracut config file

    # Specific list of dracut modules to use
    #dracutmodules+=""

    # Dracut modules to omit
    #omit_dracutmodules+=""

    # Dracut modules to add to the default
    #add_dracutmodules+=""

    # additional kernel modules to the default
    #add_drivers+=""

    # list of kernel filesystem modules to be included in the generic initramfs
    #filesystems+=""

    # build initrd only to boot current hardware
    #hostonly="yes"
    #

    # install local /etc/mdadm.conf
    mdadmconf="yes"

    # install local /etc/lvm/lvm.conf
    lvmconf="yes"

  • 相关阅读:
    扩展正则表达式 练习题
    Linux特殊符号
    文件属性下
    文件属性和ls -lhi
    复习之前的和补充一些内容
    第二关练习题总结完结
    云服务器防ssh攻击
    实验四+085
    实验3+085
    第5次作业+085
  • 原文地址:https://www.cnblogs.com/createyuan/p/4384581.html
Copyright © 2020-2023  润新知