On Tuesday 14 October 2003 14:32, Peter Ruskin wrote:
> On Tuesday 14 Oct 2003 02:57, Chris I wrote:
> >
> > 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
>
> Interesting, but I don't think it would work.  nvidia.o gets
> installed to /lib/modules/`uname -r` so linking /usr/src/linux to a
> different source won't make any difference - it looks for the running
> kernel.

No it looks /usr/src/linux
I know. because I allways remerge nvidia-kernel after I have compiled 
new kernel.

> > You could copy just the nvidia modules, which is probably a little
> > saner.
>
> Then you get "unresolved symbols" messages.

He simply meant that copy the nvidia module of the first emerge to safe 
place then make the module for the other kernel and restore the copied 
nvidia module back to where it was. Ie preventing the unmerge of the 
old version from deleting the module permanently.

> > 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.
>
> That's worth a try, thanks.

It wont work.

--oneshot only lefts the world addition, but it does not differ in any 
other way from an emerge without it.



If you really want to safe those modules add /lib/modules to your 
CONFIG_PROTECT and then all modules which would be deleted by an 
unmerge wont be deleted.

Now that etc-update supports auto merging the current kernel (/usr/src/
linux) will be even updated without you needing to make anything, 
because the mtime, size and md5 sum of the nvidia module is the same as 
the earlier install and thus etc-update will auto update it.



--
[EMAIL PROTECTED] mailing list

Reply via email to