fedora core 8 的livecd-creator命令:
[root@localhost ~]# livecd-creator --help
Usage: livecd-creator [options]
Options:
-h, --help show this help message and exit
Image options:
These options define the created image.
-c KSCFG, --config=KSCFG
Path to kickstart config file
-b BASE_ON, --base-on=BASE_ON
Add packages to an existing live CD iso9660 image.
-f FS_LABEL, --fslabel=FS_LABEL
File system label (default based on config name)
System directory options:
These options define directories used on your system for creating the
live image
-t TMPDIR, --tmpdir=TMPDIR
Temporary directory to use (default: /var/tmp)
--cache=CACHEDIR Cache directory to use (default: private cache
fedora core 6的livecd-creator命令:
[root@localhost ~]# livecd-creator --help
usage: livecd-creator [--help]
[--repo=
, ...] [--repo=,] --package= [--package= ...] [--exclude-package=] --exclude-package= ...] [--base-on=] [--fslabel=] --help : Print usage and exit --repo : Path to yum repository --package : Include this package --exclude-package : Exclude this package --base-on : Add packages to an existing live CD iso9660 image --fslabel : File system label (default: livecd-YYYYMMDD-HHMI) 從上述比較可以看出,命令已經有很大改變,所以相應的方法也會改變不少,以下過程只是對於fedora core 8: [root@localhost ~]# which createrepo /usr/bin/createrepo [root@localhost ~]# rpm -qf /usr/bin/createrepo createrepo-0.4.11-2.fc8 [root@localhost ~]# which livecd-creator /usr/bin/livecd-creator [root@localhost ~]# rpm -qf /usr/bin/livecd-creator livecd-tools-013-1.fc8 製作livecd(以/usr/share/livecd-tools/livecd-fedora-minimal.ks為例): 方法一:從網路獲取rpm包 確認已經有livecd-creator; #livecd-creator --config=/usr/share/livecd-tools/livecd-fedora-minimal.ks 方法二:把FC8的安裝光碟作為獲取rpm的「源」: 確認已經安裝livecd-creator; 修改/usr/share/livecd-tools/livecd-fedora-minimal.ks的baseurl指向光碟所在路徑; #livecd-creator --config=/usr/share/livecd-tools/livecd-fedora-minimal.ks 方法三:把硬碟上的rpm包目錄作為獲取rpm的"源": 確認已經安裝了createrepo(用來生成*.xml頭文件信息); 確認已經安裝了livecd-creator; 修改/usr/share/livecd-tools/livecd-fedora-minimal.ks的baseurl指向rpm包所在路徑; 打開http服務並確認可以在瀏覽器中訪問rpm包所在路徑; #livecd-creator --config=/usr/share/livecd-tools/livecd-fedora-minimal.ks 示例配置文件參考如下: [root@localhost ~]# cat /usr/share/livecd-tools/livecd-fedora-minimal.ks lang en_US.UTF-8 keyboard us timezone US/Eastern auth --useshadow --enablemd5 selinux --disable #註釋掉如下行,如果不註釋掉製作livecd時要打開selinux #selinux --enforcing firewall --disabled part / --size 1024 #/usr/share/livecd-tools/livecd-fedora-minimal.ks文件原來的內容如下,製作livecd時會通過此鏈接到網上尋找包下載, #依據就是此.ks文件 #repo --name=development --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=$basearch #下面的鏈接是設置了localhost為「源」,所需的依賴包從本地下載。--name可以隨便寫;--baseurl是光碟的根根目錄所在地址(網址) #repo --name=os --baseurl=http://localhost/ll96-dvd-repos/i386/os #下面的鏈接設置了光碟為「源」,光碟的掛載路徑是/mnt/disk,示例書寫規則如下: repo --name=disk --baseurl=file:///mnt/disk %packages @core bash kernel passwd policycoreutils chkconfig authconfig rootfiles %end 最後,在/usr/share/livecd-tools目錄中有很多.ks文件,可以作為參考定製自己的livecd.