ks.log linux,centos 7 kickstart启动文件ks.cfg简单配置

本配置是基于system-config-kickstart软件配置并加入自己lvm分区的例子,基于ipv6地址的http源及UEFI+GPT模式的BIOS,ISO源为CentOS 7 1810 minimal

以下为ks.cfg文本:

#platform=x86, AMD64, 或 Intel EM64T

#version=DEVEL

Install OS instead of upgrade

install

Keyboard layouts

keyboard 'us'

Root password

rootpw --iscrypted $1$KDsy/krS$rZJ8DRoA5HvbVVwn6MAua/

Use network installation

System language

lang zh_CN

System authorization information

auth --useshadow --passalgo=sha512

Use graphical install

#graphical

Use text mode install

text

firstboot --disable

SELinux configuration

selinux --disabled

Do not configure the X Window System

skipx

Firewall configuration

firewall --disabled

Reboot after installation

reboot

System timezone

timezone Asia/Hong_Kong --isUtc

System bootloader configuration

bootloader --location=mbr

Clear the Master Boot Record

zerombr

Partition clearing information

clearpart --all --initlabel

partd disk

part /boot/efi --fstype efi --size 200 --asprimary --ondisk sda

part /boot --fstype xfs --size 500 --ondisk sda

#part swap --size 2048 --ondisk sda

part pv.01 --size=1 --grow

volgroup centos pv.01

logvol / --vgname=centos --size=10240 --name=lv_root

logvol swap --vgname=centos --size=2048 --name=lv_swap

标签:Use,kickstart,centos,cfg,System,swap,configuration,size

来源: https://blog.51cto.com/taoyeno1/2433728

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值