mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-08 06:40:50 +00:00
Make any EFI system boot into the shim (if installed) even if
SecureBoot is disabled (Stéphane Graber).
This commit is contained in:
parent
4c8b510c70
commit
089fcef395
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -8,6 +8,8 @@ grub2 (2.00-16) UNRELEASED; urgency=low
|
|||||||
* Merge from Ubuntu:
|
* Merge from Ubuntu:
|
||||||
- Treat Kubuntu as an alias for Ubuntu in GRUB_DISTRIBUTOR (Harald
|
- Treat Kubuntu as an alias for Ubuntu in GRUB_DISTRIBUTOR (Harald
|
||||||
Sitter).
|
Sitter).
|
||||||
|
- Make any EFI system boot into the shim (if installed) even if
|
||||||
|
SecureBoot is disabled (Stéphane Graber).
|
||||||
|
|
||||||
-- Colin Watson <cjwatson@debian.org> Sun, 11 Aug 2013 12:12:54 +0100
|
-- Colin Watson <cjwatson@debian.org> Sun, 11 Aug 2013 12:12:54 +0100
|
||||||
|
|
||||||
|
2
debian/patches/install_bios_setup_path.patch
vendored
2
debian/patches/install_bios_setup_path.patch
vendored
@ -8,7 +8,7 @@ Index: b/util/grub-install.in
|
|||||||
===================================================================
|
===================================================================
|
||||||
--- a/util/grub-install.in
|
--- a/util/grub-install.in
|
||||||
+++ b/util/grub-install.in
|
+++ b/util/grub-install.in
|
||||||
@@ -368,6 +368,9 @@
|
@@ -363,6 +363,9 @@
|
||||||
|
|
||||||
if test "x$grub_setup" = x && [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = "i386-pc" ]; then
|
if test "x$grub_setup" = x && [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = "i386-pc" ]; then
|
||||||
grub_setup="${sbindir}/`echo grub-bios-setup | sed ${transform}`"
|
grub_setup="${sbindir}/`echo grub-bios-setup | sed ${transform}`"
|
||||||
|
20
debian/patches/install_signed.patch
vendored
20
debian/patches/install_signed.patch
vendored
@ -1,26 +1,22 @@
|
|||||||
Description: Install signed images if UEFI Secure Boot is enabled
|
Description: Install signed images if UEFI Secure Boot is enabled
|
||||||
Author: Colin Watson <cjwatson@ubuntu.com>
|
Author: Colin Watson <cjwatson@ubuntu.com>
|
||||||
|
Author: Stéphane Graber <stgraber@ubuntu.com>
|
||||||
Forwarded: no
|
Forwarded: no
|
||||||
Last-Update: 2012-12-10
|
Last-Update: 2013-08-12
|
||||||
|
|
||||||
Index: b/util/grub-install.in
|
Index: b/util/grub-install.in
|
||||||
===================================================================
|
===================================================================
|
||||||
--- a/util/grub-install.in
|
--- a/util/grub-install.in
|
||||||
+++ b/util/grub-install.in
|
+++ b/util/grub-install.in
|
||||||
@@ -63,6 +63,12 @@
|
@@ -63,6 +63,7 @@
|
||||||
|
|
||||||
removable=no
|
removable=no
|
||||||
efi_quiet=
|
efi_quiet=
|
||||||
+sb_var=/sys/firmware/efi/vars/SecureBoot-8be4df61-93ca-11d2-aa0d-00e098032b8c/data
|
|
||||||
+if [ -e "$sb_var" ] && [ "$(printf %x \'"$(cat "$sb_var")")" = 1 ]; then
|
|
||||||
+uefi_secure_boot=yes
|
+uefi_secure_boot=yes
|
||||||
+else
|
|
||||||
+ uefi_secure_boot=no
|
|
||||||
+fi
|
|
||||||
|
|
||||||
# Get GRUB_DISTRIBUTOR.
|
# Get GRUB_DISTRIBUTOR.
|
||||||
if test -f "${sysconfdir}/default/grub" ; then
|
if test -f "${sysconfdir}/default/grub" ; then
|
||||||
@@ -117,6 +123,8 @@
|
@@ -117,6 +118,8 @@
|
||||||
print_option_help "--removable" "$(gettext "the installation device is removable. This option is only available on EFI.")"
|
print_option_help "--removable" "$(gettext "the installation device is removable. This option is only available on EFI.")"
|
||||||
print_option_help "--bootloader-id=$(gettext "ID")" "$(gettext "the ID of bootloader. This option is only available on EFI.")"
|
print_option_help "--bootloader-id=$(gettext "ID")" "$(gettext "the ID of bootloader. This option is only available on EFI.")"
|
||||||
print_option_help "--efi-directory=$(gettext "DIR")" "$(gettext "use DIR as the EFI System Partition root.")"
|
print_option_help "--efi-directory=$(gettext "DIR")" "$(gettext "use DIR as the EFI System Partition root.")"
|
||||||
@ -29,7 +25,7 @@ Index: b/util/grub-install.in
|
|||||||
echo
|
echo
|
||||||
gettext "INSTALL_DEVICE must be system device filename.";echo
|
gettext "INSTALL_DEVICE must be system device filename.";echo
|
||||||
echo
|
echo
|
||||||
@@ -258,6 +266,11 @@
|
@@ -258,6 +261,11 @@
|
||||||
-f | --force)
|
-f | --force)
|
||||||
setup_force="--force" ;;
|
setup_force="--force" ;;
|
||||||
|
|
||||||
@ -41,7 +37,7 @@ Index: b/util/grub-install.in
|
|||||||
-*)
|
-*)
|
||||||
gettext_printf "Unrecognized option \`%s'\n" "$option" 1>&2
|
gettext_printf "Unrecognized option \`%s'\n" "$option" 1>&2
|
||||||
usage
|
usage
|
||||||
@@ -460,39 +473,32 @@
|
@@ -460,39 +468,32 @@
|
||||||
# not collide with other vendors. To minimise collisions, we use the
|
# not collide with other vendors. To minimise collisions, we use the
|
||||||
# name of our distributor if possible.
|
# name of our distributor if possible.
|
||||||
efi_distributor="$bootloader_id"
|
efi_distributor="$bootloader_id"
|
||||||
@ -98,7 +94,7 @@ Index: b/util/grub-install.in
|
|||||||
# TODO: We should also use efibootmgr, if available, to add a Boot
|
# TODO: We should also use efibootmgr, if available, to add a Boot
|
||||||
# entry for ourselves.
|
# entry for ourselves.
|
||||||
fi
|
fi
|
||||||
@@ -653,7 +659,7 @@
|
@@ -653,7 +654,7 @@
|
||||||
install_drive="$grub_drive"
|
install_drive="$grub_drive"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -107,7 +103,7 @@ Index: b/util/grub-install.in
|
|||||||
# generic method (used on coreboot and ata mod)
|
# generic method (used on coreboot and ata mod)
|
||||||
uuid=
|
uuid=
|
||||||
if [ x"$force_file_id" != xy ]; then
|
if [ x"$force_file_id" != xy ]; then
|
||||||
@@ -828,10 +834,32 @@
|
@@ -828,10 +829,32 @@
|
||||||
gettext "You will have to set \`SystemPartition' and \`OSLoader' manually." 1>&2
|
gettext "You will have to set \`SystemPartition' and \`OSLoader' manually." 1>&2
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
elif [ x"$grub_modinfo_platform" = xefi ]; then
|
elif [ x"$grub_modinfo_platform" = xefi ]; then
|
||||||
|
@ -63,12 +63,7 @@ update_nvram=yes
|
|||||||
|
|
||||||
removable=no
|
removable=no
|
||||||
efi_quiet=
|
efi_quiet=
|
||||||
sb_var=/sys/firmware/efi/vars/SecureBoot-8be4df61-93ca-11d2-aa0d-00e098032b8c/data
|
|
||||||
if [ -e "$sb_var" ] && [ "$(printf %x \'"$(cat "$sb_var")")" = 1 ]; then
|
|
||||||
uefi_secure_boot=yes
|
uefi_secure_boot=yes
|
||||||
else
|
|
||||||
uefi_secure_boot=no
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Get GRUB_DISTRIBUTOR.
|
# Get GRUB_DISTRIBUTOR.
|
||||||
if test -f "${sysconfdir}/default/grub" ; then
|
if test -f "${sysconfdir}/default/grub" ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user