Is this possible. I did my first one yesterday in order to get my iPod mini to work with the EL kernel. It worked well. Everything went smoothly, but I don't like what I named it. So I'd like to take one more shot at it. If I do, is there a way to remove the old one cleanly? Modules and everything. Also, if do recompile the kernel again, do I need fresh source, or can I just do a make clean, rename the setting in the Makefile for the name, then go through all the usual steps. Thanks, Preston
On 5/9/05, Preston Crawford <me at prestoncrawford.com> wrote:> Is this possible. I did my first one yesterday in order to get my iPod > mini to work with the EL kernel. It worked well. Everything went > smoothly, but I don't like what I named it. So I'd like to take one more > shot at it. If I do, is there a way to remove the old one cleanly? > Modules and everything.Sure, it's easy. Just remove the /lib/modules/KERNEL_NAME directory, and then the kernel that you created under /boot. Also remove the initrd in /boot you created (if you created one). You don't HAVE to remove all this though -- it won't cause any problems being there (other than extra crap on your system). You should also remove the kernel entry in /boot/grub/grub.conf.> Also, if do recompile the kernel again, do I need fresh source, or can I > just do a make clean, rename the setting in the Makefile for the name, > then go through all the usual steps.You recompile from the same source. Before I compile a fresh kernel I usually do a "make distclean && make mrproper". That will clean up the sources. -Ryan
Preston Crawford wrote:> Is this possible. I did my first one yesterday in order to get my iPod > mini to work with the EL kernel. It worked well. Everything went > smoothly, but I don't like what I named it. So I'd like to take one more > shot at it. If I do, is there a way to remove the old one cleanly? > Modules and everything.If you built RPM package, and installed it that way, rpm -q kernel to see how it is named, than rpm -e kernel-whatever-is-your-version. If you did make install or something similar to install it, than simply remove the files from the disk (rm -rf). You want to remove /boot/config-version, /boot/initrd-version.img, /boot/System.map-version, /boot/vmlinuz-version and /lib/modules/version. Also, modify your boot loader to reflect the changes (either /boot/grub/grub.conf or /etc/lilo.conf).> Also, if do recompile the kernel again, do I need fresh source, or can I > just do a make clean, rename the setting in the Makefile for the name, > then go through all the usual steps.Make clean should do it. -- Aleksandar Milivojevic <amilivojevic at pbl.ca> Pollard Banknote Limited Systems Administrator 1499 Buffalo Place Tel: (204) 474-2323 ext 276 Winnipeg, MB R3T 1L7
On Mon, 2005-05-09 at 07:50 -0700, Preston Crawford wrote:> Is this possible. I did my first one yesterday in order to get my iPod > mini to work with the EL kernel. It worked well. Everything went > smoothly, but I don't like what I named it. So I'd like to take one more > shot at it. If I do, is there a way to remove the old one cleanly? > Modules and everything. > > Also, if do recompile the kernel again, do I need fresh source, or can I > just do a make clean, rename the setting in the Makefile for the name, > then go through all the usual steps. >Yes ... make clean, change the name in the Makefile, redo what you want and build. There is no way to remove it automatically (if you didn;t make it as an RPM) ... but it should be fairly easy since all the modules should be in /lib/modules/kernel_name (so after you reboot on your new kernel and it works, remove that /lib/modules directory) ... and everything else you need to remove should be in /boot (the initrd-xxxx.img and vmlinuz- xxxxx). -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20050509/5252164a/attachment-0004.sig>