~ubuntu-core-dev/ubuntu/trusty/grub2/trusty

« back to all changes in this revision

Viewing changes to debian/postinst.in

  • Committer: Colin Watson
  • Date: 2013-10-21 15:51:38 UTC
  • Revision ID: cjwatson@canonical.com-20131021155138-m3fgm1ze42krct5w
Adjust UEFI installation to cope with Kubuntu setting GRUB_DISTRIBUTOR
(LP: #1242417).

Show diffs side-by-side

added added

removed removed

Lines of Context:
682
682
      grub-efi-ia32|grub-efi-amd64)
683
683
        bootloader_id="$(config_item GRUB_DISTRIBUTOR | tr A-Z a-z | \
684
684
                         cut -d' ' -f1)"
 
685
        case $bootloader_id in
 
686
          kubuntu) bootloader_id=ubuntu ;;
 
687
        esac
685
688
        if [ "$bootloader_id" ] && [ -d "/boot/efi/EFI/$bootloader_id" ]; then
686
689
          grub-install
687
690
        fi