update-grub runs too often during upgrade/removal of linux kernels
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: grub-pc
Removing two kernels involves running update-grub four times when it should only be run once. I am not sure if this should be filed against the linux-image, dpkg, or against grub itself. I went with grub initially since that is where update-grub lives.
Output from dpkg --purge:
$: dpkg --purge linux-image-
(Reading database ... 189105 files and directories currently installed.)
Removing linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
Running postrm hook script /usr/sbin/
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
done
The link /vmlinuz.old is a damaged link
Removing symbolic link vmlinuz.old
you may need to re-run your boot loader[grub]
The link /initrd.img.old is a damaged link
Removing symbolic link initrd.img.old
you may need to re-run your boot loader[grub]
Purging configuration files for linux-image-
Running postrm hook script /usr/sbin/
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
done
Removing linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
Running postrm hook script /usr/sbin/
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
done
Purging configuration files for linux-image-
Running postrm hook script /usr/sbin/
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
done
ProblemType: Bug
Architecture: i386
Date: Sun Aug 23 12:34:22 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelMo
Package: grub-pc 1.96+20090725-
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: grub2
Uname: Linux 2.6.31-6-generic i686
I think this is basically covered by bug 396381.