dirty cow und 12.04 LTS

Tom H tomh0665 at gmail.com
Thu Oct 27 17:13:20 UTC 2016


On Thu, Oct 27, 2016 at 11:23 AM, Lentes, Bernd
<bernd.lentes at helmholtz-muenchen.de> wrote:
>
> i installed this kernel: linux-image-3.2.0-113-generic
>
> Installation went fine, i see the "new" kernel and the initrd in /boot.
>
> But system boots still the "old kernel" (3.5.0.23.30)
>
> I changed /etc/default/grub:
>
> GRUB_DEFAULT='Ubuntu, with Linux 3.2.0-113-generic'
>
> This is my /boot/grub/grub.cfg:
>
> menuentry 'Ubuntu, with Linux 3.5.0-23-generic' {
> ...
> }
> menuentry 'Ubuntu, with Linux 3.5.0-23-generic (recovery mode)' {
> ...
> }
>
> submenu "Previous Linux versions" {
> menuentry 'Ubuntu, with Linux 3.2.0-113-generic' {
> linux /boot/vmlinuz-3.2.0-113-generic root=UUID=6631ef2a-0a8d-4bef-914b-fcb6ae39dc47 ro
> initrd /boot/initrd.img-3.2.0-113-generic
> }
>
> Afterwards i ran update-grub and "grub-install /dev/sda". Both ran fine, no errors.
>
> But still the "old" kernel boots.
>
> I'm not very familiar with Ubuntu, i use mostly Suse.

GRUB's the same everywhere (except, IIRC, that OpenSUSE calls it grub2
like Fedora/RHEL).

1) Did you check that update-grub ran properly? Has "set default=..."
been changed?

2) Do "menuentry 'Ubuntu, with Linux 3.2.0-113-generic'" and
"GRUB_DEFAULT='Ubuntu, with Linux 3.2.0-113-generic'" correspond
exactly?

3) Can you try using "GRUB_DEFAULT='2>0'" in "/etc/default/grub"?

Make sure that '2>0' is the right setting.

For example, if I have the following (as an example for you; I don't
use submenus):

<begin>
menuentry '16.10' {
linux /boot/kernel root=UUID=989d6215-04d7-48b7-b9b4-84ba86d5ab97 ro
initrd /boot/ramfs
}

submenu test1 {
menuentry '16.10 text' {
linux /boot/kernel root=UUID=989d6215-04d7-48b7-b9b4-84ba86d5ab97 ro text
initrd /boot/ramfs
}
}

submenu test2 {
menuentry '16.10 single' {
linux /boot/kernel root=UUID=989d6215-04d7-48b7-b9b4-84ba86d5ab97 ro single
initrd /boot/ramfs
}
menuentry '16.10 emergency' {
linux /boot/kernel root=UUID=989d6215-04d7-48b7-b9b4-84ba86d5ab97 ro emergency
initrd /boot/ramfs
}
}
</end>

to select
- '16.10' I'd use '0'
- '16.10 text' I'd use '1>0'
- '16.10 single' I'd use '2>0'
- '16.10 emergency' I'd use '2>1'




More information about the ubuntu-users mailing list