Invalid grub.cfg generated if root on RAID1 btrfs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
If Ubuntu Saucy is installed onto a btrfs root device, which is configured to be a RAID1 mirror (or probably other configurations) then the grub.cfg is generated with invalid entries.
This is because /etc/grub.
To reproduce, create your btrfs device something like this during install:
mkfs.btrfs -d raid1 -m raid1 /dev/sda1 /dev/sdb1
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: grub-common 2.00-19ubuntu1 [modified: usr/sbin/
ProcVersionSign
Uname: Linux 3.11.0-11-generic x86_64
NonfreeKernelMo
ApportVersion: 2.12.5-0ubuntu1
Architecture: amd64
Date: Fri Oct 11 12:21:17 2013
InstallationDate: Installed on 2013-10-09 (1 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Beta amd64 (20130925.1)
MarkForUpload: True
SourcePackage: grub2
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
mtime.conffile.
I have a sort-of workaround, which is to edit grub-mkconfig_lib and add a " | head -n 1 " to the call to grub_prove in get_get_ device_ id(), but it's not great.