• xiaole

    #version=RHEL7

    System authorization information

    auth --enableshadow --passalgo=sha512

    Use CDROM installation media

    cdrom

    Use graphical install

    text

    Run the Setup Agent on first boot

    firstboot --enable
    ignoredisk --only-use=sda

    Keyboard layouts

    keyboard --vckeymap=us --xlayouts='us'

    System language

    lang en_US.UTF-8

    Network information

    network --bootproto=dhcp --device=enp2s0 --onboot=off --ipv6=auto
    network --hostname=localhost.localdomain

    Root password

    rootpw --iscrypted $6$f4l405eMpDowHdqy$t2jpoH07Oafhy4LgipSqH4BtLv2kcLTnFohMVVSZn79AFSHGw81O.RwENysd5ssDcUeZ4OK3mzvOwKuY/4TAs/

    System timezone

    timezone Asia/Shanghai --isUtc --nontp

    System bootloader configuration

    bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda

    Partition clearing information

    clearpart --all --initlabel --drives=sda

    Disk partitioning information

    #part /boot --fstype=ext4 --asprimary --size=500
    #part swap --fstype=swap --asprimary --size=2048
    #part / --fstype=ext4 --asprimary --size=1 --grow

    part /boot --fstype="xfs" --ondisk=sda --size=500
    part pv.247 --fstype="lvmpv" --ondisk=sda --size 1 --grow
    volgroup centos --pesize=4096 pv.247
    logvol swap --fstype="swap" --size=2048 --name=swap --vgname=centos
    logvol / --fstype="xfs" --size 1 --grow --name=root --vgname=centos

    reboot

    %packages
    @core
    @web-server
    httpd
    kexec-tools

    %end

    %addon com_redhat_kdump --enable --reserve-mb='auto'

    %end

    posted in xiaole-test