Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
catalyst kmerge failure <SOLVED>
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Mon Mar 10, 2008 11:01 am    Post subject: catalyst kmerge failure <SOLVED> Reply with quote

I am attempting to make specialized boot disks for my machines. I have been able to stumble my way through certain errors and progress. However, I have run into an error that refuses to leave. While I have many questions about catalyst, the most important thing is getting on to the next step.

Here is where I am so far...
Code:
catalyst -f /etc/catalyst/pappy_test-livecd-stage2_template.spec
Catalyst, version 2.0.5
Copyright 2003-2007 Gentoo Foundation
Distributed under the GNU General Public License version 2

Using default Catalyst configuration file, /etc/catalyst/catalyst.conf
Setting sharedir to config file value "/usr/lib/catalyst"
Setting snapshot_cache to config file value "/var/tmp/catalyst/snapshot_cache"
Setting hash_function to config file value "crc32"
Setting storedir to config file value "/var/tmp/catalyst"
Setting portdir to config file value "/usr/portage"
Setting distdir to config file value "/usr/portage/distfiles"
Setting options to config file value "autoresume distcc kerncache pkgcache seedcache snapcache metadata_overlay"
Autoresuming support enabled.
Distcc support enabled.
Kernel cache support enabled.
Package cache support enabled.
Seed cache support enabled.
Snapshot cache support enabled.
Use of metadata_overlay module for portage enabled.
Envscript support enabled.

        WARNING: No value set for key livecd/modblacklist...deleting

        WARNING: No value set for key livecd/root_overlay...deleting

        WARNING: No value set for key livecd/bootargs...deleting

        WARNING: No value set for key livecd/overlay...deleting

        WARNING: No value set for key livecd/gk_mainargs...deleting

        WARNING: No value set for key gamecd/conf...deleting

        WARNING: No value set for key livecd/splash_type...deleting

        WARNING: No value set for key boot/kernel/gentoo/machine_type...deleting

        WARNING: No value set for key livecd/xdm...deleting

        WARNING: No value set for key livecd/rcadd...deleting

        WARNING: No value set for key livecd/xinitrc...deleting

        WARNING: No value set for key livecd/users...deleting

        WARNING: No value set for key boot/kernel/gentoo/gk_kernargs...deleting

        WARNING: No value set for key livecd/unmerge...deleting

        WARNING: No value set for key livecd/empty...deleting

        WARNING: No value set for key boot/kernel/gentoo/extraversion...deleting

        WARNING: No value set for key livecd/splash_theme...deleting

        WARNING: No value set for key livecd/motd...deleting

        WARNING: No value set for key livecd/rm...deleting

        WARNING: No value set for key boot/kernel/gentoo/packages...deleting

        WARNING: No value set for key boot/kernel/gentoo/console...deleting

        WARNING: No value set for key livecd/linuxrc...deleting

        WARNING: No value set for key livecd/rcdel...deleting

        WARNING: No value set for key livecd/fsscript...deleting

        WARNING: No value set for key portage_overlay...deleting

        WARNING: No value set for key livecd/readme...deleting

        WARNING: No value set for key livecd/xsession...deleting
Using target: livecd-stage2
Building natively for x86
Caching snapshot to /var/tmp/catalyst/snapshot_cache/latest/
The autoresume path is /var/tmp/catalyst/tmp/default/.autoresume-livecd-stage2-pentium3-2008.0/
Resume point detected, skipping target path setup operation...
Location of the package cache is /tmp/packages
Location of the kerncache is /tmp/kernel
Checking for processes running in chroot and killing them.
--- Running action sequence: unpack
Resume point detected, skipping unpack operation...
--- Running action sequence: unpack_snapshot
Valid snapshot cache, skipping unpack of portage tree ...
--- Running action sequence: config_profile_link
Resume point detected, skipping config_profile_link operation...
--- Running action sequence: setup_confdir
Resume point detected, skipping setup_confdir operation...
--- Running action sequence: portage_overlay
--- Running action sequence: bind
--- Running action sequence: chroot_setup
Resume point detected, skipping chroot_setup operation...
--- Running action sequence: setup_environment
--- Running action sequence: run_local
--- Running action sequence: build_kernel
copying pre-kmerge.sh to /var/tmp/catalyst/tmp/default/livecd-stage2-pentium3-2008.0/tmp/
copying chroot-functions.sh to /var/tmp/catalyst/tmp/default/livecd-stage2-pentium3-2008.0/tmp/
Running pre-kmerge.sh in chroot /var/tmp/catalyst/tmp/default/livecd-stage2-pentium3-2008.0/
chroot: cannot run command `/tmp/pre-kmerge.sh': No such file or directory

!!! catalyst: Runscript pre-kmerge failed


Traceback (most recent call last):
  File "modules/generic_stage_target.py", line 1218, in build_kernel
    "Runscript pre-kmerge failed",env=self.env)
  File "/usr/lib/catalyst/modules/catalyst_support.py", line 486, in cmd
    raise CatalystError,myexc
CatalystError: <unprintable instance object>
None

!!! catalyst: build aborting due to kernel build error.

!!! catalyst: Error encountered during run of target livecd-stage2

Catalyst aborting....


The file does exist, it is executable, and just in case it was looking somewhere else, I also copied said file into the /tmp directory outside the environment. No dice.

Any and all help will be greatly appreciated. I thank one and all in advance for their time and consideration.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Tue Mar 11, 2008 9:38 am    Post subject: Reply with quote

A little time spent doing research on catalyst helped me find the problem. Now, it works for me, and I have the boot disk to prove it!

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
Jupiter1TX
Guru
Guru


Joined: 24 Feb 2006
Posts: 546
Location: 3rd Rock

PostPosted: Wed Mar 12, 2008 1:51 am    Post subject: Reply with quote

pappy_mcfae wrote:
A little time spent doing research on catalyst helped me find the problem. Now, it works for me, and I have the boot disk to prove it!

Blessed be!
Pappy


It would really help others if you also posted the solution.
_________________
Core i7 920 D0 | Asus P6T DLX | Patriot Viper 1600 6GB | Antec Quattro 850W
Geforce 8800GTX OC2 768MB | Dell 22" LCD | Koolance Exos2/Swiftech GTZ
GCC 4.6.1 | 3.7.x-geek | Xorg-7.4-x | KDE-4.7.x | Compiz
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Wed Mar 12, 2008 4:32 am    Post subject: Reply with quote

I'll go you one better. I am currently working on a how-to as a result of my experience in using catalyst. I would post it here, but it's a bit on the lengthy side. It needs a bit more editing.

However, to answer your question directly, the problem involved me trying to use a stage2.spec file when I hadn't set up the proper stage1.spec file first. You can't do the second step before the first, can you?

Catalyst does its job in two steps. The first one sets up a seed environment just like the one you set up manually when doing a standard non-GUI install. Catalyst then installs desired programs into that seed environment.

The second step takes this seed environment, compiles the kernel, as well as programs that need to be compiled against it. It then compresses the seed environment using squashfs. Finally, turns it into an .iso file using genisoimage (mkisofs renamed).

I was trying to do step two on a completely empty seed environment. I thought I was setting up the seed environment. Ooops! As soon as I am done with the document, I'll submit it for consideration as a legitimate how-to.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum