update-grub not updating grub after dist-upgrade
Brian McKee
brian.mckee at gmail.com
Thu Oct 23 14:09:18 UTC 2008
Hi All,
I upgraded a Hardy machine last night with 'at 7pm aptitude -y
dist-upgrade && shutdown -r now'
>From the logs I noted this section
> Found kernel: /vmlinuz-2.6.24-21-generic
> Found kernel: /vmlinuz-2.6.24-19-generic
> Found kernel: /vmlinuz-2.6.24-16-generic
> Found kernel: /memtest86+.bin
> A new version of /boot/grub/menu.lst is available, but the version installed
> currently has been locally modified.
>
> 1. install the package maintainer's version
> 2. keep the local version currently installed
> 3. show the differences between the versions
> 4. show a side-by-side difference between the versions
> 5. show a 3-way difference between available versions
> 6. do a 3-way merge between available versions (experimental)
> 7. start a new shell to examine the situation
>
> What would you like to do about menu.lst?
> Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104.
> Updating /boot/grub/menu.lst ... done
>
> Use of uninitialized value in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 83, <GEN0> line 11.
> Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/Format/822.pm line 84, <GEN0> line 11.
>
> Setting up linux-ubuntu-modules-2.6.24-21-generic (2.6.24-21.32) ...
Looking at /boot/menu.1st I see it actually chose option 2 - keep local
Now my question is, how can I get that kernel added to grub without me
doing it by hand now?
I've tried
> update-grub
> dpkg-reconfigure -phigh linux-image-2.6.24-21-generic
> dpkg-reconfigure -plow linux-image-2.6.24-21-generic
> aptitude reinstall linux-image-2.6.24-21-generic
None of them seem to put that -21 kernel back in grub.menu
As I've said before, sure I can do it by hand, but I don't understand
why it's not doing it itself....
Here's the entire grub file without the comments or blank lines
> default<<>>>0$
> timeout<<>>>10$
> foreground = 000000$
> background = dd0000$
> splashimage=(hd0,0)/boot/grub/maplogo.xpm.gz$
> title<>><>>>Ubuntu 8.04, kernel 2.6.24-19-generic$
> root<>>><>>>(hd0,1)$
> kernel<><>>>/vmlinuz-2.6.24-19-generic root=/dev/mapper/VOLUME--GROUP--1-LOGICAL--VOLUME--2 ro console=tty12 splash$
> initrd<><>>>/initrd.img-2.6.24-19-generic$
> title<>><>>>Ubuntu 8.04, kernel 2.6.24-19-generic (recovery mode)$
> root<>>><>>>(hd0,1)$
> kernel<><>>>/vmlinuz-2.6.24-19-generic root=/dev/mapper/VOLUME--GROUP--1-LOGICAL--VOLUME--2 ro console=tty12 single$
> initrd<><>>>/initrd.img-2.6.24-19-generic$
> title<>><>>>Ubuntu 8.04, kernel 2.6.24-16-generic$
> root<>>><>>>(hd0,1)$
> kernel<><>>>/vmlinuz-2.6.24-16-generic root=/dev/mapper/VOLUME--GROUP--1-LOGICAL--VOLUME--2 ro console=tty12 splash$
> initrd<><>>>/initrd.img-2.6.24-16-generic$
> title<>><>>>Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)$
> root<>>><>>>(hd0,1)$
> kernel<><>>>/vmlinuz-2.6.24-16-generic root=/dev/mapper/VOLUME--GROUP--1-LOGICAL--VOLUME--2 ro console=tty12 single$
> initrd<><>>>/initrd.img-2.6.24-16-generic$
> title<>><>>>Ubuntu 8.04, memtest86+$
> root<>>><>>>(hd0,1)$
> kernel<><>>>/memtest86+.bin$
> title<>>GeeXboX$
> root<>>>(hd0,0)$
> kernel<>/vmlinuz root=/dev/ram0 rw init=linuxrc boot=sda1 lang=en splash=silent vga=792 keymap=qwerty remote=mceusb receiver=mceusb2 video=vesafb:ywrap,mtrr$
> initrd /initrd.gz$
> boot$
Comments appreciated
Brian
More information about the ubuntu-users
mailing list