On Monday 13 Oct 2003 23:29, Ernie Schroder wrote: > On Monday 13 October 2003 05:42 pm, Peter Ruskin wrote: > > On Monday 13 Oct 2003 21:54, mathieu perrenoud wrote: > > > nvidia compile against the kernel pointed by the link > > > /usr/src/linux > > > > > > 1. link /usr/src/linux to the 1st kernel sources > > > 2. emerge nvidia-kernel > > > 3. link to the second kernel > > > 4. emerge nvidia-kernel > > > > Aaaah, but when portage has emerged nvidia-kernel to the second > > kernel it removes the first one. This is just ridiculous but > > that's what happens. > > > > Peter > > Would --noreplace keep this dog at bay?
No, that's for something else. I really don't know how matthieu can do it: there is a long-standing bug about portage's inability to handle multiple installed kernels - http://bugs.gentoo.org/show_bug.cgi?id=1477
I seem to remember that back when I used an nvidia card, they put the kernel version in the slot number. Does portage not support this anymore?
One could get around this in two ways that I can come up with from the top of my head. With cp:
cd /usr/src && ln -sf KERNEL1 linux emerge nvidia-kernel cp -a /lib/modules/KERNEL1 /lib/modules/KERNEL1.with_nvidia rm linux && ln -sf KERNEL2 linux emerge nvidia-kernel rm -rf /lib/modules/KERNEL1 cp -a /lib/modules/KERNEL1.with_nvidia /lib/modules/KERNEL1
You could copy just the nvidia modules, which is probably a little saner.
Another way that should be better, and easier, but still not ideal would be to emerge nvidia-kernel with --oneshot. The package would not be added to world, and I would assume (possibly incorrectly, I have not looked at the source) the package's files would not be logged by portage.
--
Chris I
There are two kinds of egotists: 1) Those who admit it 2) The rest of us
pgp00000.pgp
Description: PGP signature
