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.
weiweiabc109 于 2010-04-23 15:55:39发表:
为什么我安装了livecd-tools ,在usr/share下没有livecd的文件夹呢?