Re: [CentOS] buildinstall cannot find modules

2008-09-09 Thread treed
Nobody has any idea on this one? Can someone perhaps recommend another
list or forum where more people might be familiar with buildinstall?

Perhaps I'll try the anaconda list...

On Thu, Sep 04, 2008 at 06:21:23PM -0700, [EMAIL PROTECTED] spake thusly:
 When using buildinstall and CentOS 5.2 to create my own CD minus a bunch
 of unneeded RPM's and plus a few of my custom RPM's I find that the
 install CD that gets build does not install an initrd which renders the
 system unbootable.  I also notice that when I run buildinstall with the
 -debug option it says:
 
 unpacking
 /var/www/html/centos/5.2/os/x86_64/CentOS/kernel-2.6.18-92.el5.x86_64.rpm.x86_64
 Building initrd.img
 Module 3c501 not found in kernel rpm
 Module 3c503 not found in kernel rpm
 Module 3c505 not found in kernel rpm
 
 and so on for many kernel modules. I notice that the filename it says it
 is unpacking ends with .x86_64.rpm.x86_64. Is that normal? I google'd and
 found someone else saying theirs did the same thing. Could this be related
 to why I'm not ending up with an initrd being installed?
 
 -- 
 Tracy Reed
 http://tracyreed.org



 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


-- 
-- 
Tracy Reed
http://tracyreed.org


pgpW1vtEJSv1i.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Problems making custom isolinux.cfg

2008-09-04 Thread treed
I have added a few custom RPM's to my CentOS 5.2 CD, dropped a
kickstart.cfg file in the root of the CD, and now want to change the
isolinux.cfg in the boot.iso so that it will automatically do a kickstart
install when the CD boots up.

I am using buildinstall to make the ISO. I edited the isolinux.cfg in
/isolinux in my CentOS 5.2 distribution tree off of which I am building my
ISO. 

But after buildinstall runs the isolinux.cfg is changed back! 

Where is it getting the original from? Where should I be changing it to
get my modified isolinux.cfg into my cd?

Just to get around the isolinux.cfg issue manually I tried booting and at
the prompt I say:

linux ks=cdrom:/kickstart.cfg

But it says that it cannot find the kickstart.cfg file. Is it expecting it
in the root of the boot.iso or of the CD? I put it in the root of the CD.
I can mount the CD and see that it is there. I can't figure out how to put
it in the root of the boot.iso (if it even needs to go there) because
apparently that is getting remade by the buildinstall also and I'm not
sure where it is getting the contents from.

Here is the entire process I use for building and burning the ISO:

/usr/lib/anaconda-runtime/buildinstall --version 5 --product CentOS --comps
/var/www/html/centos/5.2/os/x86_64/repodata/comps.xml --release MyCentOS-5
--prodpath CentOS /var/www/html/centos/5.2/os/x86_64

mkisofs -R -J -T -r  -l -d -allow-multidot -allow-leading-dots -no-bak
-o /var/www/html/centos/5.2/isos/MyCentOS-5.2-x86_64.iso
-b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot
-boot-load-size 4 -boot-info-table /var/www/html/centos/5.2/os/x86_64/

cdrecord blank=fast -dev=/dev/sg1 -v -eject 
/var/www/html/centos/5.2/isos/MyCentOS-5.2-x86_64.iso

Any help would be greatly appreciated!

-- 
Tracy Reed
http://tracyreed.org


pgpJbcwo2xe8y.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] buildinstall cannot find modules

2008-09-04 Thread treed
When using buildinstall and CentOS 5.2 to create my own CD minus a bunch
of unneeded RPM's and plus a few of my custom RPM's I find that the
install CD that gets build does not install an initrd which renders the
system unbootable.  I also notice that when I run buildinstall with the
-debug option it says:

unpacking
/var/www/html/centos/5.2/os/x86_64/CentOS/kernel-2.6.18-92.el5.x86_64.rpm.x86_64
Building initrd.img
Module 3c501 not found in kernel rpm
Module 3c503 not found in kernel rpm
Module 3c505 not found in kernel rpm

and so on for many kernel modules. I notice that the filename it says it
is unpacking ends with .x86_64.rpm.x86_64. Is that normal? I google'd and
found someone else saying theirs did the same thing. Could this be related
to why I'm not ending up with an initrd being installed?

-- 
Tracy Reed
http://tracyreed.org


pgpQCbMVdUkym.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] buildinstall problems

2008-08-28 Thread treed
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


pgpPjsvUUQlLN.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] buildinstall problems

2008-08-28 Thread treed
On Thu, Aug 28, 2008 at 01:33:07PM -0700, [EMAIL PROTECTED] 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


pgp4t9kfE5Tou.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos