diff --git a/debian/changelog b/debian/changelog index 0291270fd..590f25e04 100644 --- a/debian/changelog +++ b/debian/changelog @@ -13,6 +13,8 @@ grub2 (2.00-20) UNRELEASED; urgency=low (Steve Langasek, LP: #1236625). - If MokManager is present on the host system, copy it onto the EFI boot partition for use (Steve Langasek). + - Adjust UEFI installation to cope with Kubuntu setting GRUB_DISTRIBUTOR + (LP: #1242417). -- Colin Watson Mon, 07 Oct 2013 09:48:53 +0100 diff --git a/debian/patches/install_efi_ubuntu_flavours.patch b/debian/patches/install_efi_ubuntu_flavours.patch new file mode 100644 index 000000000..392736c31 --- /dev/null +++ b/debian/patches/install_efi_ubuntu_flavours.patch @@ -0,0 +1,24 @@ +Description: Cope with Kubuntu setting GRUB_DISTRIBUTOR + This is not a very good approach, and certainly not sanely upstreamable; we + probably need to split GRUB_DISTRIBUTOR into a couple of different + variables. +Author: Colin Watson +Bug-Ubuntu: https://bugs.launchpad.net/bugs/1242417 +Forwarded: not-needed +Last-Update: 2013-11-12 + +Index: b/util/grub-install.in +=================================================================== +--- a/util/grub-install.in ++++ b/util/grub-install.in +@@ -471,6 +471,10 @@ + # not collide with other vendors. To minimise collisions, we use the + # name of our distributor if possible. + efi_distributor="$bootloader_id" ++ case $efi_distributor in ++ kubuntu) ++ efi_distributor=ubuntu ;; ++ esac + # It is convenient for each architecture to have a different + # efi_file, so that different versions can be installed in parallel. + case "$grub_modinfo_target_cpu" in diff --git a/debian/patches/series b/debian/patches/series index 3f4e02bb1..9ff104ec6 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -56,3 +56,4 @@ maybe_quiet.patch efidisk_non_512_sectors.patch mkconfig_hurd_sort.patch probe_dmraid.patch +install_efi_ubuntu_flavours.patch diff --git a/debian/postinst.in b/debian/postinst.in index 2fdcc5dfc..6553aa16c 100644 --- a/debian/postinst.in +++ b/debian/postinst.in @@ -671,6 +671,9 @@ case "$1" in grub-efi-ia32|grub-efi-amd64) bootloader_id="$(config_item GRUB_DISTRIBUTOR | tr A-Z a-z | \ cut -d' ' -f1)" + case $bootloader_id in + kubuntu) bootloader_id=ubuntu ;; + esac if [ "$bootloader_id" ] && [ -d "/boot/efi/EFI/$bootloader_id" ]; then grub-install fi diff --git a/util/grub-install.in b/util/grub-install.in index 397e3f5b9..2b0522973 100644 --- a/util/grub-install.in +++ b/util/grub-install.in @@ -471,6 +471,10 @@ if [ x"$grub_modinfo_platform" = xefi ]; then # not collide with other vendors. To minimise collisions, we use the # name of our distributor if possible. efi_distributor="$bootloader_id" + case $efi_distributor in + kubuntu) + efi_distributor=ubuntu ;; + esac # It is convenient for each architecture to have a different # efi_file, so that different versions can be installed in parallel. case "$grub_modinfo_target_cpu" in