[CentOS] buildinstall problems

treed at ultraviolet.org treed at ultraviolet.org
Thu Aug 28 20:33:07 UTC 2008


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.bin


More information about the CentOS mailing list