purging a kernel sometimes fails to remove kernel in armel

Bug #701578 reported by Tobin Davis
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
initramfs-tools
New
Undecided
Unassigned
initramfs-tools (Ubuntu)
Triaged
High
Unassigned

Bug Description

Binary package hint: initramfs-tools

When purging a kernel, the links in /boot fail to get updated, which flash-kernel depends on for updating boot partitions on armel platforms. This may leave the system unable to boot or may continue to boot the purged kernel.

The following is the output from apt-get --purge:

ubuntu@beaglexm:~$ sudo apt-get --purge remove linux-image-2.6.35-24-omap
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.35-22 linux-headers-2.6.35-22-omap
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  linux-image-2.6.35-24-omap* linux-image-omap* linux-omap*
0 upgraded, 0 newly installed, 3 to remove and 211 not upgraded.
After this operation, 59.5MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 124191 files and directories currently installed.)
Removing linux-omap ...
Removing linux-image-omap ...
Removing linux-image-2.6.35-24-omap ...
WARN: Proceeding with removing running kernel image.
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 2.6.35-24-omap /boot/vmlinuz-2.6.35-24-omap
The link /boot/vmlinuz is a damaged link
Removing symbolic link vmlinuz
 you may need to re-run your boot loader[grub]
The link /boot/initrd.img is a damaged link
Removing symbolic link initrd.img
 you may need to re-run your boot loader[grub]
Purging configuration files for linux-image-2.6.35-24-omap ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 2.6.35-24-omap /boot/vmlinuz-2.6.35-24-omap

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: initramfs-tools 0.98.1ubuntu6
ProcVersionSignature: User Name 2.6.35-24.42-omap 2.6.35.8
Uname: Linux 2.6.35-24-omap armv7l
NonfreeKernelModules: nls_iso8859_1 nls_cp437 vfat fat binfmt_misc ppdev lp parport dm_crypt smsc95xx usbnet omap_wdt gpio_keys omap2_mcspi joydev twl4030_pwrbutton leds_gpio btrfs zlib_deflate crc32c libcrc32c usbhid hid
Architecture: armel
Date: Tue Jan 11 11:52:09 2011
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: initramfs-tools

Revision history for this message
Tobin Davis (gruemaster) wrote :
Revision history for this message
Oliver Grawert (ogra) wrote :

does your /etc/kernel-img.conf have the do_symlinks arg set to yes ?

Revision history for this message
Tobin Davis (gruemaster) wrote :

Yes.

here's the /etc/kernel-inf.conf:

do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = yes

Tobin Davis (gruemaster)
Changed in initramfs-tools (Ubuntu):
importance: Undecided → High
status: New → Triaged
Revision history for this message
Jarno Suni (jarnos) wrote :

Is it ok to remove the running kernel image?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.