Public bug reported: 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.d/10_linux gets *both* device names from btrfs, with a newline between them, and then just sticks that everywhere in the config file where it was expecting just one device. The newline in the middle prematurely truncates lines and then starts new invalid ones. 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/grub-mkconfig usr/share/grub/grub-mkconfig_lib] ProcVersionSignature: Ubuntu 3.11.0-11.17-generic 3.11.3 Uname: Linux 3.11.0-11-generic x86_64 NonfreeKernelModules: nvidia 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.conffile..etc.grub.d.10.linux: [modified] mtime.conffile..etc.grub.d.10.linux: 2013-10-11T12:18:01.364605 ** Affects: grub2 (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug saucy -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1238347 Title: Invalid grub.cfg generated if root on RAID1 btrfs To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1238347/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs