Grub fails during upgrade due to lingering BTRFS information on drive
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Expired
|
Wishlist
|
Unassigned |
Bug Description
Description: Ubuntu 14.10
Release: 14.10
grub-pc:
Installed: 2.02~beta2-15
Candidate: 2.02~beta2-15
Version table:
*** 2.02~beta2-15 0
500 http://
100 /var/lib/
root@build:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... The following packages were automatically installed and are no longer required:
g++-4.8 libept1.4.12 libgnutls28 libgssglue1 libstdc++-4.8-dev linux-headers-
linux-
Use 'apt-get autoremove' to remove them.
Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up linux-image-
Running depmod.
update-initramfs: deferring update (hook will be called later)
initrd.
) points to /boot/initrd.
(/boot/
vmlinuz(
) points to /boot/vmlinuz-
(/boot/
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Generating grub configuration file ...
grub-probe: error: disk `mduuid/
run-parts: /etc/kernel/
Failed to process /etc/kernel/
dpkg: error processing package linux-image-
subprocess installed post-installation script returned error exit status 2
Setting up friendly-recovery (0.2.26) ...
Generating grub configuration file ...
grub-probe: error: disk `mduuid/
dpkg: error processing package friendly-recovery (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up grub-pc (2.02~beta2-15) ...
Replacing config file /etc/default/grub with new version
Generating grub configuration file ...
grub-probe: error: disk `mduuid/
dpkg: error processing package grub-pc (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package linux-image-
dpkg: error processing package linux-image-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package linux-image-
linux-
Package linux-image-
dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 3.16.0.23.24); however:
Package linux-image-generic is not cNo apport report written because MaxReports is reached already
dpkg: error processing package linux-generic (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-
friendly-recovery
grub-pc
linux-
linux-
linux-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: grub-pc 2.02~beta2-15
ProcVersionSign
Uname: Linux 3.15.0-6-generic x86_64
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
Date: Thu Oct 23 21:52:10 2014
InstallationDate: Installed on 2011-12-07 (1052 days ago)
InstallationMedia: Ubuntu-Server 11.10 "Oneiric Ocelot" - Release amd64 (20111011)
ProcEnviron:
SHELL=/bin/bash
TERM=xterm-
PATH=(custom, no user)
LANG=en_US.UTF-8
XDG_RUNTIME_
SourcePackage: grub2
UpgradeStatus: Upgraded to utopic on 2014-07-03 (112 days ago)
---
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
DistroRelease: Ubuntu 14.10
InstallationDate: Installed on 2011-12-07 (1052 days ago)
InstallationMedia: Ubuntu-Server 11.10 "Oneiric Ocelot" - Release amd64 (20111011)
Package: grub2 (not installed)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
Tags: utopic
Uname: Linux 3.15.0-6-generic x86_64
UpgradeStatus: Upgraded to utopic on 2014-07-03 (112 days ago)
UserGroups:
_MarkForUpload: True
---
ApportVersion: 2.14.7-0ubuntu10
Architecture: amd64
DistroRelease: Ubuntu 15.04
InstallationDate: Installed on 2011-12-07 (1083 days ago)
InstallationMedia: Ubuntu-Server 11.10 "Oneiric Ocelot" - Release amd64 (20111011)
Package: grub2 (not installed)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
Tags: vivid
Uname: Linux 3.16.0-24-generic x86_64
UpgradeStatus: Upgraded to vivid on 2014-11-15 (9 days ago)
UserGroups:
_MarkForUpload: True
---
ApportVersion: 2.15.1-0ubuntu1
Architecture: amd64
DistroRelease: Ubuntu 15.04
InstallationDate: Installed on 2011-12-07 (1117 days ago)
InstallationMedia: Ubuntu-Server 11.10 "Oneiric Ocelot" - Release amd64 (20111011)
Package: grub2 (not installed)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
Tags: vivid
Uname: Linux 3.16.0-24-generic x86_64
UpgradeStatus: Upgraded to vivid on 2014-11-15 (43 days ago)
UserGroups:
_MarkForUpload: True
tags: | added: apport-collected |
description: | updated |
tags: | added: vivid |
description: | updated |
description: | updated |
Changed in grub2 (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
Using wipefs you can see that it has the remnants of btrfs on the raw /dev/sda because I am an idiot.
root@build:~# wipefs /dev/sda ------- ------- ------- ------- ------- ------- ------- ------- -
offset type
-------
0x1fe dos [partition table]
0x10040 btrfs [filesystem]
LABEL: jf-002-001
UUID: 50f898e6- febe-486e- b8c9-bf728d7935 ac
It would be useful if during the upgrade grub checks for this and spits out a more useful warning at least and tells you to run wipefs -o 0x10040 /dev/xxx to eliminate the fs. Grub updated but now it says: grub-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/