RE: Custom distro

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

 



> -----Original Message-----
> From: PrasannaKumar [mailto:prasanna_k@xxxxxxxxxxxx] 
> Sent: 29-10-2002 14:09 
> Subject: Custom distro

> I have burnt a CD with minimal RPMS and got n iso image.
> But i want to replace the Redhat with my own. So i downloaded the 
> anaconda-7.3.7.src.rpm
> but as i dont have python knowledge, how can make use of the 
> above rpm?
> using idle editor , can i make something???

I've found the following to be quite a reliable way to modify the
installation:

First install the src package by issuing the command:
rpm -ivh anaconda-7.3.7.src.rpm

This puts the source tar-ball in /usr/src/redhat/SOURCE and the spec-file
in /usr/src/redhat/SPEC

Second untar the source with the command:
tar xjf anaconda-7.3.7.tar.bz2

Make two copies of the unpacked directories, one with the original name,
the other with your own addition, like anaconda-7.3.7 and
anaconda-7.3.7-prasanna.

After this make a copy of the spec-file with a similar naming ie.
anaconda-prasanna.spec

Now the objective is to create a patch from the difference of the
original and the modified source-directory, add it to the modified
spec-file and from that create a modified set of rpms to be installed
and used to create new ISO-images.

Most of the changes do not require python knowledge, for example if
we want to replace the RedHat CDROM-path, we can do it by recursively
replace the string RedHat/ in the
/usr/src/redhat/SOURCE/anaconda-7.3.7-prasanna
with the command

find /usr/src/redhat/SOURCE/anaconda-7.3.7-prasanna -type f -exec \
replace "RedHat/" "Prasanna/" -- {} \;

(The replace command comes with the mysql-packages and was quite
a saver when I did this myself)
After which we create a new patch-file with the commands:

cd /usr/src/redhat/SOURCE
diff -urN anaconda-7.3.7 anaconda-7.3.7-prasanna > anaconda-prasanna.patch

And add the patch to the modified spec-file. Add the following row under
the BuildRoot:-line

Patch: anaconda-prasanna.patch

And  between the %setup-q and %build add the following line:

%patch -p1

Also you can increase the release-number so the installation won't
warn of existing packages, also you can add an identifier to
the release-number (most distributions do this to differentiate
the rpm from Red Hats).

Now the new spec can be used to create new anaconda-packages,
run the commands:

cd /usr/src/redhat/SPEC
rpm -ba anaconda-prasanna.spec

And install the modified rpms from /usr/src/redhat/RPMS/i386/
directory. Also remember to copy and replace the anaconda
rpm-packages  to your installation-directory.

BTW Changing all the places where Red Hat is mentioned is
a bit more challenging, some of the po-files have the string
split up on two lines, so it requires some manual work. Also
be careful not to replace the addresses, as these usually are
used in copyright texts. Here the grep-commands are helpful:

cd /usr/src/redhat/SOURCE/anaconda-7.3.7-prasanna
grep -r "Red Hat, Inc" *
grep -r "Red Hat" *
grep -r " Red" *
grep -r "Hat, Inc" *

In 8.0 you also need to make new versions of the comps-extras
if you intend to change the CDROM-path.

Poltsi

_________________________________________
Paul-Erik Törrönen
Cardinal Information Systems Ltd
Pursimiehenkatu 29-31 C, 00150 Helsinki, FINLAND
E-mail: paul-erik.torronen@xxxxxxxxxxx
Mobile: +358 (0) 40 703 1231
Phone: +358 (0) 424 162 4204
Fax: +358 (0) 424 162 4207
Web: <www.cardinal.fi>

____________________________________________________________________________
_____
PLEASE NOTE: The information contained in this message or any of its
attachments may be privileged and confidential
and intended for the exclusive use of the addressee. If you are not the
addressee any disclosure, reproduction,
distribution or other dissemination or use of this communication is strictly
prohibited





[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