轉(zhuǎn)載:http://blog.chinaunix.net/uid-22714685-id-3429998.html
系統(tǒng)環(huán)境: UniKylin-3.3-6
需要軟件包: livecd-tools-21.6-1
依賴:
hfsplus-tools-540.1.linux3-9
syslinux-6.03-1
syslinux-nonlinux-6.03-1
syslinux-extlinux-6.03-1
syslinux-ext-nonlinux-6.03-1
1. 搭建并配置本地源
Createrepo -d -g /path/to/your-comps.xml -o /path/to/repo/ /path/to/repo/
修改/etc/yum.repos/xx.repo,如下:
[kylin-livecd]
name=kylin-livecd
baseurl=file:///path/to/repo
enabled=1
gpgcheck=0
2. 配置kylin.ks文件
part / --size xxxx # 按照自己安裝的軟件包多少寫合適大小瞄桨,太小會(huì)報(bào)錯(cuò)
rootpw # 可配置root密碼
repo --name=kylin-livecd --baseurl=file:///path/to/repo # 配置源路徑
%packages # 在該段添加iso中需要安裝的軟件包組
%post # 在該段添加安裝后腳本
(其余kickstart文件配置項(xiàng)參考system-config-kickstart,以及/usr/sha/doc/live-tools-21.6 路徑下的.ks文件)
3. 執(zhí)行l(wèi)ivecd-creator(注意關(guān)閉selinux)
livecd-creator --config=kylin.ks --cache=var/cache/live --fslabel=UniKylin-3.3-6-livecd