grub-legacy-ec2 cannot be purged
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: cloud-init
Running current Maverick-Server as a Xen pv_ops domu. Installed the grub-legacy-ec2 package, and now it cannot be purged. It does not properly account for the pv_ops kernels (detected as non-domu) so it is not much use to me to create a menu.lst for use with Debian Squeeze/6 Dom0 pygrub . It removes the diversion of /usr/sbin/
The following apt/dpkg output shows a reinstall followed by remove, and purge. Note the purge fails.
root@ibm-
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0B/28.4kB of archives.
After this operation, 0B of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 145664 files and directories currently installed.)
Preparing to replace grub-legacy-ec2 0.5.15-0ubuntu3 (using .../grub-
Leaving 'diversion of /usr/sbin/
Unpacking replacement grub-legacy-ec2 ...
Setting up grub-legacy-ec2 (0.5.15-0ubuntu3) ...
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Ignoring non-Xen Kernel on Xen domU host: vmlinuz-
Updating /boot/grub/menu.lst ... done
root@ibm-
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
grub-legacy-ec2
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 160kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 145663 files and directories currently installed.)
Removing grub-legacy-ec2 ...
Removing 'diversion of /usr/sbin/
root@ibm-
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
grub-legacy-ec2*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]?
(Reading database ... 145656 files and directories currently installed.)
Removing grub-legacy-ec2 ...
Purging configuration files for grub-legacy-ec2 ...
No diversion 'diversion of /usr/sbin/
dpkg: error processing grub-legacy-ec2 (--purge):
subprocess installed post-removal script returned error exit status 128
Errors were encountered while processing:
grub-legacy-ec2
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@ibm-
root@ibm-
ii grub-common 1.98+20100804-
pc grub-legacy-ec2 0.5.15-0ubuntu3 Handles update-grub for ec2 instances
ii grub-pc 1.98+20100804-
root@ibm-
Related branches
Changed in cloud-init (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Not related to the bug, but I noted the option inDomU=true can be set in menu.lst, to override detection for pv_ops kernels.