Hi,
Again i got same problem. I got confused about anaconda now.
Firstly,
1.Does the base system need anaconda.rpm & anaconda-runtime inside RedHat/RPMS directory ???
I maked a patch file and changed the summary section of spec file too. I rebuilt the package as a whole
and still when i query the rpm inside /RPMS/i386 dir,using rpm -qip , it has not replaced the occurrences
of RedHat in the description of the RPM.
I burnt the cd, even i am getting old installer :( :( (Red hat word has not got replaced)
Even i tried uninstalling anaconda & runtime in my system and installed the fresh build version of
runtime in my system and ran buildinstall. But no hope.
Finally as the following hint given by Poltsi (can u pl clear ur statements?), has got some ambiguity like
" And add the patch to the modified spec-file. Add the following row under the BuildRoot:-line" .
Here modified spec-file refers to anaconda-prasanna.spec or anaconda.spec ?
and in the Patch section ? should i need to give the full path of the patch file ?
Can u help me out ?
Guru.
"Arise,Awake, and stop not till the goal is reached - Swami vivekananda."
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=20
anaconda-7.3.7.src.rpm
but as i dont have python knowledge, how can make use of the=20
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-fil=
e
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.pat=
ch
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