[Bug 1318568] Re: grub upgrade fails with lvm on top of dmraid
Antonios Vamporakis
vamporakis at yahoo.com
Thu Jun 25 06:16:41 UTC 2015
In my case this interferes with kernel installations. Post-installation
tries to update grub but the process fails and any subsequent steps are
skipped. The way around this is to remove grub-common, install the new
kernel and install grub again. Of course grub does not generate a
grub.cfg file. The grub installation fails with the same error.
root at radon:/home/ant# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
linux-headers-generic linux-headers-server linux-image-generic
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up linux-image-3.13.0-55-generic (3.13.0-55.94) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
initrd.img(/boot/initrd.img-3.13.0-55-generic
) points to /boot/initrd.img-3.13.0-55-generic
(/boot/initrd.img-3.13.0-55-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-3.13.0-55-generic.postinst line 491.
vmlinuz(/boot/vmlinuz-3.13.0-55-generic
) points to /boot/vmlinuz-3.13.0-55-generic
(/boot/vmlinuz-3.13.0-55-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-3.13.0-55-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-55-generic /boot/vmlinuz-3.13.0-55-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.13.0-55-generic /boot/vmlinuz-3.13.0-55-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-55-generic /boot/vmlinuz-3.13.0-55-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-55-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-55-generic /boot/vmlinuz-3.13.0-55-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-55-generic /boot/vmlinuz-3.13.0-55-generic
Generating grub configuration file ...
grub-probe: error: disk `lvmid/uCggES-emwj-Lb0k-yUW2-OpiX-uNdC-buju7p/vA1BlD-je3U-8Bbt-qA8F-mbjo-0wiw-y8dR5S' not found.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.13.0-55-generic.postinst line 1025.
dpkg: error processing package linux-image-3.13.0-55-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-extra-3.13.0-55-generic:
linux-image-extra-3.13.0-55-generic depends on linux-image-3.13.0-55-generic; however:
Package linux-image-3.13.0-55-generic is not configured yet.
dpkg: error processing package linux-image-extra-3.13.0-55-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-3.13.0-55-generic; however:
Package linux-image-3.13.0-55-generic is not configured yet.
linux-image-generic depends on linux-image-extra-3.13.0-55-generic; however:
Package linux-image-extra-3.13.0-55-generic is not configured yet.
dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
linux-image-3.13.0-55-generic
linux-image-extra-3.13.0-55-generic
linux-image-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
root at radon:/home/ant#
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1318568
Title:
grub upgrade fails with lvm on top of dmraid
Status in grub2 package in Ubuntu:
Confirmed
Bug description:
I tried reinstalling grub-pc and it reports that there is a problem
with GRUB drive:
grub-probe: error: cannot find a GRUB drive for
/dev/mapper/[redacted]. Check your device.map.
For this I could reinstall the system using the installer, however
that won't let the bug to be fixed.
Further, after some web search I tried update-grub, grub-probe, grub-
mkconfig etc. but with no luck. No matter which /dev/mapper device for
this hardware RAID 1 setup on LVM or the physical drives there is no
way out of this.
Also to note, that there is no files found for /boot/grub/device.map.
So there is nothing I could have checked as well.
Thanks.
Extra information:
Distributor ID: Ubuntu
Description: Ubuntu 14.04 LTS
Release: 14.04
Codename: trusty
ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: grub-pc 2.02~beta2-9
ProcVersionSignature: Ubuntu 3.8.0-39.57~precise1-generic 3.8.13.20
Uname: Linux 3.8.0-39-generic x86_64
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
Date: Mon May 12 16:12:08 2014
DuplicateSignature: package:grub-pc:2.02~beta2-9:ErrorMessage: subprocess installed post-installation script returned error exit status 1
ErrorMessage: ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2014-01-30 (101 days ago)
InstallationMedia: Ubuntu-Server 12.04.3 LTS "Precise Pangolin" - Release amd64 (20130820.2)
ProcCmdLine: BOOT_IMAGE=/vmlinuz-3.8.0-39-generic root=/dev/mapper/hostname--vg-root ro
SourcePackage: grub2
Title: package grub-pc 2.02~beta2-9 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to trusty on 2014-05-12 (0 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1318568/+subscriptions
More information about the foundations-bugs
mailing list