At the moment I have 2 kernels (called linux-2.4.20-win4lin+preempt and linux-2.4.20-win4lin-r1-pnr) - I want to use both regularly, but: Each time I boot the other one I have to emerge nvidia-kernel nvidia-glx alsa-driver lm_sensors ...which unmerges modules of nvidia-kernel nvidia-glx alsa-driver lm_sensors for the previous kernel ...and reboot. I've tried setting AUTOCLEAN="no" but that doesn't prevent this happening. I've added the following to /etc/conf.d/local.start - I even added it to the end of /etc/init.d/checkroot but neither helps: ebegin "Ensuring that /usr/src/linux is linked to running kernel..." if [ "$( /usr/bin/file /usr/src/linux | grep 'symbolic link')" != "" ] ; then /bin/rm -f /usr/src/linux /bin/ln -sf /usr/src/linux-$(/bin/uname -r) /usr/src/linux fi eend $? "Failed to link /usr/src/linux-$(/bin/uname -r) to /usr/src/linux" The nvidia-kernel ebuild contains the following (which obviously is not working): # The slot needs to be set to $KV to prevent unmerges of # modules for other kernels. LICENSE="NVIDIA" SLOT="${KV}"
Workaround after building kernel: for package in {nvidia-kernel,alsa-driver,lm_sensors} ; do echo "Removing installation records for $package from /var/db/pkg/" rm -Rf /var/db/pkg/$(epm -qaG|grep $package) echo "Emerging $package" emerge $package done
*** This bug has been marked as a duplicate of 1477 ***