<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Howto build fedora custom iso with revisor and command line:- By Nilesh J. Vaghela ElectroMech
This document describe complete command line setup for revisor based on RHEL5.2 and to create fedora 8 custom dvd images.
Basic requirement.
1. Need to have fedora 8 iso
2. Good internet connection or complete fedora 8 repository ( Everything )
3. Install revisor following rpm
revisor-cobbler-2.0.5.1-4.el5
revisor-jigdo-2.0.5.1-4.el5
revisor-rebrand-2.0.5.1-4.el5
revisor-2.0.5.1-4.el5
revisor-virt-2.0.5.1-4.el5
revisor-comps-2.0.5.1-4.el5
revisor-delta-2.0.5.1-4.el5
Now follow the steps as below :
Step 1.
Mount the iso for basic repository setup.
[root@station253 ~]# mount -o loop /redold/root/fedora8.iso /var/ftp/pub/fedora8
[root@station253 ~]#
Step 2.
Check for enough disk space you required at least 4 GB .
[root@station253 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda12 15G 12G 1.6G 89% /
tmpfs 918M 0 918M 0% /dev/shm
/dev/sda1 28G 18G 8.7G 67% /fedora8
/dev/sda5 19G 14G 4.0G 78% /data
/dev/sda7 19G 11G 7.6G 59% /redold
/redold/root/fedora8.iso
3.2G 3.2G 0 100% /var/ftp/pub/fedora8
[root@station253 ~]#
Step 3.
Need a proper kickstart file.
Below is sample kickstart file.
[root@station253 ~]# cat /fedora8/root/anaconda-ks.cfg
# Kickstart file automatically generated by anaconda.
install
#cdrom
#repo --baseurl=ftp://localhost/pub
repo --name=f8e --baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/8/Everything/i386/os
repo --name=f8 --baseurl=ftp://localhost/pub/fedora8
lang en_US.UTF-8
keyboard us
xconfig --startxonboot
network --device eth0 --bootproto static --ip 192.168.0.253 --netmask 255.255.255.0 --hostname server2.example.com
rootpw --iscrypted $1$zRjc9gjf$nJHDF507oQSlKJf5MDmN..
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing
timezone --utc Asia/Calcutta
bootloader --location=mbr --driveorder=sda --append="rhgb quiet"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --all
part / --fstype ext3 --size=100 --grow
part swap --noformat --onpart sda10
part swap --noformat --onpart sda9
%packages
@admin-tools
@editors
@fonts
@text-internet
@gnome-desktop
@core
@base
@hardware-support
@base-x
@graphics
@web-server
@legacy-fonts
@graphical-internet
gnome-netstatus
pax
gnuchess
ImageMagick
gutenprint-plugin
libsane-hpaio
netpbm-progs
urw-fonts
ghostscript-fonts
[root@station253 ~]#
Step 4.
Check ftp service
[root@station253 ~]# service vsftpd status
vsftpd (pid 6354) is running...
[root@station253 ~]#
Step 5.
You required to load revisor rpm tobe loaded from fedora everything repository.
[root@station253 ~]# rpm -qa | grep revisor
revisor-cobbler-2.0.5.1-4.el5
revisor-jigdo-2.0.5.1-4.el5
revisor-rebrand-2.0.5.1-4.el5
revisor-2.0.5.1-4.el5
revisor-virt-2.0.5.1-4.el5
revisor-comps-2.0.5.1-4.el5
revisor-delta-2.0.5.1-4.el5
[root@station253 ~]#
Step 6.
Here other sample kickstart file.
[root@station253 ~]# cat /fedora8/root/rvtest.cfg
# Kickstart file automatically generated by anaconda.
text
#install
#cdrom
#repo --baseurl=ftp://localhost/pub
repo --name=f8e --baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/8/Everything/i386/os
repo --name=f8 --baseurl=ftp://localhost/pub/fedora8
lang en_US.UTF-8
keyboard us
#xconfig --startxonboot
network --device eth0 --bootproto static --ip 192.168.0.253 --netmask 255.255.255.0 --hostname server2.example.com
rootpw --iscrypted $1$zRjc9gjf$nJHDF507oQSlKJf5MDmN..
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing
timezone --utc Asia/Calcutta
bootloader --location=mbr --driveorder=sda --append="rhgb quiet"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --all
part / --fstype ext3 --size=15000 --grow
part swap --noformat --onpart sda2
%packages
@core
@base
@hardware-support
setup-2.6.10-1.fc8
basesystem-8.1-1
glibc-common-2.7-2
glibc-2.7-2
zlib-1.2.3-14.fc8
mktemp-1.5-25.fc7
bash-3.2-18.fc8
libsepol-2.0.11-1.fc8
device-mapper-libs-1.02.22-1.fc8
audit-libs-1.6.2-4.fc8
shadow-utils-4.0.18.1-18.fc8
readline-5.2-7.fc8
sqlite-3.4.2-3.fc8
libdhcp4client-3.0.6-10.fc8
bzip2-libs-1.0.4-12.fc8
parted-1.8.6-10.fc8
findutils-4.2.31-2.fc8
cracklib-2.8.10-3
db4-4.6.21-1.fc8
expat-2.0.1-2
newt-0.52.7-4.fc8
lvm2-2.02.28-1.fc8
psmisc-22.5-2.fc8
cpio-2.9-4.fc8
procps-3.2.7-17.fc8
wireless-tools-29-0.2.pre22.fc8
mingetty-1.07-6
iputils-20070202-5.fc8
ustr-1.0.1-6.fc8
libattr-2.4.38-1.fc8
tar-1.17-3.fc8
cyrus-sasl-lib-2.1.22-7
pcre-7.3-1
coreutils-6.9-9.fc8
logrotate-3.7.6-1.3.fc8
MAKEDEV-3.23-1.2
krb5-libs-1.6.2-9.fc8
libdhcp6client-0.10-51.fc8
nash-6.0.19-4.fc8
vim-minimal-7.1.135-1.fc8
ed-0.8-1.fc8
setserial-2.17-21.fc8
fedora-logos-8.0.2-1.fc8
fedora-release-notes-8.0.0-3
crontabs-1.10-18.fc8
libuser-0.56.6-2
sysvinit-2.86-18
python-2.5.1-15.fc8
libsemanage-2.0.12-1.fc8
dbus-1.1.2-7.fc8
ConsoleKit-libs-0.2.3-1.fc8
initscripts-8.60-1
usermode-1.93.1-1.fc8
less-406-12.fc8
mdadm-2.6.2-5.fc8
rhpl-0.210-1
libselinux-python-2.0.37-1.fc8
newt-python-0.52.7-4.fc8
authconfig-5.3.18-1.fc8
kbd-1.12-27.fc8
kudzu-1.2.79-1
selinux-policy-targeted-3.0.8-44.fc8
nss-3.11.7-10.fc8
libedit-2.10-1.20070831cvs.fc8
tcp_wrappers-libs-7.6-50.fc8
iptables-1.3.8-5.fc8
perl-5.8.8-30.fc8
perl-version-0.7203-2.fc8
squid-2.6.STABLE16-2.fc8
apr-1.2.11-2
httpd-tools-2.2.6-3
httpd-2.2.6-3
mysql-libs-5.0.45-4.fc8
mysql-5.0.45-4.fc8
postgresql-libs-8.2.5-1.fc8
bind-9.5.0-16.a6.fc8
bind-utils-9.5.0-16.a6.fc8
cpp-4.1.2-33
glibc-headers-2.7-2
libgomp-4.1.2-33
make-3.81-10.fc8
wget-1.10.2-16.fc8
rpm-python-4.4.2.2-3.fc8
libxml2-2.6.31-1.fc7
yum-3.2.7-1.fc8
fedora-usermgmt-default-fedora-setup-0.10-1.fc8
fedora-usermgmt-core-0.10-1.fc8
clamav-filesystem-0.93.3-1.fc9
gmp-4.2.2-3.fc8
clamav-0.93.3-1.fc9
clamav-milter-core-0.93.3-1.fc9
clamav-server-0.93.3-1.fc9
vixie-cron-4.2-3.fc8
clamav-0.94-39.fc8
perl-XML-LibXML-Common-0.13-9
lzop-1.02-0.5.rc1.fc8
exim-4.68-1.fc8
arj-3.10.22-1.fc8
cabextract-1.1-7.fc8
perl-BerkeleyDB-0.32-1.fc8
perl-Unix-Syslog-1.0-1.fc8
perl-GSSAPI-0.24-1.fc7
perl-NetAddr-IP-4.004-4.fc8
nomarch-1.4-2.fc6
libusb-0.1.12-10.fc8
p7zip-4.51-3.fc8
perl-DBD-SQLite-1.12-2.fc8.1
perl-IO-Socket-SSL-1.02-1.fc8.1
perl-Digest-HMAC-1.01-16
perl-IO-Compress-Base-2.005-2.fc8
perl-Compress-Zlib-2.005-2.fc8
perl-Archive-Tar-1.34-1.fc8
perl-Authen-SASL-2.10-1.fc8.1
perl-MailTools-1.77-2.fc8
perl-IO-Multiplex-1.08-5.fc8.1
perl-Error-0.17008-1.fc7
perl-MIME-tools-5.420-4.fc8
perl-HTML-Tagset-3.10-6.fc8
perl-Net-DNS-0.61-1.fc8
perl-Razor-Agent-2.84-2.fc8
perl-Mail-SPF-2.005-1.fc8
perl-XML-SAX-0.16-2.fc8
perl-Test-Harness-2.56-30.fc8
perl-ExtUtils-MakeMaker-6.30-30.fc8
spamassassin-3.2.3-2.fc8
cyrus-sasl-2.1.22-7
cyrus-sasl-md5-2.1.22-7
dovecot-1.0.5-1.fc8
gpm-1.20.1-89.fc8
perl-DBD-MySQL-4.005-2.fc8.1
php-common-5.2.4-3
aspell-en-6.0-8.fc8
php-5.2.4-3
php-mysql-5.2.4-3
mysql-connector-odbc-3.51.14r248-2.fc8
fontconfig-2.4.2-5.fc8
libjpeg-6b-39.fc8
libXau-1.0.3-3.fc8
libxcb-1.0-3.fc8
libXpm-3.5.7-1.fc8
perl-GD-2.35-2.fc8.1
sysstat-7.0.4-3.fc8
fetchmail-6.3.8-3.fc8
libgcc-4.1.2-33
filesystem-2.4.11-1.fc8
tzdata-2007h-1.fc8
rootfiles-8.1-1.1.1
popt-1.12-3.fc8
chkconfig-1.3.36-1
ncurses-5.6-12.20070812.fc8
info-4.11-1.fc8
libselinux-2.0.37-1.fc8
e2fsprogs-libs-1.40.2-10.fc8
glib2-2.14.2-1.fc8
device-mapper-1.02.22-1.fc8
sed-4.1.5-9.fc8
gawk-3.1.5-15.fc7
libnl-1.0-0.10.pre5.4
elfutils-libelf-0.130-3.fc8
e2fsprogs-1.40.2-10.fc8
diffutils-2.8.1-17.fc8
beecrypt-4.1.2-13
slang-2.1.2-2.fc8
libcap-1.10-30
iproute-2.6.22-2.fc8
dmraid-1.0.0.rc14-4.fc8
net-tools-1.60-84.fc8
libidn-0.6.14-4
file-libs-4.21-3.fc8
ethtool-5-1.fc7
libsysfs-2.1.0-1.fc7
checkpolicy-2.0.4-1.fc8
libvolume_id-116-3.fc8
libacl-2.2.39-10.fc8
gdbm-1.8.0-27.fc7
libstdc++-4.1.2-33
grep-2.5.1-57.fc7
module-init-tools-3.4-2.fc8
rsyslog-1.19.6-3.fc8
keyutils-libs-1.2-2.fc6
openssl-0.9.8b-17.fc8
libdhcp-1.27-3.fc8
openldap-2.3.38-3.fc8
file-4.21-3.fc8
hdparm-7.7-1.fc8
hwdata-0.207-2.fc8
cracklib-dicts-2.8.10-3
fedora-release-8-3
pam-0.99.8.1-10.fc8
passwd-0.74-5.fc8
grub-0.97-19
python-libs-2.5.1-15.fc8
dbus-libs-1.1.2-7.fc8
rpm-4.4.2.2-3.fc8
util-linux-ng-2.13-3.fc8
udev-116-3.fc8
which-2.16-8
gzip-1.3.12-4.fc8
mkinitrd-6.0.19-4.fc8
audit-libs-python-1.6.2-4.fc8
policycoreutils-2.0.31-7.fc8
rpm-libs-4.4.2.2-3.fc8
kernel-2.6.23.1-42.fc8
prelink-0.4.0-1
selinux-policy-3.0.8-44.fc8
nspr-4.6.7-3.fc8
openssh-4.7p1-2.fc8
openssh-clients-4.7p1-2.fc8
openssh-server-4.7p1-2.fc8
iptables-devel-1.3.8-5.fc8
perl-libs-5.8.8-30.fc8
perl-URI-1.35-3.1
dansguardian-2.8.0.6-1.2.fc8.rf
apr-util-1.2.10-2.fc8
mailcap-2.1.25-1.fc8
bind-libs-9.5.0-16.a6.fc8
perl-DBI-1.58-2.fc8
unixODBC-2.2.12-4.fc8
postgresql-8.2.5-1.fc8
bind-chroot-9.5.0-16.a6.fc8
binutils-2.17.50.0.18-1
kernel-headers-2.6.23.1-42.fc8
glibc-devel-2.7-2
gcc-4.1.2-33
perl-Compress-Raw-Zlib-2.011-1.fc8.rf
python-iniparse-0.2.2-1.fc8
python-urlgrabber-3.0.0-3.fc8
yum-metadata-parser-1.1.2-1.fc8
livna-release-8-1
fedora-usermgmt-shadow-utils-0.10-1.fc8
fedora-usermgmt-0.10-1.fc8
clamav-data-0.93.3-1.fc9
clamav-lib-0.93.3-1.fc9
clamav-milter-sysv-0.93.3-1.fc9
clamav-milter-0.93.3-1.fc9
clamav-server-sysv-0.93.3-1.fc9
clamav-update-0.93.3-1.fc9
perl-Digest-SHA1-2.11-4.fc8
lzo-2.02-3.fc8
curl-7.16.4-8.fc8
altermime-0.3.7-2.fc6
freeze-2.5.0-7.fc6
compat-db-4.5.20-3.fc8
procmail-3.22-20.fc8
perl-Convert-UUlib-1.09-2.fc8
perl-Socket6-0.19-4.fc8.1
tmpwatch-2.9.11-2
bzip2-1.0.4-12.fc8
gnupg-1.4.7-7
perl-Net-SSLeay-1.30-5.fc8.1
perl-IO-stringy-2.110-6.fc8
perl-IO-Socket-INET6-2.51-2.fc8.1
perl-XML-NamespaceSupport-1.09-2.fc8.1
perl-IO-Compress-Zlib-2.005-2.fc8
perl-IO-Zlib-1.07-1
perl-Archive-Zip-1.20-3.fc8
perl-TimeDate-1.16-6.fc8
perl-Net-IP-1.25-4.fc8
perl-Net-Server-0.97-1.fc8
perl-Convert-BinHex-1.119-6.fc8
perl-Convert-TNEF-0.17-7.fc7
perl-Convert-ASN1-0.21-2.fc8.1
perl-HTML-Parser-3.56-2.fc8
perl-libwww-perl-5.808-3.fc8
perl-XML-LibXML-1.62001-2.fc8.3
perl-LDAP-0.34-3.fc7
perl-devel-5.8.8-30.fc8
perl-ExtUtils-Embed-1.26-30.fc8
amavisd-new-2.5.2-2.fc8
cyrus-sasl-devel-2.1.22-7
cyrus-sasl-plain-2.1.22-7
postfix-2.4.5-2.fc8
vim-common-7.1.135-1.fc8
vim-enhanced-7.1.135-1.fc8
mysql-server-5.0.45-4.fc8
aspell-0.60.5-3.fc7
php-cli-5.2.4-3
php-pdo-5.2.4-3
libtool-ltdl-1.5.24-3.fc8
freetype-2.3.5-3.fc8
libpng-1.2.22-1.fc8
libXdmcp-1.0.2-4.fc8
xorg-x11-filesystem-7.1-2.fc6
libX11-1.1.3-4.fc8
gd-2.0.35-1.fc8
squidGuard-1.2.0-15.fc7
hesiod-3.1.0-9
[root@station253 ~]#
Step 7.
You can chekc with ksvalidator command for kickstart file.
[root@station253 ~]# ksvalidator /fedora8/root/rvtest.cfg
Step 8.
Give following command and wait and have a cup of coffee or tea.
[root@station253 ~]# revisor --cli --install-dvd --model=f8-i386 --kickstart=/fedora8/root/rvtest.cfg --debug
After certain time 15 to 20 minutes you will find the custom iso image of fedora 8 in
[root@station253 ~]# ls /srv/revisor/f8-i386/iso/
F-8-i386-DVD.iso SHA1SUM
If something not work feel free to contact us : support@electromech.info