标签:使用kickstart安装redhat6 并使用lvm分区。
#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
# Firewall configuration
firewall --disabled
# Install OS instead of upgrade
install
# Use network installation
url --url="ftp://192.168.30.100/iso"
# Root password
rootpw --iscrypted $1$yfj7oLDp$IMX6zbIDgJiudz7X8mZVV0
# Network information
network --bootproto=dhcp --device=eth0 --onboot=on
# System authorization information
auth --useshadow --passalgo=md5
# Use graphical install
graphical
#text
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# SELinux configuration
selinux --enforcing
# Installation logging level
logging --level=info
# Reboot after installation
reboot
# System timezone
timezone Asia/Shanghai
# System bootloader configuration
bootloader --location=mbr
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel
# Disk partitioning information
#part / --fstype="ext4" --size=10240
#part swap --fstype="swap" --size=1024
# LVM partitioning infomation
part /boot --fstype="ext4" --size=100
part pv.01-qikang --size=10240 --asprimary --grow --ondisk=sda
volgroup vg_root pv.01-qikang --pesize=4096
logvol / --fstype="ext4" --name=lv_root --vgname=vg_root --size=6144
logvol swap --name=lv_swap --vgname=vg_root --size=1024
%packages
@base
@basic-desktop
@chinese-support
@console-internet
@fonts
@x11
%end
标签:使用kickstart安装redhat6 并使用lvm分区。
原文地址:http://qikang.blog.51cto.com/1504256/1660099