这个文件记录的是安装系统时的一些信息:
以我的虚拟机为例:
view sourceprint?
01 | #—————————-引用文字-开始—————————- |
02 | # Kickstart file automatically generated by anaconda. |
13 | network --device eth0 --bootproto static --ip 10.0.0.241 --netmask 255.255.255.0 --gateway 10.0.0.1 --nameserver 8.8.8.8 |
16 | rootpw --iscrypted $1$uiEOrtaz$XFiz8psay7UuVm.2Dkt1Z1 |
19 | firewall --enabled --port=22:tcp |
22 | authconfig --enableshadow --enablemd5 |
28 | timezone --utc Asia/Shanghai |
31 | bootloader --location=mbr --driveorder=hda |
33 | # The following is the partition information you requested |
34 | # Note that any partitions you deleted are not expressed |
35 | # here so unless you clear all partitions first, this is |
36 | # not guaranteed to work |
39 | #clearpart --linux --drives=hda |
40 | #part /boot --fstype ext3 --size=100 --ondisk=hda |
41 | #part pv.2 --size=0 --grow --ondisk=hda |
42 | #volgroup VolGroup00 --pesize=32768 pv.2 |
43 | #logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow |
44 | #logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=384 --grow --maxsize=768 |
55 | device-mapper-multipath |
56 | #—————————-引用文字-结束—————————- |
那这个文件有什么用呢?
这个配置文件经修改之后可以用于雷同环境下,使用Kickstart来自动安装大量同样的操作系统,
可以把这个文件经修改之后放入U盘,命名为ks.cfg
在装系统时,出现boot界面时就可以输入:
#ks的路径视你的U盘的为哪个盘而定
linux ks=/dev/sdb:/yourpath/ks.cfg
也可以放入nfs服务器,通过网络安装,出现boot界面时就可以输入:
linux ks=nfs:servername:/yourpath/ks.cfg
转自https://blog.csdn.net/whyhonest/article/details/7555229#commentBox