On 13 December 2010 03:17, David C. Rankin <drankinatty@xxxxxxxxxxxxxxxxxx> wrote: > I guess what I don't know is whether simply copying the existing files in the > manner set out below will screw up any hard-coded links to the old kernel file > names. (like any links in the copied System.map26-dcr that still point to the > original System.map26, etc..) So do you know if it is possible to preserve the > existing kernel on the system as kernel (-dcr), by doing something like: > snip < Of course. I'd guess it's the normal way to do it. Think of it as a manual kernel installation: https://wiki.archlinux.org/index.php/Kernel_Compilation#Traditional > I will definitely use your script to remake the existing kernel package into a > custom -dcr package and give that a try. The script was great at helping me > along in this process. (I still need to unravel all the bsdtar options). Also, I > tweaked the top part of the script to make it a bit more generic and to provide > a bit of usage information on error. If you like, here are a few bits you could > incorporate: > snip < Sure, consider it done. The final tar+compress is adapted from makepkg, btw.