urpmi updated kernel source but not the kernel itself(??)
MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
urpmi updated kernel source but not the kernel itself(??)
Hello,
I just ran urpmi --auto-select on my mandrake 10.1 official system. It updated a load of packages, including, I noticed, the kernel source.
After a reboot, I was surprised to find the nvidia drivers still working (I didn't think they'd like a kernel upgrade).
My kernel was 2.6.8.1-12mdk. I used to have a directory in /usr/src called linux-2.6.8.1-12mdk but that has now been replaced by linux-2.6.8.1-24mdk.
uname still reports my kernel as 2.6.8.1-12mdk. This seems to me to be a potentially serious inconsistency.
Should I be worried?
What should I do?
Why did urpmi do this to me?
That's a feature not a bug.
"urpmi --auto-select" replaces installed rpm's and with something as important as the kernel you don't
want that to happen. If the replaced kernel is buggy for some reason (or doesn't have the NVIDIA module *grin*) you're in dire straits.
I think the agreed upon way is to download the kernel manually and do a 'rpm -i kernel....rpm'
This way if the new kernel doesn't work you still have the old one intact.
It may be a "feature" but I wish I had had the opportunity to tell urpmi NOT to update the kernel!
So I suppose I'll have to find the rpm for mandrake kernel 2.6.8.1-24 and install that manually? My heart is sinking. Or perhaps I should bite the bullet and compile it myself? Now I am having a minor panic. I wish I had not got into this mess!
Can i just resinstall the 2.6.8.1-12 sources, so there is consistency between what is running and the sources? I have no complaints about 2.6.8.1-12.
just go to the command line and enter "urpmi kernel". It will display a list of available kernels to install. Just pick the "linux-2.6.8.1-24.mdk" kernel, and let it install. After a reboot, you will be in the new kernel. You will find your old kernel is still there to use, as well, if the new one doesn't work for you (although it should be fine - it's what I'm running).
Between posts I took your advice and installed the rpm of the 2.6.8.1-24 kernel. When it finished downloading and "installing" I was pleased to find I was still running the old 2.6.8.1-12 kernel, so I had a chance to look at the changes the installation made to /boot and /etc/lilo.conf.
In times past, I have found myself almost locked-out of my computer when I have introduced a new kernel, so I was highly suspicious. Anyway I rebooted to the new kernel. To my surprise, it all worked. Except the NVIDIA driver, but I do not see that as a problem, I just need to reinstall it. I have also automatically been given the option in lilo of returning to my old kernel. Thanks to someone.
In conclusion: It was not difficult. I feared things going wrong, but the linux distributions have improved enormously over the past few years, and I have to admit that I am impressed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.