grub-installer fails to install grub on new install

Bug #913811 reported by Turbo Fredriksson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub-installer (Ubuntu)
Triaged
Undecided
Unassigned
grub2 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

When installing from seed (haven't tried manual install), DM crypt and LVM, the grub install stage fails with the message:

   grub install (something, something) failed: mapdevfs <path>

Debugging, this is because the part that reads 'apt-install grub-common' outputs:

   Adding 'local diversion of /sbin/start-stop-daemon to /sbin/start-stop-daemon.REAL'
   Adding 'local diversion of /sbin/initctl to /sbin/initctl.REAL'

this in turn is interpreted as input into $rootfs (calls findfs(), which calls grub_probe() which calls apt-install ...).

This variable is then used by mapdevfs. But since the variable contains bogus data, grub-installer fails.

Changing the relevant line in /usr/bin/grub-installer from:

    apt-install grub-common

to

    apt-install grub-common > /dev/null

Solves the problem (for me).

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/913811/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
yurikoles (yurikoles)
affects: ubuntu → grub (Ubuntu)
affects: grub (Ubuntu) → grub2 (Ubuntu)
TJ (tj)
Changed in grub2 (Ubuntu):
status: New → Invalid
Changed in grub-installer (Ubuntu):
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.