Re: Getting started

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Sunitha Kumar,
  I have prepared a step by step guide to customize the anaconda(not authoritative). Check your pathnames before proceeding. Please feel free to share your documentations(Changelogs and enhancements) and report your progress in your task.

Manilal,
Open Source Technology Team,
Centre for Development of Imaging Technology,
City centre,
Thiruvananthapuram - 695001
Telephone ++91-471-2335995

----- Original Message -----
From: Sunitha Kumar <sunithak@xxxxxxxxx>
Date: Fri, 09 Jan 2004 15:18:09 -0800
To: anaconda-devel-list@xxxxxxxxxx
Subject: Getting started

> Hi folks:
> 
> I am a newbie to anaconda, and wanted to find out what is the best place 
> to start in the sources. Any help is appreciated.
> thanks,
> sunitha
> 
> 
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list



-- 
______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org 
This allows you to send and receive SMS through your mailbox.


Powered by Outblaze

Customization of Anaconda Installer on RedHat Linux 9 / Fedora Core 1


Author : Manilal

Date : Tue Dec 23 12:13:13 IST 2003

Updated on : Sat Jan 10 10:55:18 IST 2004

I cannot assure 100% warranty in using this manual. However it works fine for me. If anyone find any variations / bugs please report to manilal@xxxxxxxxxxxxx


Requirements:

          1. RedHat/Fedora Linux Installation CD's for i386 (Both RPMS and SRPMS)

          2. i386 Machine installed with RedHat Linux 9/Fedora Core 1 (Custom installation with All packages)

          3. Minimum 3.6 GB of Hard Disk space

Step 1

Copy all the CD's to a suitable location. The work area I chose is /home/redhat/i386. If you wish to make only the binary version then no need to copy the SRPMS.


# cp /mnt/cdrom/* /home/redhat/i386/ -rf


you can ignore warnings(if any) of overwriting TRANS.TBL, COPYING, and README files.


Step 2:

Install the source rpm of anaconda. I modified only the package anaconda-images. So ...


# rpm -ivh anaconda-images-9.0-3.src.rpm


Modify the anaconda source as desired and rebuild using the rpmbuild utility.


# cd /usr/src/redhat

# rpmbuild –ba SPECS/anaconda-images.spec

Step 3

If everything is right we will have new binary in /usr/src/redhat/RPMS/i386 as well as a new source RPM in /usr/src/redhat/SRPMS. Remove the existing anaconda binary in /home/redhat/i386/RedHat/RPMS/anaconda-images-9.0-3.src.rpm


# rm /home/redhat/i386/RedHat/RPMS/anaconda-images-9.0-3.src.rpm


Copy binaries into the /home/redhat/i386/RedHat/RPMS, working directory;

# cp /usr/src/redhat/RPMS/i386/anaconda-images-9.0-3.src.rpm /home/redhat/i386/RedHat/RPMS/


Step 4

Run genhdlist to check image.


# /usr/lib/anaconda-runtime/genhdlist /home/redhat/i386


If the command is successful then there will be files such as hdlist, hdlist2 in the directory /home/redhat/i386/RedHat/base


Step 5

Build new anaconda installer images


# /usr/lib/anaconda-runtime/buildinstall --comp dist-9 --pkgorder /home/redhat/pkgorder.txt --product Your_distro --release 1 --version 1 /home/redhat/i386


If everything is Ok then you will get messages something like this:


warning: /home/redhat/i386/RedHat/RPMS/anaconda-runtime-9.0-4.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e

Building images...

warning: /home/redhat/i386/RedHat/RPMS/anaconda-runtime-9.0-4.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e

Assembling package list...

warning: /home/redhat/i386/RedHat/RPMS/anaconda-9.0-4.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e

warning: /home/redhat/i386/RedHat/RPMS/anaconda-9.0-4.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e

Expanding packages... anaconda-9.0-4.i386.rpmwarning: /home/redhat/i386/RedHat/RPMS/anaconda-9.0-4.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e

Expanding packages... anaconda-runtime-9.0-4.i386.rpmwarning: /home/redhat/i386/RedHat/RPMS/anaconda-runtime-9.0-4.i386.rpm:

V3 DSA signature: NOKEY, key ID db42a60e

Expanding packages... ash-0.3.8-8.i386.rpmwarning: /home/redhat/i386/RedHat/RPMS/ash-0.3.8-8.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e

-

-

-

Overriding busybox version of xargs

Overriding busybox version of zcat

Scrubbing trees...

Compressing .mo files in stage2 images...

Creating fontconfig cache

/usr/bin/fc-cache: "/usr/share/fonts": caching, 0 fonts, 5 dirs

/usr/bin/fc-cache: "/usr/share/fonts/bitmap-fonts": caching, 2 fonts, 0 dirs

/usr/bin/fc-cache: "/usr/share/fonts/ja": caching, 0 fonts, 1 dirs

-

-

-

Patching python library...

Removing unused python files in hdimage... done.

Cleaning ramdisk install images...

Getting package order...

Loading //lib/kbd/keymaps/i386/azerty/be-latin1.map.gz

found 7 valid keymaps

creating keymap file /tmp/keymaps.9240/be-latin1.map

Loading //lib/kbd/keymaps/i386/qwerty/bg.map.gz

found 9 valid keymaps

-

-

-

Wrote /home/redhat/i386/RedHat/base/hdstg2.img (9936k)...

Building stage2.img

Wrote /home/redhat/i386/RedHat/base/stage2.img (62628k)

Cleaning up images


Size of boot image is 4 sectors -> No emulation

Total translation table size: 2048

Total rockridge attributes bytes: 1445

Total directory bytes: 2048

Path table size(bytes): 26

Max brk space used 7000

1808 extents written (3 Mb)

Writing .discinfo file

timestamp not specified; using the current time


Hopefully, we have a new installer. Now this directory can be used for NFS installation. The following steps are relevant only if you are trying to pack the installation CDs.


Step 6

For packing the images into CD's spilt the directory into various directories. This can be easily done using the splitdistro utility.


#/usr/lib/anaconda-runtime/splitdistro -–fileorder /home/redhat/pkgorder.txt /home/redhat/ i386


The output will be something like the following:


Splitting tree...

Creating disc1...

Creating disc2...

648.0

132.592597961

1.2

10.0

504.207402039

first to move to disc2 is gnome-print-0.37-4.i386.rpm

Creating disc3...

first to move to disc3 is gnome-media-2.2.1.1-4.i386.rpm

Creating first source disc...

Creating second source disc...


Thus there will be directories such as i386-disc1, i386-disc2, i386-disc3, i386-disc4, i386-disc5 and i386-disc6 in the directory /home/redhat/.


For Fedora Core 1:


# /usr/lib/anaconda-runtime/splittree.py --arch=i386 --total-discs=6 --bin-discs=3 --src-discs=3 –release-string="Your distro V1" --pkgorderfile=/home/fedora/pkgorder.txt --distdir=/home/fedora/i386 --srcdir=/home/fedora/ --productpath=Fedora


If there are no SRPMS in your buildtree then a warning will raised indicating the failure of packaging SRPMS , which can be ignored if your not bothered about creating source CDs.


Step 7

The hdlist* files in /home/redhat/i386-disc1/RedHat/base/ are hard-linked copies of the original ones in the /home/redhat/i386/RedHat/base/ directory, and are very likely (certain!) not to work properly for cdrom installs. So they need to be re-created.

genhdlist is used again to create new hdlist files, but this time referencing the "package order catalogue" and the newly-created i386-disc[123] directory trees...

# rm -f /home/redhat/i386-disc1/RedHat/base/hdlist*


# /usr/lib/anaconda-runtime/genhdlist --withnumbers --fileorder /home/redhat/pkgorder.txt /home/redhat/i386-disc[123]


Step 8

Make the iso images for all the CD's

# cd /home/redhat/i386-disc1


# mkisofs -b images/bootdisk.img -c boot.cat -v -r -T -J -o /home/redhat/yourdistro.iso /home/redhat/i386-disc1


The output will be something like the following:


mkisofs 2.0 (i686-pc-linux-gnu)

Scanning /home/redhat/i386-disc1

Scanning /home/redhat/i386-disc1/dosutils

Scanning /home/redhat/i386-disc1/dosutils/autoboot

Scanning /home/redhat/i386-disc1/dosutils/fips15c

Scanning /home/redhat/i386-disc1/dosutils/fips15c/restorrb

Excluded: /home/redhat/i386-disc1/dosutils/fips15c/restorrb/TRANS.TBL

Scanning /home/redhat/i386-disc1/dosutils/fips15c/source

Excluded: /home/redhat/i386-disc1/dosutils/fips15c/source/TRANS.TBL

Repeat the step for creating all the other 3 images.

-

-

-

Writing: Joliet directory tree Start Block 85

Done with: Joliet directory tree Block(s) 38

-

-

-

96.57% done, estimate finish Tue Dec 23 12:06:40 2003

98.11% done, estimate finish Tue Dec 23 12:06:40 2003

99.64% done, estimate finish Tue Dec 23 12:06:42 2003

Total translation table size: 43639

Total rockridge attributes bytes: 64841

Total directory bytes: 108544

Path table size(bytes): 248

Done with: The File(s) Block(s) 326025

Writing: Ending pad block Start Block 326149

Done with: Ending pad block Block(s) 27

Max brk space used 82000

326176 extents written (637 Mb)


Step 9

Burn the image to the CD and it's ready for Installation.


Resources

http://www.linuxworks.com.au/redhat-installer-howto.html

http://www.contribs.com/contribs/rsi/howto/SME%20Anaconda%20HowTo.htm

http://www.e-smith.org/docs/howto/howto_modify_e-smith_interface_rpm.php3

http://contribs.org/contribs/dmay/mitel/howto/sme-iso-howto.html

http://www.linuxworks.com.au/PB-rhcd.html



[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux