Versão do kernel Ubuntu 14.04.2 alterada após recompilação

Versão do kernel Ubuntu 14.04.2 alterada após recompilação

Recebi uma tarefa em que preciso recompilar um kernel de 64 bits sem nenhuma modificação e tornar o novo kernel o kernel padrão no grub. Estou fazendo isso em um sistema Ubuntu 14.04.2 de 64 bits com kernel 3.16.0-60-generic.

Eu executei as seguintes instruções (alguma parte seguida deaquie alguns deaqui) -

apt-get source linux-image-$(uname -r)
sudo apt-get build-dep linux-image-$(uname -r)
cd linux-lts-utopic-3.16.0/
cp /boot/config-3.16.0-60-generic .config
make
make modules
make modules_install
sudo make install

Posso inicializar no kernel e tudo menos a versão do kernel ( uname -r) aparece como 3.16.7-ckt22. Como a versão mudou se eu compilei o kernel a partir 3.16.0-60dos fontes?

EDITAR: Não segui as instruções completas dehttps://wiki.ubuntu.com/Kernel/BuildYourOwnKernelporque eles substituem a imagem atual do kernel pela nova. Eu queria uma imagem com sufixo modificado como -3.16.0-60-recompilado ou algo semelhante e aparecesse ao lado da imagem original no grub.

Responder1

A resposta curta é que a versão do kernel não mudou na sua compilação, ela foi alterada na versão oficial do Ubuntu. Resposta mais longa abaixo.

Os kernels oficiais do Ubuntu possuem números de versão especiais. Você pode procurar o mapeamento do número de versãoaqui, e sua linha específica é copiada abaixo:

3.16.0-60.80~14.04.1    Ubuntu-lts-3.16.0-60.80_14.04.1 3.16.7-ckt22

Veraquipara obter uma explicação da convenção de nomenclatura, também copiada abaixo:

What does a specific Ubuntu kernel version number mean?

The official version of an Ubuntu kernel tells you a number of things,
including the base upstream version, the current Ubuntu ABI identifier
and the kernel flavour. (See How can we determine the version of the
running kernel? to find your current version number.)

Given a version like 2.6.35-6.9-generic this can be broken into four
parts as below:

    <base kernel version>-<ABI number>.<upload number>-<flavour> 

The base kernel version represents the mainline version on which the
Ubuntu kernel is based. The ABI number represents significant changes
in the kernel Application Binary Interface. The upload number is a
monotonically increasing counter for each upload of this base version.
The flavour indicates which kernel configuration variant this is (See
What is a Kernel Flavour?). 

informação relacionada