Hello all! I am trying to make a stripped down CentOS 5.2 distro which will all fit on a single CD containing just the base and a few other packages I need. I run buildinstall like so: sudo /usr/lib/anaconda-runtime/buildinstall --debug --version 5 --product CentOS --comps /var/www/html/centos/5.2/os/x86_64/repodata/comps.xml --release My-CentOS-5.2 --prodpath CentOS /var/www/html/centos/5.2/os/x86_64 and when I do so I run into the following errors: Expanding packages... retrieving timezones Creating nsswitch.conf Creating libuser.conf Creating fedorakmod.conf Creating multipath.conf Fixing up /etc/man.config to point into /mnt/sysimage Running mkfontdir... Creating SELinux policy... libsemanage.semanage_install_sandbox: genhomedircon returned error code 1. Getting pango modules Getting gtk2 input method modules Getting gtk2 gdk-pixbuf loaders Scrubbing trees... /tmp/treedir.9508/image-template cp: cannot create regular file `/tmp/treedir.9508/image-template/usr/bin/raidstart': No such file or directory cp: cannot create regular file `/tmp/treedir.9508/image-template/usr/bin/raidstop': No such file or directory cp: cannot create regular file `/tmp/treedir.9508/image-template/usr/bin/losetup': No such file or directory cp: cannot create regular file `/tmp/treedir.9508/image-template/usr/bin/pump': No such file or directory cp: cannot create regular file `/tmp/treedir.9508/image-template/usr/bin/list-harddrives': No such file or directory cp: cannot create regular file `/tmp/treedir.9508/image-template/usr/bin/kudzu-probe': No such file or directory cp: cannot create regular file `/tmp/treedir.9508/image-template/usr/bin/loadkeys': No such file or directory cp: cannot create regular file `/tmp/treedir.9508/image-template/usr/bin/mknod': No such file or directory cp: cannot create regular file `/tmp/treedir.9508/image-template/usr/bin/syslogd': No such file or directory mv: cannot move `/tmp/treedir.9508/image-template/usr/sbin/anaconda' to `/tmp/treedir.9508/image-template/usr/bin/anaconda': No such file or directory ln: creating symbolic link `/tmp/treedir.9508/image-template/bin/sh' to `busybox': No such file or directory ERROR: directory missing: /tmp/treedir.9508/image-template/bin Aborting instroot creation... Creating repository metadata... When I look in /tmp/treedir.9508/image-template I notice that the bin directory indeed does not exist. I've googled and the closest thing I can find to my problem is this: http://osdir.com/ml/redhat.anaconda.devel/2002-07/msg00010.html in that he says the bin dirs are missing also but he says one is a file and I don't have anything named bin there at all. He also gets some different errors as a result of bin being missing it seems. My repository contains (among many others) the following packages which would seem to be relevant: anaconda-11.1.2.113-1.el5.centos.2.x86_64.rpm anaconda-runtime-11.1.2.113-1.el5.centos.2.x86_64.rpm busybox-1.2.0-4.el5.centos.x86_64.rpm busybox-anaconda-1.2.0-4.el5.centos.x86_64.rpm busybox-anaconda-1.2.0-4.el5.centos.x86_64.rpm And while I'm here, another question: What might cause this selinux error which gets generated (as seen above): libsemanage.semanage_install_sandbox: genhomedircon returned error code 1. If I point this same buildinstall command at a CentOS repo that contains all of the rpm's that CentOS normally ships with the build proceeds without error. No missing bin and no selinux error. So I must be missing an rpm. But I'm not sure which one and I need to get this paired down to a single CD so I can't just dump them all in. Thanks for any help you can provide! -- Tracy Reed http://tracyreed.org -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20080828/2c8616ae/attachment-0005.sig>
On Thu, 2008-08-28 at 13:33 -0700, treed at ultraviolet.org wrote:> Hello all! > > I am trying to make a stripped down CentOS 5.2 distro which will all fit > on a single CD containing just the base and a few other packages I need.I've not done this, but there have been several threads about this topic. Since the experienced folks might have gone home already, I thought I would use my (in)famous memory to mention a few things I recall they might say. 1. The CentOS wiki has a lot of useful guides and FAQS. Be sure you check them out. 2. Use the list search features to find a couple of the threads posted about "stripped", "DVD", "minimal CentOS", etc. 3. When searching using google, you can use the "site" restriction to get just CentOS site stuff. That saves time sometimes. 4. If you've done the above, please forgive - I'm just hoping to save you some time. <snip> -- Bill
On Thu, Aug 28, 2008 at 01:33:07PM -0700, treed at ultraviolet.org spake thusly:> I am trying to make a stripped down CentOS 5.2 distro which will all fit > on a single CD containing just the base and a few other packages I need.As usual, I had to post this to the list before I would be able to discover the problem myself only minutes later despite having worked the issue for hours previously. I stumbled upon this page: https://bugzilla.fedora.us/wiki/Anaconda/BuildinstallPackageRequirements Which documents what is required for buildinstall to work. I ran down the list copying in everything that I was missing which turned out to be fairly extensive: beecrypt-4.1.2-10.1.1.x86_64.rpm bogl-0.1.18-11.2.1.el5.1.x86_64.rpm bogl-bterm-0.1.18-11.2.1.el5.1.x86_64.rpm comps-extras-11.1-1.1.el5.centos.noarch.rpm elfutils-libelf-0.125-3.el5.x86_64.rpm esound-0.2.36-3.x86_64.rpm fonts-ISO8859-2-* gdk-pixbuf-0.22.0-25.el5.x86_64.rpm gnome-python2-2.16.0-1.fc6.x86_64.rpm gnome-python2-canvas-2.16.0-1.fc6.x86_64.rpm krb5-libs-1.6.1-25.el5.x86_64.rpm libacl-2.2.39-3.el5.x86_64.rpm libart_lgpl-2.3.17-4.x86_64.rpm libattr-2.4.32-1.1.x86_64.rpm libgnome-2.16.0-6.el5.x86_64.rpm libgnomecanvas-2.14.0-4.1.x86_64.rpm libjpeg-6b-37.x86_64.rpm libstdc++-4.1.2-42.el5.x86_64.rpm libxml2-2.6.26-2.1.2.1.x86_64.rpm libxml2-python-2.6.26-2.1.2.1.x86_64.rpm lvm2-2.02.32-4.el5.x86_64.rpm ncurses-5.5-24.20060715.x86_64.rpm newt-0.52.2-10.el5.x86_64.rpm openssl-0.9.8b-10.el5.x86_64.rpm pam-0.99.6.2-3.27.el5.x86_64.rpm popt-1.10.2-48.el5.x86_64.rpm pygtk2-2.10.1-12.el5.x86_64.rpm python-2.4.3-21.el5.x86_64.rpm pyxf86config-0.3.31-2.fc6.x86_64.rpm redhat-artwork-5.1.0-26.el5.centos.x86_64.rpm rhpl-0.194.1-1.x86_64.rpm sed-4.1.5-5.fc6.x86_64.rpm slang-2.0.6-4.el5.x86_64.rpm tcp_wrappers-7.6-40.4.el5.x86_64.rpm urw-fonts-2.3-6.1.1.noarch.rpm vnc-server-4.1.2-9.el5.x86_64.rpm I'm not sure which ones exactly solved the specific problems I asked about before but the bin directory gets created and the anaconda/busybox stuff now works. The SE Linux related error also went away. So now I have to ask the next question before I can stumble across the answer myself: The above url lists packages required for both character (text) and graphical installs. I really only want to do a text install and would prefer to remove all of the X related stuff. But I don't see how to make buildinstall omit the graphical stuff. Anyone know? Thanks! -- Tracy Reed http://tracyreed.org -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20080828/543e02bb/attachment-0005.sig>