Re: kernel recompile - correct syntax
--- Robert Storey <y2kbug@ms25.hinet.net> escribió:
>
> I'm writing an article about Debian which will be published in a few days (on
> a well-known GNU/Linux web site). I'm trying to work out the best way to
> recompile a kernel. I don't want to give out an misinformation, so I need to
> be sure about the following...
>
> To compile a kernel, I originally thought that all one needed to do (to
> generate a deb file) was this:
>
> "make-kpkg clean kernel_imag"
>
> I walked this past a Debian guru, who sent me this reply:
>
> I suggest that you get people to use a --revision flag for
> make-kpkg and also an
> --append-to-version=-<hostname><revision> so that things
> will work the way they expect wrt LinuxOLD. If you dont use
> --append-to-version and just increment the revision then the
> new kernel when you install it will overwrite the current
> one and the current one will not become LinuxOLD. You need
> to change the version in order for the Linux/LinuxOLD thing
> to work as you might expect.
>
> I'm a little unclear about his syntax. I looked in file
> /usr/share/doc/kernel-package/README.gz
>
> "make-kpkg --append-to-version -custom.${VER} --revision custom.${VER}
> clean kernel_image"
>
> And I assume here that ${VER} means a number I must supply (1.0 or 10, or
> whatever).
>
> So what I'm asking is: what is EXACTLY the best syntax to use. Like I said,
> I'm writing an article - readers will rake me over the coals if I give out
> information that is ambiguous or unclear in any way.
My $.02 is:
make-kpkg
fakeroot make-kpkg --append-to-version=-ws-1 --revision=yyyymmdd kernel_image
<modules_image kernel_headers>
Here is why:
In my lab we have a file server, a webserver, and 10 workstations (all the
workstations have identical hardware). So I do -fs-x for the fileserver
kernels, -gw-x (for gateway) for the webserver kernels and -ws-x for the
wokrstation kernels. I increment x by one each time I make a change. The
revision is obviosly a date, I do that so that when I look in dselect or
aptititude I can immediately tell how long ago I compiled.
I also make the headers at the same time as the kernel so that when I have a
need for them (like installing vmware) I already have them and don't have to
go through the pain of rebuilding them. Modules image I use for ALSA drivers
and the like. Of course, these are optional.
-Roberto
___________________________________________________
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es
Reply to: