[Bug 1236625] Re: grub-install fails to set up /boot/efi/EFI/ubuntu/grub.cfg with UEFI and LVM root

Launchpad Bug Tracker 1236625 at bugs.launchpad.net
Tue Oct 8 00:11:42 UTC 2013


** Branch linked: lp:~vorlon/ubuntu/saucy/grub2/lp.1236625

-- 
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/1236625

Title:
  grub-install fails to set up /boot/efi/EFI/ubuntu/grub.cfg with UEFI
  and LVM root

Status in “grub2” package in Ubuntu:
  New

Bug description:
  If /boot/grub is on an LVM disk, and the system boots with UEFI, grub-
  install will fail to set up /boot/efi/EFI/ubuntu/grub.cfg.  Apparently
  I had this file already on my system (probably from a previous install
  attempt?) pointing at a partition I didn't even know about and didn't
  have mounted, which was letting my system continue to boot, but using
  kernels on this other partition that were no longer being updated at
  all Since this disk was not mounted as /boot.

  $ sudo /usr/sbin/grub-probe --device-map= --target=abstraction --device /dev/mapper/ubuntu--vg-root
  lvm
  $

  grub-install:

   607   # Device abstraction module, if any (lvm, raid).
   608   devabstraction_module="`echo "${grub_device}" | xargs "$grub_probe" --device-map="${device_map}" --target=abstraction --device`"
  [...]
    641   if [ "x${devabstraction_module}" = "x" ] ; then
  [...]
    682           if [ x"$uuid" != x ]; then
    683               echo "search.fs_uuid ${uuid} root $hints " >> "${grubdir}/${grub_modinfo_target_cpu}-$grub_modinfo_platform/load.cfg"
    684               search_module=search_fs_uuid
    685           else
    686               mkdir -p "${grubdir}/uuid"
    687               file="`mktemp "${grubdir}/uuid/XXXXXXXXXXXXXXXXXXXXXXXXX"`"
    688               relfile="`${grub_mkrelpath} "$file"`"
    689               echo "search.file '${relfile}' root $hints " >> "${grubdir}/${grub_modinfo_target_cpu}-$grub_modinfo_platform/load.cfg"
    690               search_module=search_fs_file
    691           fi
  [...]
    704   else
    705       if [ x$GRUB_CRYPTODISK_ENABLE = xy ]; then
  [...]
    710       fi
  [...]
    713   fi

  So for plain LVM, nothing tells grub on the EFI boot partition where
  to find its prefix.  I guess this would've resulted in an unbootable
  install, if I hadn't happened to have an extra /boot partition hiding
  around on my system already.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1236625/+subscriptions



More information about the foundations-bugs mailing list