Anaconda Customization (was Re: Customized Distribution)

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

 




Just as an aside, when I tried to build my own customized distribution, I gave up on following what scant documentation was available (mainly on the wiki) and just read the source for documentation.  I highly recommend it if you can read python. 

The failure point seems to be familiar, and I'm pretty sure that it's a CentOS patch to anaconda that's causing the problem.  Thanks for reminding me to submit this to the CentOS guys.

In anaconda-centos-splittree_allow_missing_RPMSdir.patch there is a patch that changes this line:

-                p = os.popen('find %s/ -type f -not -name .discinfo' % self.dist_dir, 'r')
to this line
+                p = os.popen('find %s/ -type f -not -name .discinfo -not -name *.rpm' % self.dist_dir, 'r')

which breaks on my machine.  I honestly have no idea how CentOS builds with this patch, unless they're using a weird version of find.

I changed the line to this:
+                p = os.popen('find %s/ -type f -not -name .discinfo -not -name \'*.rpm\'' % self.dist_dir, 'r')

And that got things working again

HTH.  Let me know if this works.  Are there any CentOS developers on this list who can tell me how to submit a patch?

Matt




On Mon, 2008-05-26 at 17:19 +0330, Ali Majdzadeh wrote:
Hello All
Following the instructions mentioned at the following address:
http://fedoraproject.org/wiki/Anaconda/Customization
I am trying to build a custom distribution based on CentOs 5.01.
I have performed the following steps:
$ mount /dev/cdrom /mnt
$ mkdir ~/mydistro
$ cp -avp /mnt/* ~/mydistro
$ mv ~/mydistro/CentOS ~/mydistro/mydistro
$ cp /mnt/.discinfo ~/mydistro
$ createrepo -g ~/mydistro/repodata/comps.xml ~/mydistro/mydistro
$ mkdir -p ~/mydistro/mydistro/base
$ cp -avp ~/mydistro/repodata/* ~/mydistro/mydistro/base
$ buildinstall --version 2 --product "MyDistro" --release "MyDistro Linux" --prodpath mydistro ~/mydistro
$ rm -Rf ~/mydistro/.olddata
$ pkgorder ~/mydistro i386 mydistro | tee ~/mydistro/pkgfile
In the last step, i get the following error:
kernel-xen-2.6.18-53.el5.i686.rpm
kernel-PAE-devel-2.6.18-53.el5.i686.rpm
kernel-debug-devel-2.6.18-53.el5.i686.rpm
kernel-PAE-2.6.18-53.el5.i686.rpm
kernel-xen-devel-2.6.18-53.el5.i686.rpm
kernel-debug-2.6.18-53.el5.i686.rpm
kernel-2.6.18-53.el5.i686.rpm
kernel-doc-2.6.18-53.el5.noarch.rpm
kernel-headers-2.6.18-53.el5.i386.rpm
kernel-devel-2.6.18-53.el5.i686.rpm
Traceback (most recent call last):
  File "/usr/lib/anaconda-runtime/pkgorder", line 164, in ?
    addGroups(ds, ["core", "base", "text-internet"])
  File "/usr/lib/anaconda-runtime/pkgorder", line 104, in addGroups
    processTransaction(ds)
  File "/usr/lib/anaconda-runtime/pkgorder", line 76, in processTransaction
    ds.populateTs(keepold=0)
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 150, in populateTs
    self.downloadHeader(txmbr.po)
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 774, in downloadHeader
    raise Errors.RepoError, saved_repo_error
yum.Errors.RepoError: failure: CentOS/kudzu-1.2.57.1.15-1.el5.centos.i386.rpm from anaconda: [Errno 256] No more mirrors to try.

Any ideas? Why does it try to check the yum mirrors? Is there anyway to perform the operation locally?
Thanks in advance.

Kind Regards
Ali Majdzadeh Kohbanani
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[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