Merge ~ubuntu-core-dev/grub/+git/ubuntu:focal-devel into ~ubuntu-core-dev/grub/+git/ubuntu:focal-security
- Git
- lp:~ubuntu-core-dev/grub/+git/ubuntu
- focal-devel
- Merge into focal-security
Status: | Superseded | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Proposed branch: | ~ubuntu-core-dev/grub/+git/ubuntu:focal-devel | ||||||||||||
Merge into: | ~ubuntu-core-dev/grub/+git/ubuntu:focal-security | ||||||||||||
Diff against target: |
3473 lines (+630/-381) (has conflicts) 92 files modified
debian/.git-dpm (+5/-0) debian/changelog (+27/-0) debian/patches/0074-uefi-firmware-rename-fwsetup-menuentry-to-UEFI-Firmw.patch (+2/-2) debian/patches/0075-smbios-Add-a-linux-argument-to-apply-linux-modalias-.patch (+2/-2) debian/patches/0076-ubuntu-Make-the-linux-command-in-EFI-grub-always-try.patch (+3/-3) debian/patches/0077-ubuntu-Update-the-linux-boot-protocol-version-check.patch (+2/-2) debian/patches/at_keyboard-module-init.patch (+2/-2) debian/patches/bash-completion-drop-have-checks.patch (+2/-2) debian/patches/blacklist-1440x900x32.patch (+2/-2) debian/patches/bootp-new-net_bootp6-command.patch (+4/-4) debian/patches/bootp-process-dhcpack-http-boot.patch (+3/-3) debian/patches/cherrypick-lsefisystab-define-smbios3.patch (+3/-3) debian/patches/cherrypick-lsefisystab-show-dtb.patch (+2/-2) debian/patches/cherrypick-smbios-module.patch (+8/-8) debian/patches/core-in-fs.patch (+1/-1) debian/patches/default-grub-d.patch (+3/-3) debian/patches/disable-floppies.patch (+1/-1) debian/patches/dpkg-version-comparison.patch (+1/-1) debian/patches/efi-variable-storage-minimise-writes.patch (+9/-9) debian/patches/efinet-set-dns-from-uefi-proto.patch (+3/-3) debian/patches/efinet-set-network-from-uefi-devpath.patch (+3/-3) debian/patches/efinet-uefi-ipv6-pxe-support.patch (+3/-3) debian/patches/gettext-quiet.patch (+2/-2) debian/patches/gfxpayload-dynamic.patch (+10/-10) debian/patches/gfxpayload-keep-default.patch (+4/-4) debian/patches/grub-install-pvxen-paths.patch (+2/-2) debian/patches/grub-legacy-0-based-partitions.patch (+1/-1) debian/patches/grub.cfg-400.patch (+1/-1) debian/patches/ieee1275-clear-reset.patch (+2/-2) debian/patches/ignore-grub_func_test-failures.patch (+2/-2) debian/patches/insmod-xzio-and-lzopio-on-xen.patch (+4/-4) debian/patches/install-efi-fallback.patch (+2/-2) debian/patches/install-efi-ubuntu-flavours.patch (+2/-2) debian/patches/install-locale-langpack.patch (+2/-2) debian/patches/install-powerpc-machtypes.patch (+7/-7) debian/patches/install-stage2-confusion.patch (+2/-2) debian/patches/maybe-quiet.patch (+13/-13) debian/patches/mkconfig-loopback.patch (+4/-4) debian/patches/mkconfig-mid-upgrade.patch (+2/-2) debian/patches/mkconfig-nonexistent-loopback.patch (+3/-3) debian/patches/mkconfig-other-inits.patch (+3/-3) debian/patches/mkconfig-recovery-title.patch (+12/-12) debian/patches/mkconfig-signed-kernel.patch (+4/-4) debian/patches/mkconfig-ubuntu-distributor.patch (+4/-4) debian/patches/mkconfig-ubuntu-recovery.patch (+8/-8) debian/patches/mkrescue-efi-modules.patch (+2/-2) debian/patches/net-read-bracketed-ipv6-addr.patch (+5/-5) debian/patches/no-devicetree-if-secure-boot.patch (+3/-3) debian/patches/no-insmod-on-sb.patch (+4/-4) debian/patches/olpc-prefix-hack.patch (+1/-1) debian/patches/ppc64el-disable-vsx.patch (+2/-2) debian/patches/probe-fusionio.patch (+3/-3) debian/patches/quick-boot-lvm.patch (+2/-2) debian/patches/quick-boot.patch (+10/-10) debian/patches/restore-mkdevicemap.patch (+7/-7) debian/patches/series (+10/-5) debian/patches/skip-grub_cmd_set_date.patch (+2/-2) debian/patches/sleep-shift.patch (+3/-3) debian/patches/ubuntu-add-devicetree-command-support.patch (+4/-4) debian/patches/ubuntu-add-initrd-less-boot-fallback.patch (+29/-16) debian/patches/ubuntu-boot-from-multipath-dependent-symlink.patch (+2/-2) debian/patches/ubuntu-dont-verify-loopback-images.patch (+37/-0) debian/patches/ubuntu-efi-allow-loopmount-chainload.patch (+4/-4) debian/patches/ubuntu-efi-console-set-text-mode-as-needed.patch (+2/-2) debian/patches/ubuntu-fix-lzma-decompressor-objcopy.patch (+2/-2) debian/patches/ubuntu-flavour-order.patch (+61/-0) debian/patches/ubuntu-grub-install-extra-removable.patch (+2/-2) debian/patches/ubuntu-install-signed.patch (+2/-2) debian/patches/ubuntu-linuxefi.patch (+31/-31) debian/patches/ubuntu-mkconfig-leave-breadcrumbs.patch (+2/-2) debian/patches/ubuntu-recovery-dis_ucode_ldr.patch (+84/-0) debian/patches/ubuntu-resilient-boot-boot-order.patch (+7/-7) debian/patches/ubuntu-resilient-boot-ignore-alternative-esps.patch (+2/-2) debian/patches/ubuntu-shorter-version-info.patch (+2/-2) debian/patches/ubuntu-skip-disk-by-id-lvm-pvm-uuid-entries.patch (+2/-2) debian/patches/ubuntu-speed-zsys-history.patch (+8/-8) debian/patches/ubuntu-support-initrd-less-boot.patch (+5/-5) debian/patches/ubuntu-temp-keep-auto-nvram.patch (+2/-2) debian/patches/ubuntu-tpm-unknown-error-non-fatal.patch (+2/-2) debian/patches/ubuntu-zfs-enhance-support.patch (+15/-12) debian/patches/uefi-firmware-setup.patch (+3/-3) debian/patches/uefi-secure-boot-cryptomount.patch (+2/-2) debian/patches/vsnprintf-upper-case-hex.patch (+2/-2) debian/patches/vt-handoff.patch (+7/-7) debian/patches/wubi-no-windows.patch (+2/-2) debian/patches/zpool-full-device-name.patch (+2/-2) dev/null (+0/-27) grub-core/disk/loopback.c (+2/-1) util/grub-mkconfig.in (+2/-1) util/grub-mkconfig_lib.in (+15/-0) util/grub.d/10_linux.in (+22/-7) util/grub.d/10_linux_zfs.in (+23/-14) Conflict in debian/.git-dpm Conflict in debian/changelog Conflict in debian/patches/series |
||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Julian Andres Klode | Pending | ||
Review via email: mp+388381@code.launchpad.net |
Commit message
Description of the change
Dimitri John Ledkov (xnox) wrote : | # |
Julian Andres Klode (juliank) wrote : | # |
I want to rebase atop the security upload really, I think, otherwise it will just get super confusing
Unmerged commits
- e972ed2... by Julian Andres Klode
-
releasing package grub2 version 2.04-1ubuntu26.2
- ab1d190... by Julian Andres Klode
-
Merge branch 'ubuntu' into focal
- d3c4b3f... by Julian Andres Klode
-
releasing package grub2 version 2.04-1ubuntu29
- caea9bc... by Julian Andres Klode
-
change version to 2.04-1ubuntu29 (UNRELEASED)
debian/patches/ ubuntu- flavour- order.patch: Remove debugging message and
export the variable so it actually works from /etc/default/grub. - 3eb630e... by Julian Andres Klode
-
Pass dis_ucode_ldr to kernel for recovery mode
In case of a botched microcode update, this allows people to
easily roll back.It will of course break in the more unlikely event that you are
missing a microcode update in your firmware that is needed to boot
the system, but editing the entry to remove an option is easier than
having to figure out the option and add it.LP: #1831789
Patch-Name: ubuntu-recovery- dis_ucode_ ldr.patch - 696a85a... by Chris Coulson
-
UBUNTU: disk/loopback: Don't verify loopback images
When a file is verified, the entire contents of the verified file are
loaded in to memory and retained until the file handle is closed. A
consequence of this is that opening a loopback image can incur a
significant memory cost.As loopback devices are just another disk implementation, don't treat
loopback images any differently to physical disk images, and skip
verification of them. Files opened from the filesystem within a loopback
image will still be passed to verifier modules where required.Signed-off-by: Chris Coulson <email address hidden>
LP: #1878541
Forwarded: yes, https://lists. gnu.org/ archive/ html/grub- devel/2020- 06/msg00002. html
Patch-Name: ubuntu-dont-verify- loopback- images. patch - 2d23673... by Julian Andres Klode
-
UBUNTU: Add GRUB_FLAVOUR_ORDER configuration item
This allows you to specify flavours that will be preferred
over other ones, and the order in which they are preferred
- items in the list win over items not in the list, and items
earlier in the list win over later ones.We still have to sort out storage of this, as we need to
inject that from packages or the UA client and similar,
and we can't just modify /etc/default/grub for that.LP: #1882663
Patch-Name: ubuntu-flavour- order.patch - 8e1a6d7... by Julian Andres Klode
-
releasing package grub2 version 2.04-1ubuntu26.1
- 23e4dc8... by Julian Andres Klode
-
Merge branch 'ubuntu' into focal
- 7aa17ff... by Julian Andres Klode
-
releasing package grub2 version 2.04-1ubuntu28
Preview Diff
1 | diff --git a/debian/.git-dpm b/debian/.git-dpm | |||
2 | index 19c2663..3314490 100644 | |||
3 | --- a/debian/.git-dpm | |||
4 | +++ b/debian/.git-dpm | |||
5 | @@ -1,6 +1,11 @@ | |||
6 | 1 | # see git-dpm(1) from git-dpm package | 1 | # see git-dpm(1) from git-dpm package |
7 | 2 | <<<<<<< debian/.git-dpm | ||
8 | 2 | ec83738b990d5008c23fa820edbfd9580df95e51 | 3 | ec83738b990d5008c23fa820edbfd9580df95e51 |
9 | 3 | ec83738b990d5008c23fa820edbfd9580df95e51 | 4 | ec83738b990d5008c23fa820edbfd9580df95e51 |
10 | 5 | ======= | ||
11 | 6 | 3eb630e8f5eddee6e6160e1f2bb33ce7c5f8762b | ||
12 | 7 | 3eb630e8f5eddee6e6160e1f2bb33ce7c5f8762b | ||
13 | 8 | >>>>>>> debian/.git-dpm | ||
14 | 4 | 578bb115fbd47e1c464696f1f8d6183e5443975d | 9 | 578bb115fbd47e1c464696f1f8d6183e5443975d |
15 | 5 | 578bb115fbd47e1c464696f1f8d6183e5443975d | 10 | 578bb115fbd47e1c464696f1f8d6183e5443975d |
16 | 6 | grub2_2.04.orig.tar.xz | 11 | grub2_2.04.orig.tar.xz |
17 | diff --git a/debian/changelog b/debian/changelog | |||
18 | index 4d388c9..c8c3d77 100644 | |||
19 | --- a/debian/changelog | |||
20 | +++ b/debian/changelog | |||
21 | @@ -1,3 +1,4 @@ | |||
22 | 1 | <<<<<<< debian/changelog | ||
23 | 1 | grub2 (2.04-1ubuntu26.1) focal; urgency=medium | 2 | grub2 (2.04-1ubuntu26.1) focal; urgency=medium |
24 | 2 | 3 | ||
25 | 3 | [ Julian Andres Klode ] | 4 | [ Julian Andres Klode ] |
26 | @@ -68,6 +69,32 @@ grub2 (2.04-1ubuntu26.1) focal; urgency=medium | |||
27 | 68 | - Fail kernel validation if the shim protocol isn't available | 69 | - Fail kernel validation if the shim protocol isn't available |
28 | 69 | 70 | ||
29 | 70 | -- Chris Coulson <chris.coulson@canonical.com> Mon, 20 Jul 2020 19:19:08 +0100 | 71 | -- Chris Coulson <chris.coulson@canonical.com> Mon, 20 Jul 2020 19:19:08 +0100 |
30 | 72 | ======= | ||
31 | 73 | grub2 (2.04-1ubuntu26.2) focal; urgency=medium | ||
32 | 74 | |||
33 | 75 | * debian/patches/ubuntu-flavour-order.patch: Remove debugging message and | ||
34 | 76 | export the variable so it actually works from /etc/default/grub. | ||
35 | 77 | |||
36 | 78 | -- Julian Andres Klode <juliank@ubuntu.com> Fri, 26 Jun 2020 12:43:20 +0200 | ||
37 | 79 | |||
38 | 80 | grub2 (2.04-1ubuntu26.1) focal; urgency=medium | ||
39 | 81 | |||
40 | 82 | * Move gettext patches out of git-dpm's way, so it does not delete them | ||
41 | 83 | * debian/patches/ubuntu-flavour-order.patch: | ||
42 | 84 | - Add a (hidden) GRUB_FLAVOUR_ORDER setting that can mark certain kernel | ||
43 | 85 | flavours as preferred, and specify an order between those preferred | ||
44 | 86 | flavours (LP: #1882663) | ||
45 | 87 | * debian/patches/ubuntu-zfs-enhance-support.patch: | ||
46 | 88 | - Use version_find_latest for ordering kernels, so it also supports | ||
47 | 89 | the GRUB_FLAVOUR_ORDER setting. | ||
48 | 90 | * debian/patches/ubuntu-dont-verify-loopback-images.patch: | ||
49 | 91 | - disk/loopback: Don't verify loopback images (LP: #1878541), | ||
50 | 92 | Thanks to Chris Coulson for the patch | ||
51 | 93 | * Merge changes from xnox to fix multiple initrds support (LP: #1878705) | ||
52 | 94 | * Pass dis_ucode_ldr to kernel for recovery mode (LP: #1831789) | ||
53 | 95 | |||
54 | 96 | -- Julian Andres Klode <juliank@ubuntu.com> Mon, 22 Jun 2020 13:30:46 +0200 | ||
55 | 97 | >>>>>>> debian/changelog | ||
56 | 71 | 98 | ||
57 | 72 | grub2 (2.04-1ubuntu26) focal; urgency=medium | 99 | grub2 (2.04-1ubuntu26) focal; urgency=medium |
58 | 73 | 100 | ||
59 | diff --git a/debian/patches/0075-uefi-firmware-rename-fwsetup-menuentry-to-UEFI-Firmw.patch b/debian/patches/0074-uefi-firmware-rename-fwsetup-menuentry-to-UEFI-Firmw.patch | |||
60 | 74 | similarity index 90% | 101 | similarity index 90% |
61 | 75 | rename from debian/patches/0075-uefi-firmware-rename-fwsetup-menuentry-to-UEFI-Firmw.patch | 102 | rename from debian/patches/0075-uefi-firmware-rename-fwsetup-menuentry-to-UEFI-Firmw.patch |
62 | 76 | rename to debian/patches/0074-uefi-firmware-rename-fwsetup-menuentry-to-UEFI-Firmw.patch | 103 | rename to debian/patches/0074-uefi-firmware-rename-fwsetup-menuentry-to-UEFI-Firmw.patch |
63 | index 0bab37b..a05249e 100644 | |||
64 | --- a/debian/patches/0075-uefi-firmware-rename-fwsetup-menuentry-to-UEFI-Firmw.patch | |||
65 | +++ b/debian/patches/0074-uefi-firmware-rename-fwsetup-menuentry-to-UEFI-Firmw.patch | |||
66 | @@ -1,4 +1,4 @@ | |||
68 | 1 | From 4d3c59dd378362f4e0e30aaaf77068bea97ebd24 Mon Sep 17 00:00:00 2001 | 1 | From c4966fe70800e0b8740bf45b02d63b51383d16ce Mon Sep 17 00:00:00 2001 |
69 | 2 | From: Dimitri John Ledkov <xnox@ubuntu.com> | 2 | From: Dimitri John Ledkov <xnox@ubuntu.com> |
70 | 3 | Date: Mon, 24 Feb 2020 20:29:53 +0000 | 3 | Date: Mon, 24 Feb 2020 20:29:53 +0000 |
71 | 4 | Subject: uefi-firmware: rename fwsetup menuentry to UEFI Firmware Settings | 4 | Subject: uefi-firmware: rename fwsetup menuentry to UEFI Firmware Settings |
72 | @@ -9,7 +9,7 @@ LP: #1864547 | |||
73 | 9 | 1 file changed, 2 insertions(+), 2 deletions(-) | 9 | 1 file changed, 2 insertions(+), 2 deletions(-) |
74 | 10 | 10 | ||
75 | 11 | diff --git a/util/grub.d/30_uefi-firmware.in b/util/grub.d/30_uefi-firmware.in | 11 | diff --git a/util/grub.d/30_uefi-firmware.in b/util/grub.d/30_uefi-firmware.in |
77 | 12 | index 3c9f533d8..b072d219f 100644 | 12 | index 3c9f533d8c..b072d219f6 100644 |
78 | 13 | --- a/util/grub.d/30_uefi-firmware.in | 13 | --- a/util/grub.d/30_uefi-firmware.in |
79 | 14 | +++ b/util/grub.d/30_uefi-firmware.in | 14 | +++ b/util/grub.d/30_uefi-firmware.in |
80 | 15 | @@ -32,9 +32,9 @@ OsIndications="$efi_vars_dir/OsIndicationsSupported-$EFI_GLOBAL_VARIABLE/data" | 15 | @@ -32,9 +32,9 @@ OsIndications="$efi_vars_dir/OsIndicationsSupported-$EFI_GLOBAL_VARIABLE/data" |
81 | diff --git a/debian/patches/0076-smbios-Add-a-linux-argument-to-apply-linux-modalias-.patch b/debian/patches/0075-smbios-Add-a-linux-argument-to-apply-linux-modalias-.patch | |||
82 | 16 | similarity index 97% | 16 | similarity index 97% |
83 | 17 | rename from debian/patches/0076-smbios-Add-a-linux-argument-to-apply-linux-modalias-.patch | 17 | rename from debian/patches/0076-smbios-Add-a-linux-argument-to-apply-linux-modalias-.patch |
84 | 18 | rename to debian/patches/0075-smbios-Add-a-linux-argument-to-apply-linux-modalias-.patch | 18 | rename to debian/patches/0075-smbios-Add-a-linux-argument-to-apply-linux-modalias-.patch |
85 | index c1bbac6..1b8e6eb 100644 | |||
86 | --- a/debian/patches/0076-smbios-Add-a-linux-argument-to-apply-linux-modalias-.patch | |||
87 | +++ b/debian/patches/0075-smbios-Add-a-linux-argument-to-apply-linux-modalias-.patch | |||
88 | @@ -1,4 +1,4 @@ | |||
90 | 1 | From b7ae50d78035e0e73f5ea212fab7b728353c988b Mon Sep 17 00:00:00 2001 | 1 | From cd73cd59b7e210a3e66af073c649c162930989ad Mon Sep 17 00:00:00 2001 |
91 | 2 | From: Julian Andres Klode <julian.klode@canonical.com> | 2 | From: Julian Andres Klode <julian.klode@canonical.com> |
92 | 3 | Date: Tue, 3 Mar 2020 16:06:34 +0100 | 3 | Date: Tue, 3 Mar 2020 16:06:34 +0100 |
93 | 4 | Subject: smbios: Add a --linux argument to apply linux modalias-like filtering | 4 | Subject: smbios: Add a --linux argument to apply linux modalias-like filtering |
94 | @@ -16,7 +16,7 @@ Origin: upstream, https://git.savannah.gnu.org/cgit/grub.git/commit/?id=87049f97 | |||
95 | 16 | 1 file changed, 24 insertions(+) | 16 | 1 file changed, 24 insertions(+) |
96 | 17 | 17 | ||
97 | 18 | diff --git a/grub-core/commands/smbios.c b/grub-core/commands/smbios.c | 18 | diff --git a/grub-core/commands/smbios.c b/grub-core/commands/smbios.c |
99 | 19 | index 7a6a391fc..1a9086ddd 100644 | 19 | index 7a6a391fc1..1a9086ddd4 100644 |
100 | 20 | --- a/grub-core/commands/smbios.c | 20 | --- a/grub-core/commands/smbios.c |
101 | 21 | +++ b/grub-core/commands/smbios.c | 21 | +++ b/grub-core/commands/smbios.c |
102 | 22 | @@ -64,6 +64,21 @@ grub_smbios_get_eps3 (void) | 22 | @@ -64,6 +64,21 @@ grub_smbios_get_eps3 (void) |
103 | diff --git a/debian/patches/0077-ubuntu-Make-the-linux-command-in-EFI-grub-always-try.patch b/debian/patches/0076-ubuntu-Make-the-linux-command-in-EFI-grub-always-try.patch | |||
104 | 23 | similarity index 97% | 23 | similarity index 97% |
105 | 24 | rename from debian/patches/0077-ubuntu-Make-the-linux-command-in-EFI-grub-always-try.patch | 24 | rename from debian/patches/0077-ubuntu-Make-the-linux-command-in-EFI-grub-always-try.patch |
106 | 25 | rename to debian/patches/0076-ubuntu-Make-the-linux-command-in-EFI-grub-always-try.patch | 25 | rename to debian/patches/0076-ubuntu-Make-the-linux-command-in-EFI-grub-always-try.patch |
107 | index 13e098e..5c44c1d 100644 | |||
108 | --- a/debian/patches/0077-ubuntu-Make-the-linux-command-in-EFI-grub-always-try.patch | |||
109 | +++ b/debian/patches/0076-ubuntu-Make-the-linux-command-in-EFI-grub-always-try.patch | |||
110 | @@ -1,4 +1,4 @@ | |||
112 | 1 | From 3004e78bbfe6acb5e38290b2e5c7fff277ea1628 Mon Sep 17 00:00:00 2001 | 1 | From 9a93d0f5a9216f71c4b9cbd041805911f476089e Mon Sep 17 00:00:00 2001 |
113 | 2 | From: Chris Coulson <chris.coulson@canonical.com> | 2 | From: Chris Coulson <chris.coulson@canonical.com> |
114 | 3 | Date: Wed, 11 Mar 2020 16:46:00 +0100 | 3 | Date: Wed, 11 Mar 2020 16:46:00 +0100 |
115 | 4 | Subject: ubuntu: Make the linux command in EFI grub always try EFI handover | 4 | Subject: ubuntu: Make the linux command in EFI grub always try EFI handover |
116 | @@ -18,7 +18,7 @@ only if secure boot is disabled. | |||
117 | 18 | 2 files changed, 35 insertions(+), 26 deletions(-) | 18 | 2 files changed, 35 insertions(+), 26 deletions(-) |
118 | 19 | 19 | ||
119 | 20 | diff --git a/grub-core/loader/i386/efi/linux.c b/grub-core/loader/i386/efi/linux.c | 20 | diff --git a/grub-core/loader/i386/efi/linux.c b/grub-core/loader/i386/efi/linux.c |
121 | 21 | index 6b6aef87f..fe3ca2c59 100644 | 21 | index 6b6aef87f7..fe3ca2c596 100644 |
122 | 22 | --- a/grub-core/loader/i386/efi/linux.c | 22 | --- a/grub-core/loader/i386/efi/linux.c |
123 | 23 | +++ b/grub-core/loader/i386/efi/linux.c | 23 | +++ b/grub-core/loader/i386/efi/linux.c |
124 | 24 | @@ -27,6 +27,7 @@ | 24 | @@ -27,6 +27,7 @@ |
125 | @@ -51,7 +51,7 @@ index 6b6aef87f..fe3ca2c59 100644 | |||
126 | 51 | 51 | ||
127 | 52 | params = grub_efi_allocate_pages_max (0x3fffffff, | 52 | params = grub_efi_allocate_pages_max (0x3fffffff, |
128 | 53 | diff --git a/grub-core/loader/i386/linux.c b/grub-core/loader/i386/linux.c | 53 | diff --git a/grub-core/loader/i386/linux.c b/grub-core/loader/i386/linux.c |
130 | 54 | index 4328bcbdb..991eb29db 100644 | 54 | index 4328bcbdb0..991eb29db9 100644 |
131 | 55 | --- a/grub-core/loader/i386/linux.c | 55 | --- a/grub-core/loader/i386/linux.c |
132 | 56 | +++ b/grub-core/loader/i386/linux.c | 56 | +++ b/grub-core/loader/i386/linux.c |
133 | 57 | @@ -658,35 +658,40 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)), | 57 | @@ -658,35 +658,40 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)), |
134 | diff --git a/debian/patches/0078-ubuntu-Update-the-linux-boot-protocol-version-check.patch b/debian/patches/0077-ubuntu-Update-the-linux-boot-protocol-version-check.patch | |||
135 | 58 | similarity index 91% | 58 | similarity index 91% |
136 | 59 | rename from debian/patches/0078-ubuntu-Update-the-linux-boot-protocol-version-check.patch | 59 | rename from debian/patches/0078-ubuntu-Update-the-linux-boot-protocol-version-check.patch |
137 | 60 | rename to debian/patches/0077-ubuntu-Update-the-linux-boot-protocol-version-check.patch | 60 | rename to debian/patches/0077-ubuntu-Update-the-linux-boot-protocol-version-check.patch |
138 | index 07e93a4..4727ee1 100644 | |||
139 | --- a/debian/patches/0078-ubuntu-Update-the-linux-boot-protocol-version-check.patch | |||
140 | +++ b/debian/patches/0077-ubuntu-Update-the-linux-boot-protocol-version-check.patch | |||
141 | @@ -1,4 +1,4 @@ | |||
143 | 1 | From 05c83490bed811e5dd5cde7c59bb56cc2db751d6 Mon Sep 17 00:00:00 2001 | 1 | From b2c861f6f5da96ecda0ef8d962bb0fa804a56825 Mon Sep 17 00:00:00 2001 |
144 | 2 | From: Chris Coulson <chris.coulson@canonical.com> | 2 | From: Chris Coulson <chris.coulson@canonical.com> |
145 | 3 | Date: Wed, 11 Mar 2020 16:46:41 +0100 | 3 | Date: Wed, 11 Mar 2020 16:46:41 +0100 |
146 | 4 | Subject: ubuntu: Update the linux boot protocol version check. | 4 | Subject: ubuntu: Update the linux boot protocol version check. |
147 | @@ -11,7 +11,7 @@ check accordingly. | |||
148 | 11 | 1 file changed, 1 insertion(+), 1 deletion(-) | 11 | 1 file changed, 1 insertion(+), 1 deletion(-) |
149 | 12 | 12 | ||
150 | 13 | diff --git a/grub-core/loader/i386/efi/linux.c b/grub-core/loader/i386/efi/linux.c | 13 | diff --git a/grub-core/loader/i386/efi/linux.c b/grub-core/loader/i386/efi/linux.c |
152 | 14 | index fe3ca2c59..2929da7a2 100644 | 14 | index fe3ca2c596..2929da7a29 100644 |
153 | 15 | --- a/grub-core/loader/i386/efi/linux.c | 15 | --- a/grub-core/loader/i386/efi/linux.c |
154 | 16 | +++ b/grub-core/loader/i386/efi/linux.c | 16 | +++ b/grub-core/loader/i386/efi/linux.c |
155 | 17 | @@ -245,7 +245,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)), | 17 | @@ -245,7 +245,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)), |
156 | diff --git a/debian/patches/at_keyboard-module-init.patch b/debian/patches/at_keyboard-module-init.patch | |||
157 | index faafb46..5f504c8 100644 | |||
158 | --- a/debian/patches/at_keyboard-module-init.patch | |||
159 | +++ b/debian/patches/at_keyboard-module-init.patch | |||
160 | @@ -1,4 +1,4 @@ | |||
162 | 1 | From 2fa183df8ec4037976444a92810672b0fa3f75b4 Mon Sep 17 00:00:00 2001 | 1 | From fd386a087b6c64b28f1b80d03b35d7dcf552b143 Mon Sep 17 00:00:00 2001 |
163 | 2 | From: Jeroen Dekkers <jeroen@dekkers.ch> | 2 | From: Jeroen Dekkers <jeroen@dekkers.ch> |
164 | 3 | Date: Sat, 12 Jan 2019 21:02:18 +0100 | 3 | Date: Sat, 12 Jan 2019 21:02:18 +0100 |
165 | 4 | Subject: at_keyboard: initialize keyboard in module init if keyboard is ready | 4 | Subject: at_keyboard: initialize keyboard in module init if keyboard is ready |
166 | @@ -16,7 +16,7 @@ Patch-Name: at_keyboard-module-init.patch | |||
167 | 16 | 1 file changed, 9 insertions(+) | 16 | 1 file changed, 9 insertions(+) |
168 | 17 | 17 | ||
169 | 18 | diff --git a/grub-core/term/at_keyboard.c b/grub-core/term/at_keyboard.c | 18 | diff --git a/grub-core/term/at_keyboard.c b/grub-core/term/at_keyboard.c |
171 | 19 | index f0a986eb1..d4395c201 100644 | 19 | index f0a986eb17..d4395c2019 100644 |
172 | 20 | --- a/grub-core/term/at_keyboard.c | 20 | --- a/grub-core/term/at_keyboard.c |
173 | 21 | +++ b/grub-core/term/at_keyboard.c | 21 | +++ b/grub-core/term/at_keyboard.c |
174 | 22 | @@ -244,6 +244,14 @@ grub_at_keyboard_getkey (struct grub_term_input *term __attribute__ ((unused))) | 22 | @@ -244,6 +244,14 @@ grub_at_keyboard_getkey (struct grub_term_input *term __attribute__ ((unused))) |
175 | diff --git a/debian/patches/bash-completion-drop-have-checks.patch b/debian/patches/bash-completion-drop-have-checks.patch | |||
176 | index acb2021..e7eaa80 100644 | |||
177 | --- a/debian/patches/bash-completion-drop-have-checks.patch | |||
178 | +++ b/debian/patches/bash-completion-drop-have-checks.patch | |||
179 | @@ -1,4 +1,4 @@ | |||
181 | 1 | From 1eee32e5a695ce788c97203f0fba724bf5dc3a19 Mon Sep 17 00:00:00 2001 | 1 | From b4b380c0cbec13b3797a570e651e94cdc349bb2f Mon Sep 17 00:00:00 2001 |
182 | 2 | From: Colin Watson <cjwatson@debian.org> | 2 | From: Colin Watson <cjwatson@debian.org> |
183 | 3 | Date: Fri, 16 Nov 2018 16:37:02 +0000 | 3 | Date: Fri, 16 Nov 2018 16:37:02 +0000 |
184 | 4 | Subject: bash-completion: Drop "have" checks | 4 | Subject: bash-completion: Drop "have" checks |
185 | @@ -16,7 +16,7 @@ Patch-Name: bash-completion-drop-have-checks.patch | |||
186 | 16 | 1 file changed, 13 insertions(+), 26 deletions(-) | 16 | 1 file changed, 13 insertions(+), 26 deletions(-) |
187 | 17 | 17 | ||
188 | 18 | diff --git a/util/bash-completion.d/grub-completion.bash.in b/util/bash-completion.d/grub-completion.bash.in | 18 | diff --git a/util/bash-completion.d/grub-completion.bash.in b/util/bash-completion.d/grub-completion.bash.in |
190 | 19 | index 44bf135b9..d4235e7ef 100644 | 19 | index 44bf135b9f..d4235e7ef8 100644 |
191 | 20 | --- a/util/bash-completion.d/grub-completion.bash.in | 20 | --- a/util/bash-completion.d/grub-completion.bash.in |
192 | 21 | +++ b/util/bash-completion.d/grub-completion.bash.in | 21 | +++ b/util/bash-completion.d/grub-completion.bash.in |
193 | 22 | @@ -166,13 +166,11 @@ _grub_set_entry () { | 22 | @@ -166,13 +166,11 @@ _grub_set_entry () { |
194 | diff --git a/debian/patches/blacklist-1440x900x32.patch b/debian/patches/blacklist-1440x900x32.patch | |||
195 | index 5043cf4..10062b6 100644 | |||
196 | --- a/debian/patches/blacklist-1440x900x32.patch | |||
197 | +++ b/debian/patches/blacklist-1440x900x32.patch | |||
198 | @@ -1,4 +1,4 @@ | |||
200 | 1 | From a7d121953a5158ccd4e8789a475cd43b83c2b779 Mon Sep 17 00:00:00 2001 | 1 | From 9633a0226ecad133582225d7d5decd7f344b376d Mon Sep 17 00:00:00 2001 |
201 | 2 | From: Colin Watson <cjwatson@ubuntu.com> | 2 | From: Colin Watson <cjwatson@ubuntu.com> |
202 | 3 | Date: Mon, 13 Jan 2014 12:13:11 +0000 | 3 | Date: Mon, 13 Jan 2014 12:13:11 +0000 |
203 | 4 | Subject: Blacklist 1440x900x32 from VBE preferred mode handling | 4 | Subject: Blacklist 1440x900x32 from VBE preferred mode handling |
204 | @@ -13,7 +13,7 @@ Patch-Name: blacklist-1440x900x32.patch | |||
205 | 13 | 1 file changed, 9 insertions(+) | 13 | 1 file changed, 9 insertions(+) |
206 | 14 | 14 | ||
207 | 15 | diff --git a/grub-core/video/i386/pc/vbe.c b/grub-core/video/i386/pc/vbe.c | 15 | diff --git a/grub-core/video/i386/pc/vbe.c b/grub-core/video/i386/pc/vbe.c |
209 | 16 | index b7f911926..4b1bd7d5e 100644 | 16 | index b7f911926d..4b1bd7d5ea 100644 |
210 | 17 | --- a/grub-core/video/i386/pc/vbe.c | 17 | --- a/grub-core/video/i386/pc/vbe.c |
211 | 18 | +++ b/grub-core/video/i386/pc/vbe.c | 18 | +++ b/grub-core/video/i386/pc/vbe.c |
212 | 19 | @@ -1054,6 +1054,15 @@ grub_video_vbe_setup (unsigned int width, unsigned int height, | 19 | @@ -1054,6 +1054,15 @@ grub_video_vbe_setup (unsigned int width, unsigned int height, |
213 | diff --git a/debian/patches/bootp-new-net_bootp6-command.patch b/debian/patches/bootp-new-net_bootp6-command.patch | |||
214 | index d53a2f2..dd56826 100644 | |||
215 | --- a/debian/patches/bootp-new-net_bootp6-command.patch | |||
216 | +++ b/debian/patches/bootp-new-net_bootp6-command.patch | |||
217 | @@ -1,4 +1,4 @@ | |||
219 | 1 | From 8624974d81aaa8eabd6328c99ec5c7d204c80638 Mon Sep 17 00:00:00 2001 | 1 | From 5376a44e70409088670de36d2ec82a1b48259cbd Mon Sep 17 00:00:00 2001 |
220 | 2 | From: Michael Chang <mchang@suse.com> | 2 | From: Michael Chang <mchang@suse.com> |
221 | 3 | Date: Thu, 27 Oct 2016 17:41:04 -0400 | 3 | Date: Thu, 27 Oct 2016 17:41:04 -0400 |
222 | 4 | Subject: bootp: New net_bootp6 command | 4 | Subject: bootp: New net_bootp6 command |
223 | @@ -17,7 +17,7 @@ Patch-Name: bootp-new-net_bootp6-command.patch | |||
224 | 17 | 3 files changed, 1018 insertions(+), 1 deletion(-) | 17 | 3 files changed, 1018 insertions(+), 1 deletion(-) |
225 | 18 | 18 | ||
226 | 19 | diff --git a/grub-core/net/bootp.c b/grub-core/net/bootp.c | 19 | diff --git a/grub-core/net/bootp.c b/grub-core/net/bootp.c |
228 | 20 | index 04cfbb045..21c1824ef 100644 | 20 | index 04cfbb0450..21c1824efb 100644 |
229 | 21 | --- a/grub-core/net/bootp.c | 21 | --- a/grub-core/net/bootp.c |
230 | 22 | +++ b/grub-core/net/bootp.c | 22 | +++ b/grub-core/net/bootp.c |
231 | 23 | @@ -24,6 +24,98 @@ | 23 | @@ -24,6 +24,98 @@ |
232 | @@ -969,7 +969,7 @@ index 04cfbb045..21c1824ef 100644 | |||
233 | 969 | + grub_unregister_command (cmd_bootp6); | 969 | + grub_unregister_command (cmd_bootp6); |
234 | 970 | } | 970 | } |
235 | 971 | diff --git a/grub-core/net/ip.c b/grub-core/net/ip.c | 971 | diff --git a/grub-core/net/ip.c b/grub-core/net/ip.c |
237 | 972 | index ea5edf8f1..01410798b 100644 | 972 | index ea5edf8f1f..01410798b3 100644 |
238 | 973 | --- a/grub-core/net/ip.c | 973 | --- a/grub-core/net/ip.c |
239 | 974 | +++ b/grub-core/net/ip.c | 974 | +++ b/grub-core/net/ip.c |
240 | 975 | @@ -239,6 +239,45 @@ handle_dgram (struct grub_net_buff *nb, | 975 | @@ -239,6 +239,45 @@ handle_dgram (struct grub_net_buff *nb, |
241 | @@ -1019,7 +1019,7 @@ index ea5edf8f1..01410798b 100644 | |||
242 | 1019 | { | 1019 | { |
243 | 1020 | const struct grub_net_bootp_packet *bootp; | 1020 | const struct grub_net_bootp_packet *bootp; |
244 | 1021 | diff --git a/include/grub/net.h b/include/grub/net.h | 1021 | diff --git a/include/grub/net.h b/include/grub/net.h |
246 | 1022 | index cc114286e..58cff96d2 100644 | 1022 | index cc114286ea..58cff96d2a 100644 |
247 | 1023 | --- a/include/grub/net.h | 1023 | --- a/include/grub/net.h |
248 | 1024 | +++ b/include/grub/net.h | 1024 | +++ b/include/grub/net.h |
249 | 1025 | @@ -448,6 +448,66 @@ struct grub_net_bootp_packet | 1025 | @@ -448,6 +448,66 @@ struct grub_net_bootp_packet |
250 | diff --git a/debian/patches/bootp-process-dhcpack-http-boot.patch b/debian/patches/bootp-process-dhcpack-http-boot.patch | |||
251 | index 74e9508..075eeca 100644 | |||
252 | --- a/debian/patches/bootp-process-dhcpack-http-boot.patch | |||
253 | +++ b/debian/patches/bootp-process-dhcpack-http-boot.patch | |||
254 | @@ -1,4 +1,4 @@ | |||
256 | 1 | From 3de9845e404a99dc3122efbf7c2570482097c412 Mon Sep 17 00:00:00 2001 | 1 | From 583bf554edc8aae87c44e7c9f984835b246e2f0b Mon Sep 17 00:00:00 2001 |
257 | 2 | From: Michael Chang <mchang@suse.com> | 2 | From: Michael Chang <mchang@suse.com> |
258 | 3 | Date: Thu, 27 Oct 2016 17:42:19 -0400 | 3 | Date: Thu, 27 Oct 2016 17:42:19 -0400 |
259 | 4 | Subject: bootp: Add processing DHCPACK packet from HTTP Boot | 4 | Subject: bootp: Add processing DHCPACK packet from HTTP Boot |
260 | @@ -24,7 +24,7 @@ Patch-Name: bootp-process-dhcpack-http-boot.patch | |||
261 | 24 | 2 files changed, 60 insertions(+), 1 deletion(-) | 24 | 2 files changed, 60 insertions(+), 1 deletion(-) |
262 | 25 | 25 | ||
263 | 26 | diff --git a/grub-core/net/bootp.c b/grub-core/net/bootp.c | 26 | diff --git a/grub-core/net/bootp.c b/grub-core/net/bootp.c |
265 | 27 | index 21c1824ef..558d97ba1 100644 | 27 | index 21c1824efb..558d97ba1e 100644 |
266 | 28 | --- a/grub-core/net/bootp.c | 28 | --- a/grub-core/net/bootp.c |
267 | 29 | +++ b/grub-core/net/bootp.c | 29 | +++ b/grub-core/net/bootp.c |
268 | 30 | @@ -154,7 +154,7 @@ struct grub_dhcp_request_options | 30 | @@ -154,7 +154,7 @@ struct grub_dhcp_request_options |
269 | @@ -109,7 +109,7 @@ index 21c1824ef..558d97ba1 100644 | |||
270 | 109 | }, | 109 | }, |
271 | 110 | GRUB_NET_BOOTP_END, | 110 | GRUB_NET_BOOTP_END, |
272 | 111 | diff --git a/include/grub/net.h b/include/grub/net.h | 111 | diff --git a/include/grub/net.h b/include/grub/net.h |
274 | 112 | index 58cff96d2..b5f9e617e 100644 | 112 | index 58cff96d2a..b5f9e617e5 100644 |
275 | 113 | --- a/include/grub/net.h | 113 | --- a/include/grub/net.h |
276 | 114 | +++ b/include/grub/net.h | 114 | +++ b/include/grub/net.h |
277 | 115 | @@ -523,6 +523,7 @@ enum | 115 | @@ -523,6 +523,7 @@ enum |
278 | diff --git a/debian/patches/cherrypick-lsefisystab-define-smbios3.patch b/debian/patches/cherrypick-lsefisystab-define-smbios3.patch | |||
279 | index 612fc32..2744692 100644 | |||
280 | --- a/debian/patches/cherrypick-lsefisystab-define-smbios3.patch | |||
281 | +++ b/debian/patches/cherrypick-lsefisystab-define-smbios3.patch | |||
282 | @@ -1,4 +1,4 @@ | |||
284 | 1 | From 0bc1e64554d9dfbcfaf5e384fcb772f861a548d8 Mon Sep 17 00:00:00 2001 | 1 | From 552a1e20296307d177e1d679cae45bc78e101ecc Mon Sep 17 00:00:00 2001 |
285 | 2 | From: David Michael <fedora.dm0@gmail.com> | 2 | From: David Michael <fedora.dm0@gmail.com> |
286 | 3 | Date: Fri, 5 Jul 2019 08:47:02 -0400 | 3 | Date: Fri, 5 Jul 2019 08:47:02 -0400 |
287 | 4 | Subject: lsefisystab: Define SMBIOS3 entry point structures for EFI | 4 | Subject: lsefisystab: Define SMBIOS3 entry point structures for EFI |
288 | @@ -16,7 +16,7 @@ Patch-Name: cherrypick-lsefisystab-define-smbios3.patch | |||
289 | 16 | 2 files changed, 6 insertions(+) | 16 | 2 files changed, 6 insertions(+) |
290 | 17 | 17 | ||
291 | 18 | diff --git a/grub-core/commands/efi/lsefisystab.c b/grub-core/commands/efi/lsefisystab.c | 18 | diff --git a/grub-core/commands/efi/lsefisystab.c b/grub-core/commands/efi/lsefisystab.c |
293 | 19 | index df1030221..7c039c509 100644 | 19 | index df10302218..7c039c5097 100644 |
294 | 20 | --- a/grub-core/commands/efi/lsefisystab.c | 20 | --- a/grub-core/commands/efi/lsefisystab.c |
295 | 21 | +++ b/grub-core/commands/efi/lsefisystab.c | 21 | +++ b/grub-core/commands/efi/lsefisystab.c |
296 | 22 | @@ -48,6 +48,7 @@ static const struct guid_mapping guid_mappings[] = | 22 | @@ -48,6 +48,7 @@ static const struct guid_mapping guid_mappings[] = |
297 | @@ -28,7 +28,7 @@ index df1030221..7c039c509 100644 | |||
298 | 28 | { GRUB_EFI_TIANO_CUSTOM_DECOMPRESS_GUID, "TIANO CUSTOM DECOMPRESS"}, | 28 | { GRUB_EFI_TIANO_CUSTOM_DECOMPRESS_GUID, "TIANO CUSTOM DECOMPRESS"}, |
299 | 29 | { GRUB_EFI_TSC_FREQUENCY_GUID, "TSC FREQUENCY"}, | 29 | { GRUB_EFI_TSC_FREQUENCY_GUID, "TSC FREQUENCY"}, |
300 | 30 | diff --git a/include/grub/efi/api.h b/include/grub/efi/api.h | 30 | diff --git a/include/grub/efi/api.h b/include/grub/efi/api.h |
302 | 31 | index 75befd10e..9824fbcd0 100644 | 31 | index 75befd10e5..9824fbcd0d 100644 |
303 | 32 | --- a/include/grub/efi/api.h | 32 | --- a/include/grub/efi/api.h |
304 | 33 | +++ b/include/grub/efi/api.h | 33 | +++ b/include/grub/efi/api.h |
305 | 34 | @@ -314,6 +314,11 @@ | 34 | @@ -314,6 +314,11 @@ |
306 | diff --git a/debian/patches/cherrypick-lsefisystab-show-dtb.patch b/debian/patches/cherrypick-lsefisystab-show-dtb.patch | |||
307 | index 6516840..8c17a83 100644 | |||
308 | --- a/debian/patches/cherrypick-lsefisystab-show-dtb.patch | |||
309 | +++ b/debian/patches/cherrypick-lsefisystab-show-dtb.patch | |||
310 | @@ -1,4 +1,4 @@ | |||
312 | 1 | From b5a07214b83812f0b8b42dc576021e98237498e6 Mon Sep 17 00:00:00 2001 | 1 | From ffba11952bfc8ec3456d8b72db122550386a25ae Mon Sep 17 00:00:00 2001 |
313 | 2 | From: Heinrich Schuchardt <xypron.glpk@gmx.de> | 2 | From: Heinrich Schuchardt <xypron.glpk@gmx.de> |
314 | 3 | Date: Sat, 6 Jul 2019 11:11:02 +0200 | 3 | Date: Sat, 6 Jul 2019 11:11:02 +0200 |
315 | 4 | Subject: lsefisystab: Add support for device tree table | 4 | Subject: lsefisystab: Add support for device tree table |
316 | @@ -27,7 +27,7 @@ Patch-Name: cherrypick-lsefisystab-show-dtb.patch | |||
317 | 27 | 1 file changed, 1 insertion(+) | 27 | 1 file changed, 1 insertion(+) |
318 | 28 | 28 | ||
319 | 29 | diff --git a/grub-core/commands/efi/lsefisystab.c b/grub-core/commands/efi/lsefisystab.c | 29 | diff --git a/grub-core/commands/efi/lsefisystab.c b/grub-core/commands/efi/lsefisystab.c |
321 | 30 | index 7c039c509..902788250 100644 | 30 | index 7c039c5097..902788250e 100644 |
322 | 31 | --- a/grub-core/commands/efi/lsefisystab.c | 31 | --- a/grub-core/commands/efi/lsefisystab.c |
323 | 32 | +++ b/grub-core/commands/efi/lsefisystab.c | 32 | +++ b/grub-core/commands/efi/lsefisystab.c |
324 | 33 | @@ -40,6 +40,7 @@ static const struct guid_mapping guid_mappings[] = | 33 | @@ -40,6 +40,7 @@ static const struct guid_mapping guid_mappings[] = |
325 | diff --git a/debian/patches/cherrypick-smbios-module.patch b/debian/patches/cherrypick-smbios-module.patch | |||
326 | index 8bbe12b..7318eaa 100644 | |||
327 | --- a/debian/patches/cherrypick-smbios-module.patch | |||
328 | +++ b/debian/patches/cherrypick-smbios-module.patch | |||
329 | @@ -1,4 +1,4 @@ | |||
331 | 1 | From 982cd5b597e964da666ebdab41c727823a50c776 Mon Sep 17 00:00:00 2001 | 1 | From 4dcbe95e3769a3665139e88cf1e179a802984493 Mon Sep 17 00:00:00 2001 |
332 | 2 | From: David Michael <fedora.dm0@gmail.com> | 2 | From: David Michael <fedora.dm0@gmail.com> |
333 | 3 | Date: Fri, 5 Jul 2019 08:47:09 -0400 | 3 | Date: Fri, 5 Jul 2019 08:47:09 -0400 |
334 | 4 | Subject: smbios: Add a module for retrieving SMBIOS information | 4 | Subject: smbios: Add a module for retrieving SMBIOS information |
335 | @@ -33,7 +33,7 @@ Patch-Name: cherrypick-smbios-module.patch | |||
336 | 33 | create mode 100644 include/grub/smbios.h | 33 | create mode 100644 include/grub/smbios.h |
337 | 34 | 34 | ||
338 | 35 | diff --git a/docs/grub.texi b/docs/grub.texi | 35 | diff --git a/docs/grub.texi b/docs/grub.texi |
340 | 36 | index 1baa0fa20..d573f32cb 100644 | 36 | index 1baa0fa20f..d573f32cbb 100644 |
341 | 37 | --- a/docs/grub.texi | 37 | --- a/docs/grub.texi |
342 | 38 | +++ b/docs/grub.texi | 38 | +++ b/docs/grub.texi |
343 | 39 | @@ -3976,6 +3976,7 @@ you forget a command, you can run the command @command{help} | 39 | @@ -3976,6 +3976,7 @@ you forget a command, you can run the command @command{help} |
344 | @@ -126,7 +126,7 @@ index 1baa0fa20..d573f32cb 100644 | |||
345 | 126 | @subsection source | 126 | @subsection source |
346 | 127 | 127 | ||
347 | 128 | diff --git a/grub-core/Makefile.core.def b/grub-core/Makefile.core.def | 128 | diff --git a/grub-core/Makefile.core.def b/grub-core/Makefile.core.def |
349 | 129 | index 33e75021d..9b20f3335 100644 | 129 | index 33e75021da..9b20f33355 100644 |
350 | 130 | --- a/grub-core/Makefile.core.def | 130 | --- a/grub-core/Makefile.core.def |
351 | 131 | +++ b/grub-core/Makefile.core.def | 131 | +++ b/grub-core/Makefile.core.def |
352 | 132 | @@ -1106,6 +1106,21 @@ module = { | 132 | @@ -1106,6 +1106,21 @@ module = { |
353 | @@ -153,7 +153,7 @@ index 33e75021d..9b20f3335 100644 | |||
354 | 153 | ieee1275 = commands/ieee1275/suspend.c; | 153 | ieee1275 = commands/ieee1275/suspend.c; |
355 | 154 | diff --git a/grub-core/commands/efi/smbios.c b/grub-core/commands/efi/smbios.c | 154 | diff --git a/grub-core/commands/efi/smbios.c b/grub-core/commands/efi/smbios.c |
356 | 155 | new file mode 100644 | 155 | new file mode 100644 |
358 | 156 | index 000000000..75202d5aa | 156 | index 0000000000..75202d5aad |
359 | 157 | --- /dev/null | 157 | --- /dev/null |
360 | 158 | +++ b/grub-core/commands/efi/smbios.c | 158 | +++ b/grub-core/commands/efi/smbios.c |
361 | 159 | @@ -0,0 +1,61 @@ | 159 | @@ -0,0 +1,61 @@ |
362 | @@ -220,7 +220,7 @@ index 000000000..75202d5aa | |||
363 | 220 | +} | 220 | +} |
364 | 221 | diff --git a/grub-core/commands/i386/pc/smbios.c b/grub-core/commands/i386/pc/smbios.c | 221 | diff --git a/grub-core/commands/i386/pc/smbios.c b/grub-core/commands/i386/pc/smbios.c |
365 | 222 | new file mode 100644 | 222 | new file mode 100644 |
367 | 223 | index 000000000..069d66367 | 223 | index 0000000000..069d663673 |
368 | 224 | --- /dev/null | 224 | --- /dev/null |
369 | 225 | +++ b/grub-core/commands/i386/pc/smbios.c | 225 | +++ b/grub-core/commands/i386/pc/smbios.c |
370 | 226 | @@ -0,0 +1,52 @@ | 226 | @@ -0,0 +1,52 @@ |
371 | @@ -278,7 +278,7 @@ index 000000000..069d66367 | |||
372 | 278 | +} | 278 | +} |
373 | 279 | diff --git a/grub-core/commands/smbios.c b/grub-core/commands/smbios.c | 279 | diff --git a/grub-core/commands/smbios.c b/grub-core/commands/smbios.c |
374 | 280 | new file mode 100644 | 280 | new file mode 100644 |
376 | 281 | index 000000000..7a6a391fc | 281 | index 0000000000..7a6a391fc1 |
377 | 282 | --- /dev/null | 282 | --- /dev/null |
378 | 283 | +++ b/grub-core/commands/smbios.c | 283 | +++ b/grub-core/commands/smbios.c |
379 | 284 | @@ -0,0 +1,374 @@ | 284 | @@ -0,0 +1,374 @@ |
380 | @@ -657,7 +657,7 @@ index 000000000..7a6a391fc | |||
381 | 657 | + grub_unregister_extcmd (cmd); | 657 | + grub_unregister_extcmd (cmd); |
382 | 658 | +} | 658 | +} |
383 | 659 | diff --git a/grub-core/efiemu/i386/pc/cfgtables.c b/grub-core/efiemu/i386/pc/cfgtables.c | 659 | diff --git a/grub-core/efiemu/i386/pc/cfgtables.c b/grub-core/efiemu/i386/pc/cfgtables.c |
385 | 660 | index 492c07c46..e5fffb7d4 100644 | 660 | index 492c07c468..e5fffb7d4a 100644 |
386 | 661 | --- a/grub-core/efiemu/i386/pc/cfgtables.c | 661 | --- a/grub-core/efiemu/i386/pc/cfgtables.c |
387 | 662 | +++ b/grub-core/efiemu/i386/pc/cfgtables.c | 662 | +++ b/grub-core/efiemu/i386/pc/cfgtables.c |
388 | 663 | @@ -22,11 +22,11 @@ | 663 | @@ -22,11 +22,11 @@ |
389 | @@ -696,7 +696,7 @@ index 492c07c46..e5fffb7d4 100644 | |||
390 | 696 | } | 696 | } |
391 | 697 | diff --git a/include/grub/smbios.h b/include/grub/smbios.h | 697 | diff --git a/include/grub/smbios.h b/include/grub/smbios.h |
392 | 698 | new file mode 100644 | 698 | new file mode 100644 |
394 | 699 | index 000000000..15ec260b3 | 699 | index 0000000000..15ec260b32 |
395 | 700 | --- /dev/null | 700 | --- /dev/null |
396 | 701 | +++ b/include/grub/smbios.h | 701 | +++ b/include/grub/smbios.h |
397 | 702 | @@ -0,0 +1,69 @@ | 702 | @@ -0,0 +1,69 @@ |
398 | diff --git a/debian/patches/core-in-fs.patch b/debian/patches/core-in-fs.patch | |||
399 | index 1ba3b4b..b8e13d3 100644 | |||
400 | --- a/debian/patches/core-in-fs.patch | |||
401 | +++ b/debian/patches/core-in-fs.patch | |||
402 | @@ -11,7 +11,7 @@ Patch-Name: core-in-fs.patch | |||
403 | 11 | 1 file changed, 8 insertions(+) | 11 | 1 file changed, 8 insertions(+) |
404 | 12 | 12 | ||
405 | 13 | diff --git a/util/setup.c b/util/setup.c | 13 | diff --git a/util/setup.c b/util/setup.c |
407 | 14 | index 6f88f3cc4..fbdf2fcc5 100644 | 14 | index 6f88f3cc43..fbdf2fcc59 100644 |
408 | 15 | --- a/util/setup.c | 15 | --- a/util/setup.c |
409 | 16 | +++ b/util/setup.c | 16 | +++ b/util/setup.c |
410 | 17 | @@ -58,6 +58,8 @@ | 17 | @@ -58,6 +58,8 @@ |
411 | diff --git a/debian/patches/default-grub-d.patch b/debian/patches/default-grub-d.patch | |||
412 | index dc61a66..0837cbd 100644 | |||
413 | --- a/debian/patches/default-grub-d.patch | |||
414 | +++ b/debian/patches/default-grub-d.patch | |||
415 | @@ -1,4 +1,4 @@ | |||
417 | 1 | From e1e966557a634500e95e2ec691a0cb8fca144aae Mon Sep 17 00:00:00 2001 | 1 | From 43da93f26fcd81893edb2bbe10f87879a95dcbc5 Mon Sep 17 00:00:00 2001 |
418 | 2 | From: Colin Watson <cjwatson@ubuntu.com> | 2 | From: Colin Watson <cjwatson@ubuntu.com> |
419 | 3 | Date: Mon, 13 Jan 2014 12:13:10 +0000 | 3 | Date: Mon, 13 Jan 2014 12:13:10 +0000 |
420 | 4 | Subject: Read /etc/default/grub.d/*.cfg after /etc/default/grub | 4 | Subject: Read /etc/default/grub.d/*.cfg after /etc/default/grub |
421 | @@ -14,7 +14,7 @@ Patch-Name: default-grub-d.patch | |||
422 | 14 | 2 files changed, 98 insertions(+), 21 deletions(-) | 14 | 2 files changed, 98 insertions(+), 21 deletions(-) |
423 | 15 | 15 | ||
424 | 16 | diff --git a/grub-core/osdep/unix/config.c b/grub-core/osdep/unix/config.c | 16 | diff --git a/grub-core/osdep/unix/config.c b/grub-core/osdep/unix/config.c |
426 | 17 | index 65effa9f3..5478030fd 100644 | 17 | index 65effa9f3a..5478030fde 100644 |
427 | 18 | --- a/grub-core/osdep/unix/config.c | 18 | --- a/grub-core/osdep/unix/config.c |
428 | 19 | +++ b/grub-core/osdep/unix/config.c | 19 | +++ b/grub-core/osdep/unix/config.c |
429 | 20 | @@ -24,6 +24,8 @@ | 20 | @@ -24,6 +24,8 @@ |
430 | @@ -178,7 +178,7 @@ index 65effa9f3..5478030fd 100644 | |||
431 | 178 | + free (cfgdir); | 178 | + free (cfgdir); |
432 | 179 | } | 179 | } |
433 | 180 | diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in | 180 | diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in |
435 | 181 | index b506d63bf..d18bf972f 100644 | 181 | index b506d63bf9..d18bf972f7 100644 |
436 | 182 | --- a/util/grub-mkconfig.in | 182 | --- a/util/grub-mkconfig.in |
437 | 183 | +++ b/util/grub-mkconfig.in | 183 | +++ b/util/grub-mkconfig.in |
438 | 184 | @@ -164,6 +164,11 @@ fi | 184 | @@ -164,6 +164,11 @@ fi |
439 | diff --git a/debian/patches/disable-floppies.patch b/debian/patches/disable-floppies.patch | |||
440 | index 7d4835e..981b9ec 100644 | |||
441 | --- a/debian/patches/disable-floppies.patch | |||
442 | +++ b/debian/patches/disable-floppies.patch | |||
443 | @@ -13,7 +13,7 @@ Patch-Name: disable-floppies.patch | |||
444 | 13 | 1 file changed, 12 insertions(+) | 13 | 1 file changed, 12 insertions(+) |
445 | 14 | 14 | ||
446 | 15 | diff --git a/grub-core/kern/emu/hostdisk.c b/grub-core/kern/emu/hostdisk.c | 15 | diff --git a/grub-core/kern/emu/hostdisk.c b/grub-core/kern/emu/hostdisk.c |
448 | 16 | index e9ec680cd..8ac523953 100644 | 16 | index e9ec680cdb..8ac5239538 100644 |
449 | 17 | --- a/grub-core/kern/emu/hostdisk.c | 17 | --- a/grub-core/kern/emu/hostdisk.c |
450 | 18 | +++ b/grub-core/kern/emu/hostdisk.c | 18 | +++ b/grub-core/kern/emu/hostdisk.c |
451 | 19 | @@ -532,6 +532,18 @@ read_device_map (const char *dev_map) | 19 | @@ -532,6 +532,18 @@ read_device_map (const char *dev_map) |
452 | diff --git a/debian/patches/dpkg-version-comparison.patch b/debian/patches/dpkg-version-comparison.patch | |||
453 | index 86e5c7e..929070f 100644 | |||
454 | --- a/debian/patches/dpkg-version-comparison.patch | |||
455 | +++ b/debian/patches/dpkg-version-comparison.patch | |||
456 | @@ -12,7 +12,7 @@ Patch-Name: dpkg-version-comparison.patch | |||
457 | 12 | 1 file changed, 4 insertions(+), 3 deletions(-) | 12 | 1 file changed, 4 insertions(+), 3 deletions(-) |
458 | 13 | 13 | ||
459 | 14 | diff --git a/util/grub-mkconfig_lib.in b/util/grub-mkconfig_lib.in | 14 | diff --git a/util/grub-mkconfig_lib.in b/util/grub-mkconfig_lib.in |
461 | 15 | index 0f801cab3..b6606c16e 100644 | 15 | index 0f801cab3e..b6606c16e0 100644 |
462 | 16 | --- a/util/grub-mkconfig_lib.in | 16 | --- a/util/grub-mkconfig_lib.in |
463 | 17 | +++ b/util/grub-mkconfig_lib.in | 17 | +++ b/util/grub-mkconfig_lib.in |
464 | 18 | @@ -239,8 +239,9 @@ version_test_numeric () | 18 | @@ -239,8 +239,9 @@ version_test_numeric () |
465 | diff --git a/debian/patches/efi-variable-storage-minimise-writes.patch b/debian/patches/efi-variable-storage-minimise-writes.patch | |||
466 | index 5078aa3..1cd6507 100644 | |||
467 | --- a/debian/patches/efi-variable-storage-minimise-writes.patch | |||
468 | +++ b/debian/patches/efi-variable-storage-minimise-writes.patch | |||
469 | @@ -1,4 +1,4 @@ | |||
471 | 1 | From 20dd578ec8d17d92790121ce010de0e49eaf9cef Mon Sep 17 00:00:00 2001 | 1 | From 5028184f2c8baf38d6849aa771c4d064fdcd0529 Mon Sep 17 00:00:00 2001 |
472 | 2 | From: Colin Watson <cjwatson@ubuntu.com> | 2 | From: Colin Watson <cjwatson@ubuntu.com> |
473 | 3 | Date: Mon, 11 Mar 2019 11:17:43 +0000 | 3 | Date: Mon, 11 Mar 2019 11:17:43 +0000 |
474 | 4 | Subject: Minimise writes to EFI variable storage | 4 | Subject: Minimise writes to EFI variable storage |
475 | @@ -60,7 +60,7 @@ Patch-Name: efi-variable-storage-minimise-writes.patch | |||
476 | 60 | create mode 100644 grub-core/osdep/unix/efivar.c | 60 | create mode 100644 grub-core/osdep/unix/efivar.c |
477 | 61 | 61 | ||
478 | 62 | diff --git a/INSTALL b/INSTALL | 62 | diff --git a/INSTALL b/INSTALL |
480 | 63 | index 8acb40902..342c158e9 100644 | 63 | index 8acb409023..342c158e91 100644 |
481 | 64 | --- a/INSTALL | 64 | --- a/INSTALL |
482 | 65 | +++ b/INSTALL | 65 | +++ b/INSTALL |
483 | 66 | @@ -41,6 +41,11 @@ configuring the GRUB. | 66 | @@ -41,6 +41,11 @@ configuring the GRUB. |
484 | @@ -76,7 +76,7 @@ index 8acb40902..342c158e9 100644 | |||
485 | 76 | 76 | ||
486 | 77 | * libdevmapper 1.02.34 or later (recommended) | 77 | * libdevmapper 1.02.34 or later (recommended) |
487 | 78 | diff --git a/Makefile.util.def b/Makefile.util.def | 78 | diff --git a/Makefile.util.def b/Makefile.util.def |
489 | 79 | index ce133e694..504d1c058 100644 | 79 | index ce133e694e..504d1c0581 100644 |
490 | 80 | --- a/Makefile.util.def | 80 | --- a/Makefile.util.def |
491 | 81 | +++ b/Makefile.util.def | 81 | +++ b/Makefile.util.def |
492 | 82 | @@ -565,6 +565,8 @@ program = { | 82 | @@ -565,6 +565,8 @@ program = { |
493 | @@ -180,7 +180,7 @@ index ce133e694..504d1c058 100644 | |||
494 | 180 | 180 | ||
495 | 181 | script = { | 181 | script = { |
496 | 182 | diff --git a/configure.ac b/configure.ac | 182 | diff --git a/configure.ac b/configure.ac |
498 | 183 | index e382c7480..883245553 100644 | 183 | index e382c7480d..883245553d 100644 |
499 | 184 | --- a/configure.ac | 184 | --- a/configure.ac |
500 | 185 | +++ b/configure.ac | 185 | +++ b/configure.ac |
501 | 186 | @@ -443,6 +443,18 @@ AC_CHECK_HEADER([util.h], [ | 186 | @@ -443,6 +443,18 @@ AC_CHECK_HEADER([util.h], [ |
502 | @@ -204,7 +204,7 @@ index e382c7480..883245553 100644 | |||
503 | 204 | CFLAGS="$HOST_CFLAGS -Wtrampolines -Werror" | 204 | CFLAGS="$HOST_CFLAGS -Wtrampolines -Werror" |
504 | 205 | diff --git a/grub-core/osdep/efivar.c b/grub-core/osdep/efivar.c | 205 | diff --git a/grub-core/osdep/efivar.c b/grub-core/osdep/efivar.c |
505 | 206 | new file mode 100644 | 206 | new file mode 100644 |
507 | 207 | index 000000000..d2750e252 | 207 | index 0000000000..d2750e2524 |
508 | 208 | --- /dev/null | 208 | --- /dev/null |
509 | 209 | +++ b/grub-core/osdep/efivar.c | 209 | +++ b/grub-core/osdep/efivar.c |
510 | 210 | @@ -0,0 +1,3 @@ | 210 | @@ -0,0 +1,3 @@ |
511 | @@ -213,7 +213,7 @@ index 000000000..d2750e252 | |||
512 | 213 | +#endif | 213 | +#endif |
513 | 214 | diff --git a/grub-core/osdep/unix/efivar.c b/grub-core/osdep/unix/efivar.c | 214 | diff --git a/grub-core/osdep/unix/efivar.c b/grub-core/osdep/unix/efivar.c |
514 | 215 | new file mode 100644 | 215 | new file mode 100644 |
516 | 216 | index 000000000..4a58328b4 | 216 | index 0000000000..4a58328b42 |
517 | 217 | --- /dev/null | 217 | --- /dev/null |
518 | 218 | +++ b/grub-core/osdep/unix/efivar.c | 218 | +++ b/grub-core/osdep/unix/efivar.c |
519 | 219 | @@ -0,0 +1,508 @@ | 219 | @@ -0,0 +1,508 @@ |
520 | @@ -726,7 +726,7 @@ index 000000000..4a58328b4 | |||
521 | 726 | + | 726 | + |
522 | 727 | +#endif /* HAVE_EFIVAR */ | 727 | +#endif /* HAVE_EFIVAR */ |
523 | 728 | diff --git a/grub-core/osdep/unix/platform.c b/grub-core/osdep/unix/platform.c | 728 | diff --git a/grub-core/osdep/unix/platform.c b/grub-core/osdep/unix/platform.c |
525 | 729 | index 9c439326a..b561174ea 100644 | 729 | index 9c439326a0..b561174ea9 100644 |
526 | 730 | --- a/grub-core/osdep/unix/platform.c | 730 | --- a/grub-core/osdep/unix/platform.c |
527 | 731 | +++ b/grub-core/osdep/unix/platform.c | 731 | +++ b/grub-core/osdep/unix/platform.c |
528 | 732 | @@ -19,15 +19,12 @@ | 732 | @@ -19,15 +19,12 @@ |
529 | @@ -856,7 +856,7 @@ index 9c439326a..b561174ea 100644 | |||
530 | 856 | 856 | ||
531 | 857 | void | 857 | void |
532 | 858 | diff --git a/include/grub/util/install.h b/include/grub/util/install.h | 858 | diff --git a/include/grub/util/install.h b/include/grub/util/install.h |
534 | 859 | index 8aeb5c4f2..a521f1663 100644 | 859 | index 8aeb5c4f20..a521f1663f 100644 |
535 | 860 | --- a/include/grub/util/install.h | 860 | --- a/include/grub/util/install.h |
536 | 861 | +++ b/include/grub/util/install.h | 861 | +++ b/include/grub/util/install.h |
537 | 862 | @@ -219,6 +219,11 @@ grub_install_get_default_x86_platform (void); | 862 | @@ -219,6 +219,11 @@ grub_install_get_default_x86_platform (void); |
538 | @@ -872,7 +872,7 @@ index 8aeb5c4f2..a521f1663 100644 | |||
539 | 872 | grub_install_register_efi (grub_device_t efidir_grub_dev, | 872 | grub_install_register_efi (grub_device_t efidir_grub_dev, |
540 | 873 | const char *efifile_path, | 873 | const char *efifile_path, |
541 | 874 | diff --git a/util/grub-install.c b/util/grub-install.c | 874 | diff --git a/util/grub-install.c b/util/grub-install.c |
543 | 875 | index 4bad8de61..63462e4e0 100644 | 875 | index 4bad8de612..63462e4e09 100644 |
544 | 876 | --- a/util/grub-install.c | 876 | --- a/util/grub-install.c |
545 | 877 | +++ b/util/grub-install.c | 877 | +++ b/util/grub-install.c |
546 | 878 | @@ -2084,7 +2084,7 @@ main (int argc, char *argv[]) | 878 | @@ -2084,7 +2084,7 @@ main (int argc, char *argv[]) |
547 | diff --git a/debian/patches/efinet-set-dns-from-uefi-proto.patch b/debian/patches/efinet-set-dns-from-uefi-proto.patch | |||
548 | index e500199..730ad3a 100644 | |||
549 | --- a/debian/patches/efinet-set-dns-from-uefi-proto.patch | |||
550 | +++ b/debian/patches/efinet-set-dns-from-uefi-proto.patch | |||
551 | @@ -1,4 +1,4 @@ | |||
553 | 1 | From 6a014b8846142de23cb5254f653facc8f3456a8c Mon Sep 17 00:00:00 2001 | 1 | From 747f4241696cf526d68ff7de1efac04e1871567b Mon Sep 17 00:00:00 2001 |
554 | 2 | From: Michael Chang <mchang@suse.com> | 2 | From: Michael Chang <mchang@suse.com> |
555 | 3 | Date: Thu, 27 Oct 2016 17:43:21 -0400 | 3 | Date: Thu, 27 Oct 2016 17:43:21 -0400 |
556 | 4 | Subject: efinet: Setting DNS server from UEFI protocol | 4 | Subject: efinet: Setting DNS server from UEFI protocol |
557 | @@ -35,7 +35,7 @@ Patch-Name: efinet-set-dns-from-uefi-proto.patch | |||
558 | 35 | 2 files changed, 239 insertions(+) | 35 | 2 files changed, 239 insertions(+) |
559 | 36 | 36 | ||
560 | 37 | diff --git a/grub-core/net/drivers/efi/efinet.c b/grub-core/net/drivers/efi/efinet.c | 37 | diff --git a/grub-core/net/drivers/efi/efinet.c b/grub-core/net/drivers/efi/efinet.c |
562 | 38 | index 2d3b00f0e..82a28fb6e 100644 | 38 | index 2d3b00f0e1..82a28fb6e9 100644 |
563 | 39 | --- a/grub-core/net/drivers/efi/efinet.c | 39 | --- a/grub-core/net/drivers/efi/efinet.c |
564 | 40 | +++ b/grub-core/net/drivers/efi/efinet.c | 40 | +++ b/grub-core/net/drivers/efi/efinet.c |
565 | 41 | @@ -30,6 +30,8 @@ GRUB_MOD_LICENSE ("GPLv3+"); | 41 | @@ -30,6 +30,8 @@ GRUB_MOD_LICENSE ("GPLv3+"); |
566 | @@ -244,7 +244,7 @@ index 2d3b00f0e..82a28fb6e 100644 | |||
567 | 244 | } | 244 | } |
568 | 245 | 245 | ||
569 | 246 | diff --git a/include/grub/efi/api.h b/include/grub/efi/api.h | 246 | diff --git a/include/grub/efi/api.h b/include/grub/efi/api.h |
571 | 247 | index 664cea37b..75befd10e 100644 | 247 | index 664cea37b5..75befd10e5 100644 |
572 | 248 | --- a/include/grub/efi/api.h | 248 | --- a/include/grub/efi/api.h |
573 | 249 | +++ b/include/grub/efi/api.h | 249 | +++ b/include/grub/efi/api.h |
574 | 250 | @@ -334,6 +334,16 @@ | 250 | @@ -334,6 +334,16 @@ |
575 | diff --git a/debian/patches/efinet-set-network-from-uefi-devpath.patch b/debian/patches/efinet-set-network-from-uefi-devpath.patch | |||
576 | index bba19a4..b844b7f 100644 | |||
577 | --- a/debian/patches/efinet-set-network-from-uefi-devpath.patch | |||
578 | +++ b/debian/patches/efinet-set-network-from-uefi-devpath.patch | |||
579 | @@ -1,4 +1,4 @@ | |||
581 | 1 | From 1bacee679cef6c6f56af81108288c6468d8f6295 Mon Sep 17 00:00:00 2001 | 1 | From 36785761748dd2ba5a38ec8c7fc412c8f875b0e2 Mon Sep 17 00:00:00 2001 |
582 | 2 | From: Michael Chang <mchang@suse.com> | 2 | From: Michael Chang <mchang@suse.com> |
583 | 3 | Date: Thu, 27 Oct 2016 17:43:05 -0400 | 3 | Date: Thu, 27 Oct 2016 17:43:05 -0400 |
584 | 4 | Subject: efinet: Setting network from UEFI device path | 4 | Subject: efinet: Setting network from UEFI device path |
585 | @@ -34,7 +34,7 @@ Patch-Name: efinet-set-network-from-uefi-devpath.patch | |||
586 | 34 | 2 files changed, 270 insertions(+), 9 deletions(-) | 34 | 2 files changed, 270 insertions(+), 9 deletions(-) |
587 | 35 | 35 | ||
588 | 36 | diff --git a/grub-core/net/drivers/efi/efinet.c b/grub-core/net/drivers/efi/efinet.c | 36 | diff --git a/grub-core/net/drivers/efi/efinet.c b/grub-core/net/drivers/efi/efinet.c |
590 | 37 | index fc90415f2..2d3b00f0e 100644 | 37 | index fc90415f29..2d3b00f0e1 100644 |
591 | 38 | --- a/grub-core/net/drivers/efi/efinet.c | 38 | --- a/grub-core/net/drivers/efi/efinet.c |
592 | 39 | +++ b/grub-core/net/drivers/efi/efinet.c | 39 | +++ b/grub-core/net/drivers/efi/efinet.c |
593 | 40 | @@ -23,6 +23,7 @@ | 40 | @@ -23,6 +23,7 @@ |
594 | @@ -358,7 +358,7 @@ index fc90415f2..2d3b00f0e 100644 | |||
595 | 358 | } | 358 | } |
596 | 359 | } | 359 | } |
597 | 360 | diff --git a/include/grub/efi/api.h b/include/grub/efi/api.h | 360 | diff --git a/include/grub/efi/api.h b/include/grub/efi/api.h |
599 | 361 | index ca6cdc159..664cea37b 100644 | 361 | index ca6cdc1596..664cea37b5 100644 |
600 | 362 | --- a/include/grub/efi/api.h | 362 | --- a/include/grub/efi/api.h |
601 | 363 | +++ b/include/grub/efi/api.h | 363 | +++ b/include/grub/efi/api.h |
602 | 364 | @@ -825,6 +825,8 @@ struct grub_efi_ipv4_device_path | 364 | @@ -825,6 +825,8 @@ struct grub_efi_ipv4_device_path |
603 | diff --git a/debian/patches/efinet-uefi-ipv6-pxe-support.patch b/debian/patches/efinet-uefi-ipv6-pxe-support.patch | |||
604 | index 531e73d..f500a04 100644 | |||
605 | --- a/debian/patches/efinet-uefi-ipv6-pxe-support.patch | |||
606 | +++ b/debian/patches/efinet-uefi-ipv6-pxe-support.patch | |||
607 | @@ -1,4 +1,4 @@ | |||
609 | 1 | From 9afb0c174814d7235fc18623725cd037a76ff541 Mon Sep 17 00:00:00 2001 | 1 | From aa6426e9b8ce15c152af7d20686b26caadb2f28a Mon Sep 17 00:00:00 2001 |
610 | 2 | From: Michael Chang <mchang@suse.com> | 2 | From: Michael Chang <mchang@suse.com> |
611 | 3 | Date: Thu, 27 Oct 2016 17:41:21 -0400 | 3 | Date: Thu, 27 Oct 2016 17:41:21 -0400 |
612 | 4 | Subject: efinet: UEFI IPv6 PXE support | 4 | Subject: efinet: UEFI IPv6 PXE support |
613 | @@ -17,7 +17,7 @@ Patch-Name: efinet-uefi-ipv6-pxe-support.patch | |||
614 | 17 | 2 files changed, 73 insertions(+), 6 deletions(-) | 17 | 2 files changed, 73 insertions(+), 6 deletions(-) |
615 | 18 | 18 | ||
616 | 19 | diff --git a/grub-core/net/drivers/efi/efinet.c b/grub-core/net/drivers/efi/efinet.c | 19 | diff --git a/grub-core/net/drivers/efi/efinet.c b/grub-core/net/drivers/efi/efinet.c |
618 | 20 | index 5388f952b..fc90415f2 100644 | 20 | index 5388f952ba..fc90415f29 100644 |
619 | 21 | --- a/grub-core/net/drivers/efi/efinet.c | 21 | --- a/grub-core/net/drivers/efi/efinet.c |
620 | 22 | +++ b/grub-core/net/drivers/efi/efinet.c | 22 | +++ b/grub-core/net/drivers/efi/efinet.c |
621 | 23 | @@ -378,11 +378,25 @@ grub_efi_net_config_real (grub_efi_handle_t hnd, char **device, | 23 | @@ -378,11 +378,25 @@ grub_efi_net_config_real (grub_efi_handle_t hnd, char **device, |
622 | @@ -52,7 +52,7 @@ index 5388f952b..fc90415f2 100644 | |||
623 | 52 | } | 52 | } |
624 | 53 | } | 53 | } |
625 | 54 | diff --git a/include/grub/efi/api.h b/include/grub/efi/api.h | 54 | diff --git a/include/grub/efi/api.h b/include/grub/efi/api.h |
627 | 55 | index addcbfa8f..ca6cdc159 100644 | 55 | index addcbfa8fb..ca6cdc1596 100644 |
628 | 56 | --- a/include/grub/efi/api.h | 56 | --- a/include/grub/efi/api.h |
629 | 57 | +++ b/include/grub/efi/api.h | 57 | +++ b/include/grub/efi/api.h |
630 | 58 | @@ -1452,14 +1452,67 @@ typedef struct grub_efi_simple_text_output_interface grub_efi_simple_text_output | 58 | @@ -1452,14 +1452,67 @@ typedef struct grub_efi_simple_text_output_interface grub_efi_simple_text_output |
631 | diff --git a/debian/patches/gettext-quiet.patch b/debian/patches/gettext-quiet.patch | |||
632 | index 11a7e6f..7248d6c 100644 | |||
633 | --- a/debian/patches/gettext-quiet.patch | |||
634 | +++ b/debian/patches/gettext-quiet.patch | |||
635 | @@ -1,4 +1,4 @@ | |||
637 | 1 | From 259b7fa08b66717709735370d05fc9eb64682484 Mon Sep 17 00:00:00 2001 | 1 | From 510fb7381e095c4212907e6b45e58f24e1889acf Mon Sep 17 00:00:00 2001 |
638 | 2 | From: Colin Watson <cjwatson@ubuntu.com> | 2 | From: Colin Watson <cjwatson@ubuntu.com> |
639 | 3 | Date: Mon, 13 Jan 2014 12:13:02 +0000 | 3 | Date: Mon, 13 Jan 2014 12:13:02 +0000 |
640 | 4 | Subject: Silence error messages when translations are unavailable | 4 | Subject: Silence error messages when translations are unavailable |
641 | @@ -13,7 +13,7 @@ Patch-Name: gettext-quiet.patch | |||
642 | 13 | 1 file changed, 5 insertions(+) | 13 | 1 file changed, 5 insertions(+) |
643 | 14 | 14 | ||
644 | 15 | diff --git a/grub-core/gettext/gettext.c b/grub-core/gettext/gettext.c | 15 | diff --git a/grub-core/gettext/gettext.c b/grub-core/gettext/gettext.c |
646 | 16 | index 4d02e62c1..2a19389f2 100644 | 16 | index 4d02e62c10..2a19389f2a 100644 |
647 | 17 | --- a/grub-core/gettext/gettext.c | 17 | --- a/grub-core/gettext/gettext.c |
648 | 18 | +++ b/grub-core/gettext/gettext.c | 18 | +++ b/grub-core/gettext/gettext.c |
649 | 19 | @@ -427,6 +427,11 @@ grub_gettext_init_ext (struct grub_gettext_context *ctx, | 19 | @@ -427,6 +427,11 @@ grub_gettext_init_ext (struct grub_gettext_context *ctx, |
650 | diff --git a/debian/patches/gfxpayload-dynamic.patch b/debian/patches/gfxpayload-dynamic.patch | |||
651 | index 8545c4d..826c65a 100644 | |||
652 | --- a/debian/patches/gfxpayload-dynamic.patch | |||
653 | +++ b/debian/patches/gfxpayload-dynamic.patch | |||
654 | @@ -1,4 +1,4 @@ | |||
656 | 1 | From 2e91d5ab9adfb6a86b82b89715d6d9a7b3b52005 Mon Sep 17 00:00:00 2001 | 1 | From 66ef92ba8ac39f919415f8687b8d0d9032c4a079 Mon Sep 17 00:00:00 2001 |
657 | 2 | From: Evan Broder <evan@ebroder.net> | 2 | From: Evan Broder <evan@ebroder.net> |
658 | 3 | Date: Mon, 13 Jan 2014 12:13:29 +0000 | 3 | Date: Mon, 13 Jan 2014 12:13:29 +0000 |
659 | 4 | Subject: Add configure option to enable gfxpayload=keep dynamically | 4 | Subject: Add configure option to enable gfxpayload=keep dynamically |
660 | @@ -23,7 +23,7 @@ Patch-Name: gfxpayload-dynamic.patch | |||
661 | 23 | create mode 100644 grub-core/commands/i386/pc/hwmatch.c | 23 | create mode 100644 grub-core/commands/i386/pc/hwmatch.c |
662 | 24 | 24 | ||
663 | 25 | diff --git a/configure.ac b/configure.ac | 25 | diff --git a/configure.ac b/configure.ac |
665 | 26 | index 7dda5bb32..dbc429ce0 100644 | 26 | index 7dda5bb32b..dbc429ce0a 100644 |
666 | 27 | --- a/configure.ac | 27 | --- a/configure.ac |
667 | 28 | +++ b/configure.ac | 28 | +++ b/configure.ac |
668 | 29 | @@ -1879,6 +1879,17 @@ else | 29 | @@ -1879,6 +1879,17 @@ else |
669 | @@ -45,7 +45,7 @@ index 7dda5bb32..dbc429ce0 100644 | |||
670 | 45 | 45 | ||
671 | 46 | AC_SUBST([FONT_SOURCE]) | 46 | AC_SUBST([FONT_SOURCE]) |
672 | 47 | diff --git a/grub-core/Makefile.core.def b/grub-core/Makefile.core.def | 47 | diff --git a/grub-core/Makefile.core.def b/grub-core/Makefile.core.def |
674 | 48 | index 474a63e68..aadb4cdff 100644 | 48 | index 474a63e68c..aadb4cdff8 100644 |
675 | 49 | --- a/grub-core/Makefile.core.def | 49 | --- a/grub-core/Makefile.core.def |
676 | 50 | +++ b/grub-core/Makefile.core.def | 50 | +++ b/grub-core/Makefile.core.def |
677 | 51 | @@ -971,6 +971,14 @@ module = { | 51 | @@ -971,6 +971,14 @@ module = { |
678 | @@ -65,7 +65,7 @@ index 474a63e68..aadb4cdff 100644 | |||
679 | 65 | common = commands/keystatus.c; | 65 | common = commands/keystatus.c; |
680 | 66 | diff --git a/grub-core/commands/i386/pc/hwmatch.c b/grub-core/commands/i386/pc/hwmatch.c | 66 | diff --git a/grub-core/commands/i386/pc/hwmatch.c b/grub-core/commands/i386/pc/hwmatch.c |
681 | 67 | new file mode 100644 | 67 | new file mode 100644 |
683 | 68 | index 000000000..6de07cecc | 68 | index 0000000000..6de07cecc8 |
684 | 69 | --- /dev/null | 69 | --- /dev/null |
685 | 70 | +++ b/grub-core/commands/i386/pc/hwmatch.c | 70 | +++ b/grub-core/commands/i386/pc/hwmatch.c |
686 | 71 | @@ -0,0 +1,146 @@ | 71 | @@ -0,0 +1,146 @@ |
687 | @@ -216,7 +216,7 @@ index 000000000..6de07cecc | |||
688 | 216 | + grub_unregister_command (cmd); | 216 | + grub_unregister_command (cmd); |
689 | 217 | +} | 217 | +} |
690 | 218 | diff --git a/include/grub/file.h b/include/grub/file.h | 218 | diff --git a/include/grub/file.h b/include/grub/file.h |
692 | 219 | index 31567483c..e3c4cae2b 100644 | 219 | index 31567483cc..e3c4cae2b5 100644 |
693 | 220 | --- a/include/grub/file.h | 220 | --- a/include/grub/file.h |
694 | 221 | +++ b/include/grub/file.h | 221 | +++ b/include/grub/file.h |
695 | 222 | @@ -122,6 +122,7 @@ enum grub_file_type | 222 | @@ -122,6 +122,7 @@ enum grub_file_type |
696 | @@ -228,7 +228,7 @@ index 31567483c..e3c4cae2b 100644 | |||
697 | 228 | GRUB_FILE_TYPE_LOADENV, | 228 | GRUB_FILE_TYPE_LOADENV, |
698 | 229 | GRUB_FILE_TYPE_SAVEENV, | 229 | GRUB_FILE_TYPE_SAVEENV, |
699 | 230 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in | 230 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in |
701 | 231 | index 2be66c702..09393c28e 100644 | 231 | index 2be66c7028..09393c28ee 100644 |
702 | 232 | --- a/util/grub.d/10_linux.in | 232 | --- a/util/grub.d/10_linux.in |
703 | 233 | +++ b/util/grub.d/10_linux.in | 233 | +++ b/util/grub.d/10_linux.in |
704 | 234 | @@ -23,6 +23,7 @@ datarootdir="@datarootdir@" | 234 | @@ -23,6 +23,7 @@ datarootdir="@datarootdir@" |
705 | @@ -290,7 +290,7 @@ index 2be66c702..09393c28e 100644 | |||
706 | 290 | # yet, so it's empty. In a submenu it will be equal to '\t' (one tab). | 290 | # yet, so it's empty. In a submenu it will be equal to '\t' (one tab). |
707 | 291 | submenu_indentation="" | 291 | submenu_indentation="" |
708 | 292 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in | 292 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
710 | 293 | index 548e14856..fc99f16e7 100755 | 293 | index ec4b49d9d7..8cd7d12851 100755 |
711 | 294 | --- a/util/grub.d/10_linux_zfs.in | 294 | --- a/util/grub.d/10_linux_zfs.in |
712 | 295 | +++ b/util/grub.d/10_linux_zfs.in | 295 | +++ b/util/grub.d/10_linux_zfs.in |
713 | 296 | @@ -22,6 +22,7 @@ datarootdir="@datarootdir@" | 296 | @@ -22,6 +22,7 @@ datarootdir="@datarootdir@" |
714 | @@ -301,7 +301,7 @@ index 548e14856..fc99f16e7 100755 | |||
715 | 301 | 301 | ||
716 | 302 | . "${pkgdatadir}/grub-mkconfig_lib" | 302 | . "${pkgdatadir}/grub-mkconfig_lib" |
717 | 303 | 303 | ||
719 | 304 | @@ -713,6 +714,41 @@ generate_grub_menu_metadata() { | 304 | @@ -716,6 +717,41 @@ generate_grub_menu_metadata() { |
720 | 305 | done | 305 | done |
721 | 306 | } | 306 | } |
722 | 307 | 307 | ||
723 | @@ -343,7 +343,7 @@ index 548e14856..fc99f16e7 100755 | |||
724 | 343 | # Cache for prepare_grub_to_access_device call | 343 | # Cache for prepare_grub_to_access_device call |
725 | 344 | # $1: boot_device | 344 | # $1: boot_device |
726 | 345 | # $2: submenu_level | 345 | # $2: submenu_level |
728 | 346 | @@ -773,9 +809,11 @@ zfs_linux_entry () { | 346 | @@ -776,9 +812,11 @@ zfs_linux_entry () { |
729 | 347 | if [ "${GRUB_GFXPAYLOAD_LINUX}" != "text" ]; then | 347 | if [ "${GRUB_GFXPAYLOAD_LINUX}" != "text" ]; then |
730 | 348 | echo "${submenu_indentation} load_video" | 348 | echo "${submenu_indentation} load_video" |
731 | 349 | fi | 349 | fi |
732 | @@ -358,7 +358,7 @@ index 548e14856..fc99f16e7 100755 | |||
733 | 358 | fi | 358 | fi |
734 | 359 | 359 | ||
735 | 360 | echo "${submenu_indentation} insmod gzio" | 360 | echo "${submenu_indentation} insmod gzio" |
737 | 361 | @@ -838,6 +876,8 @@ generate_grub_menu() { | 361 | @@ -841,6 +879,8 @@ generate_grub_menu() { |
738 | 362 | GRUB_CMDLINE_LINUX_RECOVERY="${GRUB_CMDLINE_LINUX_RECOVERY} nomodeset" | 362 | GRUB_CMDLINE_LINUX_RECOVERY="${GRUB_CMDLINE_LINUX_RECOVERY} nomodeset" |
739 | 363 | fi | 363 | fi |
740 | 364 | 364 | ||
741 | diff --git a/debian/patches/gfxpayload-keep-default.patch b/debian/patches/gfxpayload-keep-default.patch | |||
742 | index 114ce62..23b668f 100644 | |||
743 | --- a/debian/patches/gfxpayload-keep-default.patch | |||
744 | +++ b/debian/patches/gfxpayload-keep-default.patch | |||
745 | @@ -1,4 +1,4 @@ | |||
747 | 1 | From 6da735cfaac928da6dc1283a15a669b1ddd07979 Mon Sep 17 00:00:00 2001 | 1 | From e848d8754210095660b229f4639a065e8d96a0d0 Mon Sep 17 00:00:00 2001 |
748 | 2 | From: Didier Roche <didrocks@ubuntu.com> | 2 | From: Didier Roche <didrocks@ubuntu.com> |
749 | 3 | Date: Tue, 31 Mar 2020 15:09:45 +0200 | 3 | Date: Tue, 31 Mar 2020 15:09:45 +0200 |
750 | 4 | Subject: Disable gfxpayload=keep by default | 4 | Subject: Disable gfxpayload=keep by default |
751 | @@ -24,7 +24,7 @@ Patch-Name: gfxpayload-keep-default.patch | |||
752 | 24 | 2 files changed, 8 deletions(-) | 24 | 2 files changed, 8 deletions(-) |
753 | 25 | 25 | ||
754 | 26 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in | 26 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in |
756 | 27 | index a75096609..f839b3b55 100644 | 27 | index a75096609a..f839b3b55f 100644 |
757 | 28 | --- a/util/grub.d/10_linux.in | 28 | --- a/util/grub.d/10_linux.in |
758 | 29 | +++ b/util/grub.d/10_linux.in | 29 | +++ b/util/grub.d/10_linux.in |
759 | 30 | @@ -118,10 +118,6 @@ linux_entry () | 30 | @@ -118,10 +118,6 @@ linux_entry () |
760 | @@ -39,10 +39,10 @@ index a75096609..f839b3b55 100644 | |||
761 | 39 | if [ "x$GRUB_GFXPAYLOAD_LINUX" != xtext ]; then | 39 | if [ "x$GRUB_GFXPAYLOAD_LINUX" != xtext ]; then |
762 | 40 | echo " load_video" | sed "s/^/$submenu_indentation/" | 40 | echo " load_video" | sed "s/^/$submenu_indentation/" |
763 | 41 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in | 41 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
765 | 42 | index f50e1231a..d27634738 100755 | 42 | index 5ec65fa941..b24587f0a5 100755 |
766 | 43 | --- a/util/grub.d/10_linux_zfs.in | 43 | --- a/util/grub.d/10_linux_zfs.in |
767 | 44 | +++ b/util/grub.d/10_linux_zfs.in | 44 | +++ b/util/grub.d/10_linux_zfs.in |
769 | 45 | @@ -741,10 +741,6 @@ zfs_linux_entry () { | 45 | @@ -744,10 +744,6 @@ zfs_linux_entry () { |
770 | 46 | # FIXME: We need an interface to select vesafb in case efifb can't be used. | 46 | # FIXME: We need an interface to select vesafb in case efifb can't be used. |
771 | 47 | if [ "${GRUB_GFXPAYLOAD_LINUX}" = "" ]; then | 47 | if [ "${GRUB_GFXPAYLOAD_LINUX}" = "" ]; then |
772 | 48 | echo "${submenu_indentation} load_video" | 48 | echo "${submenu_indentation} load_video" |
773 | diff --git a/debian/patches/grub-install-pvxen-paths.patch b/debian/patches/grub-install-pvxen-paths.patch | |||
774 | index a160a43..d2002ff 100644 | |||
775 | --- a/debian/patches/grub-install-pvxen-paths.patch | |||
776 | +++ b/debian/patches/grub-install-pvxen-paths.patch | |||
777 | @@ -1,4 +1,4 @@ | |||
779 | 1 | From 4e813c89c93bba7da480824d617e87659295841b Mon Sep 17 00:00:00 2001 | 1 | From 34f053ee85aaa87fd40682a0f9c4e8c5858eeb55 Mon Sep 17 00:00:00 2001 |
780 | 2 | From: Ian Campbell <ijc@hellion.org.uk> | 2 | From: Ian Campbell <ijc@hellion.org.uk> |
781 | 3 | Date: Sat, 6 Sep 2014 12:20:12 +0100 | 3 | Date: Sat, 6 Sep 2014 12:20:12 +0100 |
782 | 4 | Subject: grub-install: Install PV Xen binaries into the upstream specified | 4 | Subject: grub-install: Install PV Xen binaries into the upstream specified |
783 | @@ -28,7 +28,7 @@ v2: Respect bootdir, create /boot/xen as needed. | |||
784 | 28 | 1 file changed, 22 insertions(+), 2 deletions(-) | 28 | 1 file changed, 22 insertions(+), 2 deletions(-) |
785 | 29 | 29 | ||
786 | 30 | diff --git a/util/grub-install.c b/util/grub-install.c | 30 | diff --git a/util/grub-install.c b/util/grub-install.c |
788 | 31 | index 70d6700de..64c292383 100644 | 31 | index 70d6700de8..64c292383f 100644 |
789 | 32 | --- a/util/grub-install.c | 32 | --- a/util/grub-install.c |
790 | 33 | +++ b/util/grub-install.c | 33 | +++ b/util/grub-install.c |
791 | 34 | @@ -2058,6 +2058,28 @@ main (int argc, char *argv[]) | 34 | @@ -2058,6 +2058,28 @@ main (int argc, char *argv[]) |
792 | diff --git a/debian/patches/grub-legacy-0-based-partitions.patch b/debian/patches/grub-legacy-0-based-partitions.patch | |||
793 | index 2039c3f..09439dc 100644 | |||
794 | --- a/debian/patches/grub-legacy-0-based-partitions.patch | |||
795 | +++ b/debian/patches/grub-legacy-0-based-partitions.patch | |||
796 | @@ -13,7 +13,7 @@ Patch-Name: grub-legacy-0-based-partitions.patch | |||
797 | 13 | 1 file changed, 14 insertions(+) | 13 | 1 file changed, 14 insertions(+) |
798 | 14 | 14 | ||
799 | 15 | diff --git a/util/getroot.c b/util/getroot.c | 15 | diff --git a/util/getroot.c b/util/getroot.c |
801 | 16 | index 847406fba..cdd41153c 100644 | 16 | index 847406fbab..cdd41153c5 100644 |
802 | 17 | --- a/util/getroot.c | 17 | --- a/util/getroot.c |
803 | 18 | +++ b/util/getroot.c | 18 | +++ b/util/getroot.c |
804 | 19 | @@ -245,6 +245,20 @@ find_partition (grub_disk_t dsk __attribute__ ((unused)), | 19 | @@ -245,6 +245,20 @@ find_partition (grub_disk_t dsk __attribute__ ((unused)), |
805 | diff --git a/debian/patches/grub.cfg-400.patch b/debian/patches/grub.cfg-400.patch | |||
806 | index 1fee91a..4731767 100644 | |||
807 | --- a/debian/patches/grub.cfg-400.patch | |||
808 | +++ b/debian/patches/grub.cfg-400.patch | |||
809 | @@ -9,7 +9,7 @@ Patch-Name: grub.cfg-400.patch | |||
810 | 9 | 1 file changed, 4 insertions(+) | 9 | 1 file changed, 4 insertions(+) |
811 | 10 | 10 | ||
812 | 11 | diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in | 11 | diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in |
814 | 12 | index 9f477ff05..45cd4cc54 100644 | 12 | index 9f477ff054..45cd4cc541 100644 |
815 | 13 | --- a/util/grub-mkconfig.in | 13 | --- a/util/grub-mkconfig.in |
816 | 14 | +++ b/util/grub-mkconfig.in | 14 | +++ b/util/grub-mkconfig.in |
817 | 15 | @@ -276,6 +276,10 @@ for i in "${grub_mkconfig_dir}"/* ; do | 15 | @@ -276,6 +276,10 @@ for i in "${grub_mkconfig_dir}"/* ; do |
818 | diff --git a/debian/patches/ieee1275-clear-reset.patch b/debian/patches/ieee1275-clear-reset.patch | |||
819 | index 1d082e6..1bd0bfc 100644 | |||
820 | --- a/debian/patches/ieee1275-clear-reset.patch | |||
821 | +++ b/debian/patches/ieee1275-clear-reset.patch | |||
822 | @@ -1,4 +1,4 @@ | |||
824 | 1 | From 07e29f9e7e317d74d41fed30c6a8ade4f301652c Mon Sep 17 00:00:00 2001 | 1 | From 406f5fc7f97315af793414d9e0ca14972bf6de0f Mon Sep 17 00:00:00 2001 |
825 | 2 | From: Paulo Flabiano Smorigo <pfsmorigo@linux.vnet.ibm.com> | 2 | From: Paulo Flabiano Smorigo <pfsmorigo@linux.vnet.ibm.com> |
826 | 3 | Date: Thu, 25 Sep 2014 18:41:29 -0300 | 3 | Date: Thu, 25 Sep 2014 18:41:29 -0300 |
827 | 4 | Subject: Include a text attribute reset in the clear command for ppc | 4 | Subject: Include a text attribute reset in the clear command for ppc |
828 | @@ -18,7 +18,7 @@ Patch-Name: ieee1275-clear-reset.patch | |||
829 | 18 | 1 file changed, 1 insertion(+), 1 deletion(-) | 18 | 1 file changed, 1 insertion(+), 1 deletion(-) |
830 | 19 | 19 | ||
831 | 20 | diff --git a/grub-core/term/terminfo.c b/grub-core/term/terminfo.c | 20 | diff --git a/grub-core/term/terminfo.c b/grub-core/term/terminfo.c |
833 | 21 | index d317efa36..63892ad42 100644 | 21 | index d317efa368..63892ad427 100644 |
834 | 22 | --- a/grub-core/term/terminfo.c | 22 | --- a/grub-core/term/terminfo.c |
835 | 23 | +++ b/grub-core/term/terminfo.c | 23 | +++ b/grub-core/term/terminfo.c |
836 | 24 | @@ -151,7 +151,7 @@ grub_terminfo_set_current (struct grub_term_output *term, | 24 | @@ -151,7 +151,7 @@ grub_terminfo_set_current (struct grub_term_output *term, |
837 | diff --git a/debian/patches/ignore-grub_func_test-failures.patch b/debian/patches/ignore-grub_func_test-failures.patch | |||
838 | index cbbd3b2..9cd2c60 100644 | |||
839 | --- a/debian/patches/ignore-grub_func_test-failures.patch | |||
840 | +++ b/debian/patches/ignore-grub_func_test-failures.patch | |||
841 | @@ -1,4 +1,4 @@ | |||
843 | 1 | From 11457a76c942775508953575e1b284f4c03ee192 Mon Sep 17 00:00:00 2001 | 1 | From c944dea56be3cce4bf4895a9915d35e75099f420 Mon Sep 17 00:00:00 2001 |
844 | 2 | From: Colin Watson <cjwatson@debian.org> | 2 | From: Colin Watson <cjwatson@debian.org> |
845 | 3 | Date: Mon, 13 Jan 2014 12:13:32 +0000 | 3 | Date: Mon, 13 Jan 2014 12:13:32 +0000 |
846 | 4 | Subject: Ignore functional test failures for now as they are broken | 4 | Subject: Ignore functional test failures for now as they are broken |
847 | @@ -14,7 +14,7 @@ Patch-Name: ignore-grub_func_test-failures.patch | |||
848 | 14 | 1 file changed, 3 insertions(+), 1 deletion(-) | 14 | 1 file changed, 3 insertions(+), 1 deletion(-) |
849 | 15 | 15 | ||
850 | 16 | diff --git a/tests/grub_func_test.in b/tests/grub_func_test.in | 16 | diff --git a/tests/grub_func_test.in b/tests/grub_func_test.in |
852 | 17 | index c67f9e422..728cd6e06 100644 | 17 | index c67f9e4225..728cd6e066 100644 |
853 | 18 | --- a/tests/grub_func_test.in | 18 | --- a/tests/grub_func_test.in |
854 | 19 | +++ b/tests/grub_func_test.in | 19 | +++ b/tests/grub_func_test.in |
855 | 20 | @@ -16,6 +16,8 @@ out=`echo all_functional_test | @builddir@/grub-shell --timeout=3600 --files="/b | 20 | @@ -16,6 +16,8 @@ out=`echo all_functional_test | @builddir@/grub-shell --timeout=3600 --files="/b |
856 | diff --git a/debian/patches/insmod-xzio-and-lzopio-on-xen.patch b/debian/patches/insmod-xzio-and-lzopio-on-xen.patch | |||
857 | index b16f128..82991d0 100644 | |||
858 | --- a/debian/patches/insmod-xzio-and-lzopio-on-xen.patch | |||
859 | +++ b/debian/patches/insmod-xzio-and-lzopio-on-xen.patch | |||
860 | @@ -1,4 +1,4 @@ | |||
862 | 1 | From 125b4317bafb66a6e9381041102c7d789c296ea4 Mon Sep 17 00:00:00 2001 | 1 | From d6fd02df51bc1b062fe70b2c4f6d33728d4219ee Mon Sep 17 00:00:00 2001 |
863 | 2 | From: Ian Campbell <ijc@debian.org> | 2 | From: Ian Campbell <ijc@debian.org> |
864 | 3 | Date: Sun, 30 Nov 2014 12:12:52 +0000 | 3 | Date: Sun, 30 Nov 2014 12:12:52 +0000 |
865 | 4 | Subject: Arrange to insmod xzio and lzopio when booting a kernel as a Xen | 4 | Subject: Arrange to insmod xzio and lzopio when booting a kernel as a Xen |
866 | @@ -21,7 +21,7 @@ Patch-Name: insmod-xzio-and-lzopio-on-xen.patch | |||
867 | 21 | 2 files changed, 2 insertions(+) | 21 | 2 files changed, 2 insertions(+) |
868 | 22 | 22 | ||
869 | 23 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in | 23 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in |
871 | 24 | index 2c418c5ec..85b30084a 100644 | 24 | index 2c418c5ec8..85b30084ad 100644 |
872 | 25 | --- a/util/grub.d/10_linux.in | 25 | --- a/util/grub.d/10_linux.in |
873 | 26 | +++ b/util/grub.d/10_linux.in | 26 | +++ b/util/grub.d/10_linux.in |
874 | 27 | @@ -166,6 +166,7 @@ linux_entry () | 27 | @@ -166,6 +166,7 @@ linux_entry () |
875 | @@ -33,10 +33,10 @@ index 2c418c5ec..85b30084a 100644 | |||
876 | 33 | if [ x$dirname = x/ ]; then | 33 | if [ x$dirname = x/ ]; then |
877 | 34 | if [ -z "${prepare_root_cache}" ]; then | 34 | if [ -z "${prepare_root_cache}" ]; then |
878 | 35 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in | 35 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
880 | 36 | index b068f0e96..efdb8afae 100755 | 36 | index 4477fa6061..4c48abef01 100755 |
881 | 37 | --- a/util/grub.d/10_linux_zfs.in | 37 | --- a/util/grub.d/10_linux_zfs.in |
882 | 38 | +++ b/util/grub.d/10_linux_zfs.in | 38 | +++ b/util/grub.d/10_linux_zfs.in |
884 | 39 | @@ -835,6 +835,7 @@ zfs_linux_entry () { | 39 | @@ -838,6 +838,7 @@ zfs_linux_entry () { |
885 | 40 | fi | 40 | fi |
886 | 41 | 41 | ||
887 | 42 | echo "${submenu_indentation} insmod gzio" | 42 | echo "${submenu_indentation} insmod gzio" |
888 | diff --git a/debian/patches/install-efi-fallback.patch b/debian/patches/install-efi-fallback.patch | |||
889 | index 6c0f0cf..c4cf303 100644 | |||
890 | --- a/debian/patches/install-efi-fallback.patch | |||
891 | +++ b/debian/patches/install-efi-fallback.patch | |||
892 | @@ -1,4 +1,4 @@ | |||
894 | 1 | From 342cbb4b33a6d47e7c1b645ace365203f31165e2 Mon Sep 17 00:00:00 2001 | 1 | From 70a2610a5392e09978ff7ccd9d69c942f60c522d Mon Sep 17 00:00:00 2001 |
895 | 2 | From: Colin Watson <cjwatson@ubuntu.com> | 2 | From: Colin Watson <cjwatson@ubuntu.com> |
896 | 3 | Date: Mon, 13 Jan 2014 12:13:05 +0000 | 3 | Date: Mon, 13 Jan 2014 12:13:05 +0000 |
897 | 4 | Subject: Fall back to non-EFI if booted using EFI but -efi is missing | 4 | Subject: Fall back to non-EFI if booted using EFI but -efi is missing |
898 | @@ -19,7 +19,7 @@ Patch-Name: install-efi-fallback.patch | |||
899 | 19 | 1 file changed, 35 insertions(+), 5 deletions(-) | 19 | 1 file changed, 35 insertions(+), 5 deletions(-) |
900 | 20 | 20 | ||
901 | 21 | diff --git a/grub-core/osdep/linux/platform.c b/grub-core/osdep/linux/platform.c | 21 | diff --git a/grub-core/osdep/linux/platform.c b/grub-core/osdep/linux/platform.c |
903 | 22 | index e28a79dab..2e7f72086 100644 | 22 | index e28a79dab3..2e7f720869 100644 |
904 | 23 | --- a/grub-core/osdep/linux/platform.c | 23 | --- a/grub-core/osdep/linux/platform.c |
905 | 24 | +++ b/grub-core/osdep/linux/platform.c | 24 | +++ b/grub-core/osdep/linux/platform.c |
906 | 25 | @@ -19,10 +19,12 @@ | 25 | @@ -19,10 +19,12 @@ |
907 | diff --git a/debian/patches/install-efi-ubuntu-flavours.patch b/debian/patches/install-efi-ubuntu-flavours.patch | |||
908 | index 31a74c8..d666dae 100644 | |||
909 | --- a/debian/patches/install-efi-ubuntu-flavours.patch | |||
910 | +++ b/debian/patches/install-efi-ubuntu-flavours.patch | |||
911 | @@ -1,4 +1,4 @@ | |||
913 | 1 | From 6def03933e04c3f0d3bbcb37b96dc08d1ba67d74 Mon Sep 17 00:00:00 2001 | 1 | From dc18a17ef4f437fe9edfcf58747b70690e4ad32e Mon Sep 17 00:00:00 2001 |
914 | 2 | From: Colin Watson <cjwatson@ubuntu.com> | 2 | From: Colin Watson <cjwatson@ubuntu.com> |
915 | 3 | Date: Mon, 13 Jan 2014 12:13:27 +0000 | 3 | Date: Mon, 13 Jan 2014 12:13:27 +0000 |
916 | 4 | Subject: Cope with Kubuntu setting GRUB_DISTRIBUTOR | 4 | Subject: Cope with Kubuntu setting GRUB_DISTRIBUTOR |
917 | @@ -17,7 +17,7 @@ Patch-Name: install-efi-ubuntu-flavours.patch | |||
918 | 17 | 1 file changed, 2 insertions(+) | 17 | 1 file changed, 2 insertions(+) |
919 | 18 | 18 | ||
920 | 19 | diff --git a/util/grub-install.c b/util/grub-install.c | 19 | diff --git a/util/grub-install.c b/util/grub-install.c |
922 | 20 | index e1e40cf2b..f0d59c180 100644 | 20 | index e1e40cf2b5..f0d59c1809 100644 |
923 | 21 | --- a/util/grub-install.c | 21 | --- a/util/grub-install.c |
924 | 22 | +++ b/util/grub-install.c | 22 | +++ b/util/grub-install.c |
925 | 23 | @@ -1115,6 +1115,8 @@ main (int argc, char *argv[]) | 23 | @@ -1115,6 +1115,8 @@ main (int argc, char *argv[]) |
926 | diff --git a/debian/patches/install-locale-langpack.patch b/debian/patches/install-locale-langpack.patch | |||
927 | index 4537170..91dd7c4 100644 | |||
928 | --- a/debian/patches/install-locale-langpack.patch | |||
929 | +++ b/debian/patches/install-locale-langpack.patch | |||
930 | @@ -1,4 +1,4 @@ | |||
932 | 1 | From 4f4b15148b61872395936b083eae7b843ac7d373 Mon Sep 17 00:00:00 2001 | 1 | From 7b60caf762c21f914b0d55b1d1b05dd54106e040 Mon Sep 17 00:00:00 2001 |
933 | 2 | From: Colin Watson <cjwatson@ubuntu.com> | 2 | From: Colin Watson <cjwatson@ubuntu.com> |
934 | 3 | Date: Mon, 13 Jan 2014 12:13:07 +0000 | 3 | Date: Mon, 13 Jan 2014 12:13:07 +0000 |
935 | 4 | Subject: Prefer translations from Ubuntu language packs if available | 4 | Subject: Prefer translations from Ubuntu language packs if available |
936 | @@ -13,7 +13,7 @@ Patch-Name: install-locale-langpack.patch | |||
937 | 13 | 1 file changed, 30 insertions(+), 7 deletions(-) | 13 | 1 file changed, 30 insertions(+), 7 deletions(-) |
938 | 14 | 14 | ||
939 | 15 | diff --git a/util/grub-install-common.c b/util/grub-install-common.c | 15 | diff --git a/util/grub-install-common.c b/util/grub-install-common.c |
941 | 16 | index ca0ac612a..fdfe2c7ea 100644 | 16 | index ca0ac612ac..fdfe2c7ead 100644 |
942 | 17 | --- a/util/grub-install-common.c | 17 | --- a/util/grub-install-common.c |
943 | 18 | +++ b/util/grub-install-common.c | 18 | +++ b/util/grub-install-common.c |
944 | 19 | @@ -609,17 +609,25 @@ get_localedir (void) | 19 | @@ -609,17 +609,25 @@ get_localedir (void) |
945 | diff --git a/debian/patches/install-powerpc-machtypes.patch b/debian/patches/install-powerpc-machtypes.patch | |||
946 | index bbc8d71..c94c436 100644 | |||
947 | --- a/debian/patches/install-powerpc-machtypes.patch | |||
948 | +++ b/debian/patches/install-powerpc-machtypes.patch | |||
949 | @@ -1,4 +1,4 @@ | |||
951 | 1 | From 6468fe3eb25e597acd0c80e3f7b5930472328d89 Mon Sep 17 00:00:00 2001 | 1 | From 15fb6fc1774a74152ad3070d2f14b88c00759577 Mon Sep 17 00:00:00 2001 |
952 | 2 | From: Colin Watson <cjwatson@debian.org> | 2 | From: Colin Watson <cjwatson@debian.org> |
953 | 3 | Date: Tue, 28 Jan 2014 14:40:02 +0000 | 3 | Date: Tue, 28 Jan 2014 14:40:02 +0000 |
954 | 4 | Subject: Port yaboot logic for various powerpc machine types | 4 | Subject: Port yaboot logic for various powerpc machine types |
955 | @@ -25,7 +25,7 @@ Patch-Name: install-powerpc-machtypes.patch | |||
956 | 25 | 6 files changed, 119 insertions(+), 6 deletions(-) | 25 | 6 files changed, 119 insertions(+), 6 deletions(-) |
957 | 26 | 26 | ||
958 | 27 | diff --git a/grub-core/osdep/basic/platform.c b/grub-core/osdep/basic/platform.c | 27 | diff --git a/grub-core/osdep/basic/platform.c b/grub-core/osdep/basic/platform.c |
960 | 28 | index a7dafd85a..6c293ed2d 100644 | 28 | index a7dafd85a9..6c293ed2d0 100644 |
961 | 29 | --- a/grub-core/osdep/basic/platform.c | 29 | --- a/grub-core/osdep/basic/platform.c |
962 | 30 | +++ b/grub-core/osdep/basic/platform.c | 30 | +++ b/grub-core/osdep/basic/platform.c |
963 | 31 | @@ -30,3 +30,8 @@ grub_install_get_default_x86_platform (void) | 31 | @@ -30,3 +30,8 @@ grub_install_get_default_x86_platform (void) |
964 | @@ -38,7 +38,7 @@ index a7dafd85a..6c293ed2d 100644 | |||
965 | 38 | + return "generic"; | 38 | + return "generic"; |
966 | 39 | +} | 39 | +} |
967 | 40 | diff --git a/grub-core/osdep/linux/platform.c b/grub-core/osdep/linux/platform.c | 40 | diff --git a/grub-core/osdep/linux/platform.c b/grub-core/osdep/linux/platform.c |
969 | 41 | index 2e7f72086..5b37366d4 100644 | 41 | index 2e7f720869..5b37366d4d 100644 |
970 | 42 | --- a/grub-core/osdep/linux/platform.c | 42 | --- a/grub-core/osdep/linux/platform.c |
971 | 43 | +++ b/grub-core/osdep/linux/platform.c | 43 | +++ b/grub-core/osdep/linux/platform.c |
972 | 44 | @@ -24,6 +24,7 @@ | 44 | @@ -24,6 +24,7 @@ |
973 | @@ -125,7 +125,7 @@ index 2e7f72086..5b37366d4 100644 | |||
974 | 125 | + return machtype; | 125 | + return machtype; |
975 | 126 | +} | 126 | +} |
976 | 127 | diff --git a/grub-core/osdep/unix/platform.c b/grub-core/osdep/unix/platform.c | 127 | diff --git a/grub-core/osdep/unix/platform.c b/grub-core/osdep/unix/platform.c |
978 | 128 | index 55b8f4016..9c439326a 100644 | 128 | index 55b8f40162..9c439326a0 100644 |
979 | 129 | --- a/grub-core/osdep/unix/platform.c | 129 | --- a/grub-core/osdep/unix/platform.c |
980 | 130 | +++ b/grub-core/osdep/unix/platform.c | 130 | +++ b/grub-core/osdep/unix/platform.c |
981 | 131 | @@ -218,13 +218,29 @@ grub_install_register_ieee1275 (int is_prep, const char *install_device, | 131 | @@ -218,13 +218,29 @@ grub_install_register_ieee1275 (int is_prep, const char *install_device, |
982 | @@ -165,7 +165,7 @@ index 55b8f4016..9c439326a 100644 | |||
983 | 165 | 165 | ||
984 | 166 | free (boot_device); | 166 | free (boot_device); |
985 | 167 | diff --git a/grub-core/osdep/windows/platform.c b/grub-core/osdep/windows/platform.c | 167 | diff --git a/grub-core/osdep/windows/platform.c b/grub-core/osdep/windows/platform.c |
987 | 168 | index 7eb53fe01..e19a3d9a8 100644 | 168 | index 7eb53fe01b..e19a3d9a8a 100644 |
988 | 169 | --- a/grub-core/osdep/windows/platform.c | 169 | --- a/grub-core/osdep/windows/platform.c |
989 | 170 | +++ b/grub-core/osdep/windows/platform.c | 170 | +++ b/grub-core/osdep/windows/platform.c |
990 | 171 | @@ -128,6 +128,12 @@ grub_install_get_default_x86_platform (void) | 171 | @@ -128,6 +128,12 @@ grub_install_get_default_x86_platform (void) |
991 | @@ -182,7 +182,7 @@ index 7eb53fe01..e19a3d9a8 100644 | |||
992 | 182 | get_efi_variable (const wchar_t *varname, ssize_t *len) | 182 | get_efi_variable (const wchar_t *varname, ssize_t *len) |
993 | 183 | { | 183 | { |
994 | 184 | diff --git a/include/grub/util/install.h b/include/grub/util/install.h | 184 | diff --git a/include/grub/util/install.h b/include/grub/util/install.h |
996 | 185 | index 2631b1074..8aeb5c4f2 100644 | 185 | index 2631b10745..8aeb5c4f20 100644 |
997 | 186 | --- a/include/grub/util/install.h | 186 | --- a/include/grub/util/install.h |
998 | 187 | +++ b/include/grub/util/install.h | 187 | +++ b/include/grub/util/install.h |
999 | 188 | @@ -216,6 +216,9 @@ grub_install_get_default_arm_platform (void); | 188 | @@ -216,6 +216,9 @@ grub_install_get_default_arm_platform (void); |
1000 | @@ -196,7 +196,7 @@ index 2631b1074..8aeb5c4f2 100644 | |||
1001 | 196 | grub_install_register_efi (grub_device_t efidir_grub_dev, | 196 | grub_install_register_efi (grub_device_t efidir_grub_dev, |
1002 | 197 | const char *efifile_path, | 197 | const char *efifile_path, |
1003 | 198 | diff --git a/util/grub-install.c b/util/grub-install.c | 198 | diff --git a/util/grub-install.c b/util/grub-install.c |
1005 | 199 | index f0d59c180..70d6700de 100644 | 199 | index f0d59c1809..70d6700de8 100644 |
1006 | 200 | --- a/util/grub-install.c | 200 | --- a/util/grub-install.c |
1007 | 201 | +++ b/util/grub-install.c | 201 | +++ b/util/grub-install.c |
1008 | 202 | @@ -1177,7 +1177,18 @@ main (int argc, char *argv[]) | 202 | @@ -1177,7 +1177,18 @@ main (int argc, char *argv[]) |
1009 | diff --git a/debian/patches/install-stage2-confusion.patch b/debian/patches/install-stage2-confusion.patch | |||
1010 | index a803a68..6451234 100644 | |||
1011 | --- a/debian/patches/install-stage2-confusion.patch | |||
1012 | +++ b/debian/patches/install-stage2-confusion.patch | |||
1013 | @@ -1,4 +1,4 @@ | |||
1015 | 1 | From d9969cb0267a40684bf7a60d70bfc3fc8a962a90 Mon Sep 17 00:00:00 2001 | 1 | From 65b6b662d6379652ca1bef129a686494669997a1 Mon Sep 17 00:00:00 2001 |
1016 | 2 | From: Colin Watson <cjwatson@debian.org> | 2 | From: Colin Watson <cjwatson@debian.org> |
1017 | 3 | Date: Mon, 13 Jan 2014 12:12:58 +0000 | 3 | Date: Mon, 13 Jan 2014 12:12:58 +0000 |
1018 | 4 | Subject: If GRUB Legacy is still around, tell packaging to ignore it | 4 | Subject: If GRUB Legacy is still around, tell packaging to ignore it |
1019 | @@ -13,7 +13,7 @@ Patch-Name: install-stage2-confusion.patch | |||
1020 | 13 | 1 file changed, 14 insertions(+) | 13 | 1 file changed, 14 insertions(+) |
1021 | 14 | 14 | ||
1022 | 15 | diff --git a/util/grub-install.c b/util/grub-install.c | 15 | diff --git a/util/grub-install.c b/util/grub-install.c |
1024 | 16 | index 8a55ad4b8..3b4606eef 100644 | 16 | index 8a55ad4b8d..3b4606eef1 100644 |
1025 | 17 | --- a/util/grub-install.c | 17 | --- a/util/grub-install.c |
1026 | 18 | +++ b/util/grub-install.c | 18 | +++ b/util/grub-install.c |
1027 | 19 | @@ -42,6 +42,7 @@ | 19 | @@ -42,6 +42,7 @@ |
1028 | diff --git a/debian/patches/maybe-quiet.patch b/debian/patches/maybe-quiet.patch | |||
1029 | index 64e8d68..3706357 100644 | |||
1030 | --- a/debian/patches/maybe-quiet.patch | |||
1031 | +++ b/debian/patches/maybe-quiet.patch | |||
1032 | @@ -1,4 +1,4 @@ | |||
1034 | 1 | From f93cd4fda2916af2b70228878f97cb7bbdeb234d Mon Sep 17 00:00:00 2001 | 1 | From e5e64092c5dfeab61f1de2ef270827ba84f88c0e Mon Sep 17 00:00:00 2001 |
1035 | 2 | From: Didier Roche <didrocks@ubuntu.com> | 2 | From: Didier Roche <didrocks@ubuntu.com> |
1036 | 3 | Date: Tue, 31 Mar 2020 15:20:15 +0200 | 3 | Date: Tue, 31 Mar 2020 15:20:15 +0200 |
1037 | 4 | Subject: Add configure option to reduce visual clutter at boot time | 4 | Subject: Add configure option to reduce visual clutter at boot time |
1038 | @@ -47,7 +47,7 @@ Patch-Name: maybe-quiet.patch | |||
1039 | 47 | 10 files changed, 118 insertions(+), 8 deletions(-) | 47 | 10 files changed, 118 insertions(+), 8 deletions(-) |
1040 | 48 | 48 | ||
1041 | 49 | diff --git a/config.h.in b/config.h.in | 49 | diff --git a/config.h.in b/config.h.in |
1043 | 50 | index 9e8f9911b..d2c4ce8e5 100644 | 50 | index 9e8f9911b1..d2c4ce8e51 100644 |
1044 | 51 | --- a/config.h.in | 51 | --- a/config.h.in |
1045 | 52 | +++ b/config.h.in | 52 | +++ b/config.h.in |
1046 | 53 | @@ -12,6 +12,8 @@ | 53 | @@ -12,6 +12,8 @@ |
1047 | @@ -60,7 +60,7 @@ index 9e8f9911b..d2c4ce8e5 100644 | |||
1048 | 60 | /* We don't need those. */ | 60 | /* We don't need those. */ |
1049 | 61 | #define MINILZO_CFG_SKIP_LZO_PTR 1 | 61 | #define MINILZO_CFG_SKIP_LZO_PTR 1 |
1050 | 62 | diff --git a/configure.ac b/configure.ac | 62 | diff --git a/configure.ac b/configure.ac |
1052 | 63 | index 1e5abc67d..ea00ccd69 100644 | 63 | index 1e5abc67d9..ea00ccd691 100644 |
1053 | 64 | --- a/configure.ac | 64 | --- a/configure.ac |
1054 | 65 | +++ b/configure.ac | 65 | +++ b/configure.ac |
1055 | 66 | @@ -1857,6 +1857,17 @@ else | 66 | @@ -1857,6 +1857,17 @@ else |
1056 | @@ -93,7 +93,7 @@ index 1e5abc67d..ea00ccd69 100644 | |||
1057 | 93 | echo "*******************************************************" | 93 | echo "*******************************************************" |
1058 | 94 | ] | 94 | ] |
1059 | 95 | diff --git a/grub-core/boot/i386/pc/boot.S b/grub-core/boot/i386/pc/boot.S | 95 | diff --git a/grub-core/boot/i386/pc/boot.S b/grub-core/boot/i386/pc/boot.S |
1061 | 96 | index 2bd0b2d28..b0c0f2225 100644 | 96 | index 2bd0b2d286..b0c0f2225e 100644 |
1062 | 97 | --- a/grub-core/boot/i386/pc/boot.S | 97 | --- a/grub-core/boot/i386/pc/boot.S |
1063 | 98 | +++ b/grub-core/boot/i386/pc/boot.S | 98 | +++ b/grub-core/boot/i386/pc/boot.S |
1064 | 99 | @@ -19,6 +19,9 @@ | 99 | @@ -19,6 +19,9 @@ |
1065 | @@ -125,7 +125,7 @@ index 2bd0b2d28..b0c0f2225 100644 | |||
1066 | 125 | movw $disk_address_packet, %si | 125 | movw $disk_address_packet, %si |
1067 | 126 | 126 | ||
1068 | 127 | diff --git a/grub-core/boot/i386/pc/diskboot.S b/grub-core/boot/i386/pc/diskboot.S | 127 | diff --git a/grub-core/boot/i386/pc/diskboot.S b/grub-core/boot/i386/pc/diskboot.S |
1070 | 128 | index c1addc0df..9b6d7a7ed 100644 | 128 | index c1addc0df2..9b6d7a7edc 100644 |
1071 | 129 | --- a/grub-core/boot/i386/pc/diskboot.S | 129 | --- a/grub-core/boot/i386/pc/diskboot.S |
1072 | 130 | +++ b/grub-core/boot/i386/pc/diskboot.S | 130 | +++ b/grub-core/boot/i386/pc/diskboot.S |
1073 | 131 | @@ -18,6 +18,9 @@ | 131 | @@ -18,6 +18,9 @@ |
1074 | @@ -205,7 +205,7 @@ index c1addc0df..9b6d7a7ed 100644 | |||
1075 | 205 | 205 | ||
1076 | 206 | notification_step: .asciz "." | 206 | notification_step: .asciz "." |
1077 | 207 | diff --git a/grub-core/kern/main.c b/grub-core/kern/main.c | 207 | diff --git a/grub-core/kern/main.c b/grub-core/kern/main.c |
1079 | 208 | index 9cad0c448..714b63d67 100644 | 208 | index 9cad0c4485..714b63d674 100644 |
1080 | 209 | --- a/grub-core/kern/main.c | 209 | --- a/grub-core/kern/main.c |
1081 | 210 | +++ b/grub-core/kern/main.c | 210 | +++ b/grub-core/kern/main.c |
1082 | 211 | @@ -264,15 +264,25 @@ reclaim_module_space (void) | 211 | @@ -264,15 +264,25 @@ reclaim_module_space (void) |
1083 | @@ -248,7 +248,7 @@ index 9cad0c448..714b63d67 100644 | |||
1084 | 248 | grub_rescue_run (); | 248 | grub_rescue_run (); |
1085 | 249 | } | 249 | } |
1086 | 250 | diff --git a/grub-core/kern/rescue_reader.c b/grub-core/kern/rescue_reader.c | 250 | diff --git a/grub-core/kern/rescue_reader.c b/grub-core/kern/rescue_reader.c |
1088 | 251 | index dcd7d4439..a93524eab 100644 | 251 | index dcd7d44397..a93524eabb 100644 |
1089 | 252 | --- a/grub-core/kern/rescue_reader.c | 252 | --- a/grub-core/kern/rescue_reader.c |
1090 | 253 | +++ b/grub-core/kern/rescue_reader.c | 253 | +++ b/grub-core/kern/rescue_reader.c |
1091 | 254 | @@ -78,7 +78,9 @@ grub_rescue_read_line (char **line, int cont, | 254 | @@ -78,7 +78,9 @@ grub_rescue_read_line (char **line, int cont, |
1092 | @@ -262,7 +262,7 @@ index dcd7d4439..a93524eab 100644 | |||
1093 | 262 | while (1) | 262 | while (1) |
1094 | 263 | { | 263 | { |
1095 | 264 | diff --git a/grub-core/normal/main.c b/grub-core/normal/main.c | 264 | diff --git a/grub-core/normal/main.c b/grub-core/normal/main.c |
1097 | 265 | index 1b03dfd57..0aa389fa1 100644 | 265 | index 1b03dfd57b..0aa389fa16 100644 |
1098 | 266 | --- a/grub-core/normal/main.c | 266 | --- a/grub-core/normal/main.c |
1099 | 267 | +++ b/grub-core/normal/main.c | 267 | +++ b/grub-core/normal/main.c |
1100 | 268 | @@ -389,6 +389,15 @@ static grub_err_t | 268 | @@ -389,6 +389,15 @@ static grub_err_t |
1101 | @@ -292,7 +292,7 @@ index 1b03dfd57..0aa389fa1 100644 | |||
1102 | 292 | while (1) | 292 | while (1) |
1103 | 293 | { | 293 | { |
1104 | 294 | diff --git a/grub-core/normal/menu.c b/grub-core/normal/menu.c | 294 | diff --git a/grub-core/normal/menu.c b/grub-core/normal/menu.c |
1106 | 295 | index 3611ee9ea..ebf5a0f10 100644 | 295 | index 3611ee9ea7..ebf5a0f109 100644 |
1107 | 296 | --- a/grub-core/normal/menu.c | 296 | --- a/grub-core/normal/menu.c |
1108 | 297 | +++ b/grub-core/normal/menu.c | 297 | +++ b/grub-core/normal/menu.c |
1109 | 298 | @@ -827,12 +827,18 @@ run_menu (grub_menu_t menu, int nested, int *auto_boot) | 298 | @@ -827,12 +827,18 @@ run_menu (grub_menu_t menu, int nested, int *auto_boot) |
1110 | @@ -339,7 +339,7 @@ index 3611ee9ea..ebf5a0f10 100644 | |||
1111 | 339 | if (auto_boot) | 339 | if (auto_boot) |
1112 | 340 | grub_menu_execute_with_fallback (menu, e, autobooted, | 340 | grub_menu_execute_with_fallback (menu, e, autobooted, |
1113 | 341 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in | 341 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in |
1115 | 342 | index cb1cc200e..479a8bf4e 100644 | 342 | index cb1cc200e4..479a8bf4e5 100644 |
1116 | 343 | --- a/util/grub.d/10_linux.in | 343 | --- a/util/grub.d/10_linux.in |
1117 | 344 | +++ b/util/grub.d/10_linux.in | 344 | +++ b/util/grub.d/10_linux.in |
1118 | 345 | @@ -21,6 +21,7 @@ prefix="@prefix@" | 345 | @@ -21,6 +21,7 @@ prefix="@prefix@" |
1119 | @@ -386,7 +386,7 @@ index cb1cc200e..479a8bf4e 100644 | |||
1120 | 386 | EOF | 386 | EOF |
1121 | 387 | fi | 387 | fi |
1122 | 388 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in | 388 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
1124 | 389 | index c1dfe8ae8..1a656b2dd 100755 | 389 | index bd4f1a2123..3a0e6d1035 100755 |
1125 | 390 | --- a/util/grub.d/10_linux_zfs.in | 390 | --- a/util/grub.d/10_linux_zfs.in |
1126 | 391 | +++ b/util/grub.d/10_linux_zfs.in | 391 | +++ b/util/grub.d/10_linux_zfs.in |
1127 | 392 | @@ -20,6 +20,7 @@ set -e | 392 | @@ -20,6 +20,7 @@ set -e |
1128 | @@ -397,7 +397,7 @@ index c1dfe8ae8..1a656b2dd 100755 | |||
1129 | 397 | 397 | ||
1130 | 398 | . "${pkgdatadir}/grub-mkconfig_lib" | 398 | . "${pkgdatadir}/grub-mkconfig_lib" |
1131 | 399 | 399 | ||
1133 | 400 | @@ -776,7 +777,9 @@ zfs_linux_entry () { | 400 | @@ -779,7 +780,9 @@ zfs_linux_entry () { |
1134 | 401 | 401 | ||
1135 | 402 | echo "$(prepare_grub_to_access_device_cached "${boot_device}" "${submenu_level}")" | 402 | echo "$(prepare_grub_to_access_device_cached "${boot_device}" "${submenu_level}")" |
1136 | 403 | 403 | ||
1137 | @@ -408,7 +408,7 @@ index c1dfe8ae8..1a656b2dd 100755 | |||
1138 | 408 | 408 | ||
1139 | 409 | linux_default_args="${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" | 409 | linux_default_args="${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" |
1140 | 410 | if [ ${type} = "recovery" ]; then | 410 | if [ ${type} = "recovery" ]; then |
1142 | 411 | @@ -785,7 +788,9 @@ zfs_linux_entry () { | 411 | @@ -788,7 +791,9 @@ zfs_linux_entry () { |
1143 | 412 | 412 | ||
1144 | 413 | echo "${submenu_indentation} linux ${kernel} root=ZFS=${dataset} ro ${linux_default_args} ${kernel_additional_args}" | 413 | echo "${submenu_indentation} linux ${kernel} root=ZFS=${dataset} ro ${linux_default_args} ${kernel_additional_args}" |
1145 | 414 | 414 | ||
1146 | diff --git a/debian/patches/mkconfig-loopback.patch b/debian/patches/mkconfig-loopback.patch | |||
1147 | index 0c7498b..0398786 100644 | |||
1148 | --- a/debian/patches/mkconfig-loopback.patch | |||
1149 | +++ b/debian/patches/mkconfig-loopback.patch | |||
1150 | @@ -1,4 +1,4 @@ | |||
1152 | 1 | From 4750b94c28b61e29d3f1bfce6bc7fa8f48c45526 Mon Sep 17 00:00:00 2001 | 1 | From 797776285ad55df88f81c3c17656e03a187e7140 Mon Sep 17 00:00:00 2001 |
1153 | 2 | From: Colin Watson <cjwatson@debian.org> | 2 | From: Colin Watson <cjwatson@debian.org> |
1154 | 3 | Date: Mon, 13 Jan 2014 12:13:00 +0000 | 3 | Date: Mon, 13 Jan 2014 12:13:00 +0000 |
1155 | 4 | Subject: Handle filesystems loop-mounted on file images | 4 | Subject: Handle filesystems loop-mounted on file images |
1156 | @@ -21,7 +21,7 @@ Patch-Name: mkconfig-loopback.patch | |||
1157 | 21 | 3 files changed, 34 insertions(+) | 21 | 3 files changed, 34 insertions(+) |
1158 | 22 | 22 | ||
1159 | 23 | diff --git a/util/grub-mkconfig_lib.in b/util/grub-mkconfig_lib.in | 23 | diff --git a/util/grub-mkconfig_lib.in b/util/grub-mkconfig_lib.in |
1161 | 24 | index b6606c16e..b05df554d 100644 | 24 | index b6606c16e0..b05df554da 100644 |
1162 | 25 | --- a/util/grub-mkconfig_lib.in | 25 | --- a/util/grub-mkconfig_lib.in |
1163 | 26 | +++ b/util/grub-mkconfig_lib.in | 26 | +++ b/util/grub-mkconfig_lib.in |
1164 | 27 | @@ -133,6 +133,22 @@ prepare_grub_to_access_device () | 27 | @@ -133,6 +133,22 @@ prepare_grub_to_access_device () |
1165 | @@ -63,7 +63,7 @@ index b6606c16e..b05df554d 100644 | |||
1166 | 63 | 63 | ||
1167 | 64 | grub_get_device_id () | 64 | grub_get_device_id () |
1168 | 65 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in | 65 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in |
1170 | 66 | index f839b3b55..d927b60ae 100644 | 66 | index f839b3b55f..d927b60ae2 100644 |
1171 | 67 | --- a/util/grub.d/10_linux.in | 67 | --- a/util/grub.d/10_linux.in |
1172 | 68 | +++ b/util/grub.d/10_linux.in | 68 | +++ b/util/grub.d/10_linux.in |
1173 | 69 | @@ -40,6 +40,11 @@ fi | 69 | @@ -40,6 +40,11 @@ fi |
1174 | @@ -79,7 +79,7 @@ index f839b3b55..d927b60ae 100644 | |||
1175 | 79 | esac | 79 | esac |
1176 | 80 | 80 | ||
1177 | 81 | diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in | 81 | diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in |
1179 | 82 | index 96179ea61..9a8d42fb5 100644 | 82 | index 96179ea613..9a8d42fb57 100644 |
1180 | 83 | --- a/util/grub.d/20_linux_xen.in | 83 | --- a/util/grub.d/20_linux_xen.in |
1181 | 84 | +++ b/util/grub.d/20_linux_xen.in | 84 | +++ b/util/grub.d/20_linux_xen.in |
1182 | 85 | @@ -40,6 +40,11 @@ fi | 85 | @@ -40,6 +40,11 @@ fi |
1183 | diff --git a/debian/patches/mkconfig-mid-upgrade.patch b/debian/patches/mkconfig-mid-upgrade.patch | |||
1184 | index 248f6c3..74eb2da 100644 | |||
1185 | --- a/debian/patches/mkconfig-mid-upgrade.patch | |||
1186 | +++ b/debian/patches/mkconfig-mid-upgrade.patch | |||
1187 | @@ -1,4 +1,4 @@ | |||
1189 | 1 | From 8ce50d6419c04a49070868a4245664419e0901fa Mon Sep 17 00:00:00 2001 | 1 | From 1033aefcd66f55eb12dedee2311b217beb1d9349 Mon Sep 17 00:00:00 2001 |
1190 | 2 | From: Colin Watson <cjwatson@ubuntu.com> | 2 | From: Colin Watson <cjwatson@ubuntu.com> |
1191 | 3 | Date: Mon, 13 Jan 2014 12:13:03 +0000 | 3 | Date: Mon, 13 Jan 2014 12:13:03 +0000 |
1192 | 4 | Subject: Bail out if trying to run grub-mkconfig during upgrade to 2.00 | 4 | Subject: Bail out if trying to run grub-mkconfig during upgrade to 2.00 |
1193 | @@ -20,7 +20,7 @@ Patch-Name: mkconfig-mid-upgrade.patch | |||
1194 | 20 | 1 file changed, 7 insertions(+) | 20 | 1 file changed, 7 insertions(+) |
1195 | 21 | 21 | ||
1196 | 22 | diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in | 22 | diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in |
1198 | 23 | index 45cd4cc54..b506d63bf 100644 | 23 | index 45cd4cc541..b506d63bf9 100644 |
1199 | 24 | --- a/util/grub-mkconfig.in | 24 | --- a/util/grub-mkconfig.in |
1200 | 25 | +++ b/util/grub-mkconfig.in | 25 | +++ b/util/grub-mkconfig.in |
1201 | 26 | @@ -102,6 +102,13 @@ do | 26 | @@ -102,6 +102,13 @@ do |
1202 | diff --git a/debian/patches/mkconfig-nonexistent-loopback.patch b/debian/patches/mkconfig-nonexistent-loopback.patch | |||
1203 | index 9b8b848..1450a08 100644 | |||
1204 | --- a/debian/patches/mkconfig-nonexistent-loopback.patch | |||
1205 | +++ b/debian/patches/mkconfig-nonexistent-loopback.patch | |||
1206 | @@ -1,4 +1,4 @@ | |||
1208 | 1 | From c754f6529f31d14b1110f457e9244f6454a2ed4e Mon Sep 17 00:00:00 2001 | 1 | From 615a0ad44bd41bf58f71ac391416ce9be1b4b7ae Mon Sep 17 00:00:00 2001 |
1209 | 2 | From: Colin Watson <cjwatson@ubuntu.com> | 2 | From: Colin Watson <cjwatson@ubuntu.com> |
1210 | 3 | Date: Mon, 13 Jan 2014 12:13:08 +0000 | 3 | Date: Mon, 13 Jan 2014 12:13:08 +0000 |
1211 | 4 | Subject: Avoid getting confused by inaccessible loop device backing paths | 4 | Subject: Avoid getting confused by inaccessible loop device backing paths |
1212 | @@ -14,7 +14,7 @@ Patch-Name: mkconfig-nonexistent-loopback.patch | |||
1213 | 14 | 2 files changed, 6 insertions(+), 5 deletions(-) | 14 | 2 files changed, 6 insertions(+), 5 deletions(-) |
1214 | 15 | 15 | ||
1215 | 16 | diff --git a/util/grub-mkconfig_lib.in b/util/grub-mkconfig_lib.in | 16 | diff --git a/util/grub-mkconfig_lib.in b/util/grub-mkconfig_lib.in |
1217 | 17 | index b05df554d..fe6319abe 100644 | 17 | index b05df554da..fe6319abe0 100644 |
1218 | 18 | --- a/util/grub-mkconfig_lib.in | 18 | --- a/util/grub-mkconfig_lib.in |
1219 | 19 | +++ b/util/grub-mkconfig_lib.in | 19 | +++ b/util/grub-mkconfig_lib.in |
1220 | 20 | @@ -143,7 +143,7 @@ prepare_grub_to_access_device () | 20 | @@ -143,7 +143,7 @@ prepare_grub_to_access_device () |
1221 | @@ -27,7 +27,7 @@ index b05df554d..fe6319abe 100644 | |||
1222 | 27 | esac | 27 | esac |
1223 | 28 | ;; | 28 | ;; |
1224 | 29 | diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in | 29 | diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in |
1226 | 30 | index 775ceb2e0..b7e1147c4 100644 | 30 | index 775ceb2e04..b7e1147c41 100644 |
1227 | 31 | --- a/util/grub.d/30_os-prober.in | 31 | --- a/util/grub.d/30_os-prober.in |
1228 | 32 | +++ b/util/grub.d/30_os-prober.in | 32 | +++ b/util/grub.d/30_os-prober.in |
1229 | 33 | @@ -219,6 +219,11 @@ EOF | 33 | @@ -219,6 +219,11 @@ EOF |
1230 | diff --git a/debian/patches/mkconfig-other-inits.patch b/debian/patches/mkconfig-other-inits.patch | |||
1231 | index e7dd0b6..13f8bfd 100644 | |||
1232 | --- a/debian/patches/mkconfig-other-inits.patch | |||
1233 | +++ b/debian/patches/mkconfig-other-inits.patch | |||
1234 | @@ -1,4 +1,4 @@ | |||
1236 | 1 | From 0564e92b1f182280d433e829406bdf91dd19a357 Mon Sep 17 00:00:00 2001 | 1 | From 2015389b99c6a5eda55aa56a14dd4c65cf2a0d59 Mon Sep 17 00:00:00 2001 |
1237 | 2 | From: Colin Watson <cjwatson@debian.org> | 2 | From: Colin Watson <cjwatson@debian.org> |
1238 | 3 | Date: Sat, 3 Jan 2015 12:04:59 +0000 | 3 | Date: Sat, 3 Jan 2015 12:04:59 +0000 |
1239 | 4 | Subject: Generate alternative init entries in advanced menu | 4 | Subject: Generate alternative init entries in advanced menu |
1240 | @@ -18,7 +18,7 @@ Patch-Name: mkconfig-other-inits.patch | |||
1241 | 18 | 2 files changed, 21 insertions(+) | 18 | 2 files changed, 21 insertions(+) |
1242 | 19 | 19 | ||
1243 | 20 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in | 20 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in |
1245 | 21 | index 85b30084a..dff84edea 100644 | 21 | index 85b30084ad..dff84edea5 100644 |
1246 | 22 | --- a/util/grub.d/10_linux.in | 22 | --- a/util/grub.d/10_linux.in |
1247 | 23 | +++ b/util/grub.d/10_linux.in | 23 | +++ b/util/grub.d/10_linux.in |
1248 | 24 | @@ -32,6 +32,7 @@ export TEXTDOMAIN=@PACKAGE@ | 24 | @@ -32,6 +32,7 @@ export TEXTDOMAIN=@PACKAGE@ |
1249 | @@ -53,7 +53,7 @@ index 85b30084a..dff84edea 100644 | |||
1250 | 53 | linux_entry "${OS}" "${version}" recovery \ | 53 | linux_entry "${OS}" "${version}" recovery \ |
1251 | 54 | "${GRUB_CMDLINE_LINUX_RECOVERY} ${GRUB_CMDLINE_LINUX}" | 54 | "${GRUB_CMDLINE_LINUX_RECOVERY} ${GRUB_CMDLINE_LINUX}" |
1252 | 55 | diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in | 55 | diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in |
1254 | 56 | index f2ee0532b..81e5f0d7e 100644 | 56 | index f2ee0532bd..81e5f0d7e4 100644 |
1255 | 57 | --- a/util/grub.d/20_linux_xen.in | 57 | --- a/util/grub.d/20_linux_xen.in |
1256 | 58 | +++ b/util/grub.d/20_linux_xen.in | 58 | +++ b/util/grub.d/20_linux_xen.in |
1257 | 59 | @@ -27,6 +27,7 @@ export TEXTDOMAIN=@PACKAGE@ | 59 | @@ -27,6 +27,7 @@ export TEXTDOMAIN=@PACKAGE@ |
1258 | diff --git a/debian/patches/mkconfig-recovery-title.patch b/debian/patches/mkconfig-recovery-title.patch | |||
1259 | index 869fc30..185d1d2 100644 | |||
1260 | --- a/debian/patches/mkconfig-recovery-title.patch | |||
1261 | +++ b/debian/patches/mkconfig-recovery-title.patch | |||
1262 | @@ -1,4 +1,4 @@ | |||
1264 | 1 | From 0636b004bd56946dd24ce0afff820f9ed76da34b Mon Sep 17 00:00:00 2001 | 1 | From d8fd4cbf012ffc87a49de8cc28ed27c82f2eec1b Mon Sep 17 00:00:00 2001 |
1265 | 2 | From: Colin Watson <cjwatson@ubuntu.com> | 2 | From: Colin Watson <cjwatson@ubuntu.com> |
1266 | 3 | Date: Mon, 13 Jan 2014 12:13:33 +0000 | 3 | Date: Mon, 13 Jan 2014 12:13:33 +0000 |
1267 | 4 | Subject: Add GRUB_RECOVERY_TITLE option | 4 | Subject: Add GRUB_RECOVERY_TITLE option |
1268 | @@ -22,7 +22,7 @@ Patch-Name: mkconfig-recovery-title.patch | |||
1269 | 22 | 8 files changed, 21 insertions(+), 11 deletions(-) | 22 | 8 files changed, 21 insertions(+), 11 deletions(-) |
1270 | 23 | 23 | ||
1271 | 24 | diff --git a/docs/grub.texi b/docs/grub.texi | 24 | diff --git a/docs/grub.texi b/docs/grub.texi |
1273 | 25 | index a835d0ae4..3ec35d315 100644 | 25 | index a835d0ae42..3ec35d315a 100644 |
1274 | 26 | --- a/docs/grub.texi | 26 | --- a/docs/grub.texi |
1275 | 27 | +++ b/docs/grub.texi | 27 | +++ b/docs/grub.texi |
1276 | 28 | @@ -1536,6 +1536,11 @@ a console is restricted or limited. | 28 | @@ -1536,6 +1536,11 @@ a console is restricted or limited. |
1277 | @@ -38,7 +38,7 @@ index a835d0ae4..3ec35d315 100644 | |||
1278 | 38 | 38 | ||
1279 | 39 | The following options are still accepted for compatibility with existing | 39 | The following options are still accepted for compatibility with existing |
1280 | 40 | diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in | 40 | diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in |
1282 | 41 | index 307214310..9c1da6477 100644 | 41 | index 3072143105..9c1da64771 100644 |
1283 | 42 | --- a/util/grub-mkconfig.in | 42 | --- a/util/grub-mkconfig.in |
1284 | 43 | +++ b/util/grub-mkconfig.in | 43 | +++ b/util/grub-mkconfig.in |
1285 | 44 | @@ -196,6 +196,10 @@ GRUB_ACTUAL_DEFAULT="$GRUB_DEFAULT" | 44 | @@ -196,6 +196,10 @@ GRUB_ACTUAL_DEFAULT="$GRUB_DEFAULT" |
1286 | @@ -63,7 +63,7 @@ index 307214310..9c1da6477 100644 | |||
1287 | 63 | if test "x${grub_cfg}" != "x"; then | 63 | if test "x${grub_cfg}" != "x"; then |
1288 | 64 | rm -f "${grub_cfg}.new" | 64 | rm -f "${grub_cfg}.new" |
1289 | 65 | diff --git a/util/grub.d/10_hurd.in b/util/grub.d/10_hurd.in | 65 | diff --git a/util/grub.d/10_hurd.in b/util/grub.d/10_hurd.in |
1291 | 66 | index 59a9a48a2..7fa3a3fbd 100644 | 66 | index 59a9a48a2f..7fa3a3fbd8 100644 |
1292 | 67 | --- a/util/grub.d/10_hurd.in | 67 | --- a/util/grub.d/10_hurd.in |
1293 | 68 | +++ b/util/grub.d/10_hurd.in | 68 | +++ b/util/grub.d/10_hurd.in |
1294 | 69 | @@ -88,8 +88,8 @@ hurd_entry () { | 69 | @@ -88,8 +88,8 @@ hurd_entry () { |
1295 | @@ -78,7 +78,7 @@ index 59a9a48a2..7fa3a3fbd 100644 | |||
1296 | 78 | title="$(gettext_printf "%s, with Hurd %s" "${OS}" "${kernel_base}")" | 78 | title="$(gettext_printf "%s, with Hurd %s" "${OS}" "${kernel_base}")" |
1297 | 79 | oldtitle="$OS using $kernel_base" | 79 | oldtitle="$OS using $kernel_base" |
1298 | 80 | diff --git a/util/grub.d/10_kfreebsd.in b/util/grub.d/10_kfreebsd.in | 80 | diff --git a/util/grub.d/10_kfreebsd.in b/util/grub.d/10_kfreebsd.in |
1300 | 81 | index 9d8e8fd85..8301d361a 100644 | 81 | index 9d8e8fd852..8301d361a1 100644 |
1301 | 82 | --- a/util/grub.d/10_kfreebsd.in | 82 | --- a/util/grub.d/10_kfreebsd.in |
1302 | 83 | +++ b/util/grub.d/10_kfreebsd.in | 83 | +++ b/util/grub.d/10_kfreebsd.in |
1303 | 84 | @@ -76,7 +76,7 @@ kfreebsd_entry () | 84 | @@ -76,7 +76,7 @@ kfreebsd_entry () |
1304 | @@ -91,7 +91,7 @@ index 9d8e8fd85..8301d361a 100644 | |||
1305 | 91 | title="$(gettext_printf "%s, with kFreeBSD %s" "${os}" "${version}")" | 91 | title="$(gettext_printf "%s, with kFreeBSD %s" "${os}" "${version}")" |
1306 | 92 | fi | 92 | fi |
1307 | 93 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in | 93 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in |
1309 | 94 | index cc2dd855a..2c418c5ec 100644 | 94 | index cc2dd855ab..2c418c5ec8 100644 |
1310 | 95 | --- a/util/grub.d/10_linux.in | 95 | --- a/util/grub.d/10_linux.in |
1311 | 96 | +++ b/util/grub.d/10_linux.in | 96 | +++ b/util/grub.d/10_linux.in |
1312 | 97 | @@ -130,7 +130,7 @@ linux_entry () | 97 | @@ -130,7 +130,7 @@ linux_entry () |
1313 | @@ -104,10 +104,10 @@ index cc2dd855a..2c418c5ec 100644 | |||
1314 | 104 | title="$(gettext_printf "%s, with Linux %s" "${os}" "${version}")" ;; | 104 | title="$(gettext_printf "%s, with Linux %s" "${os}" "${version}")" ;; |
1315 | 105 | esac | 105 | esac |
1316 | 106 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in | 106 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
1318 | 107 | index b636dc7bb..b068f0e96 100755 | 107 | index 48a4e68976..4477fa6061 100755 |
1319 | 108 | --- a/util/grub.d/10_linux_zfs.in | 108 | --- a/util/grub.d/10_linux_zfs.in |
1320 | 109 | +++ b/util/grub.d/10_linux_zfs.in | 109 | +++ b/util/grub.d/10_linux_zfs.in |
1322 | 110 | @@ -954,7 +954,7 @@ generate_grub_menu() { | 110 | @@ -957,7 +957,7 @@ generate_grub_menu() { |
1323 | 111 | 111 | ||
1324 | 112 | GRUB_DISABLE_RECOVERY=${GRUB_DISABLE_RECOVERY:-} | 112 | GRUB_DISABLE_RECOVERY=${GRUB_DISABLE_RECOVERY:-} |
1325 | 113 | if [ "${GRUB_DISABLE_RECOVERY}" != "true" ]; then | 113 | if [ "${GRUB_DISABLE_RECOVERY}" != "true" ]; then |
1326 | @@ -116,7 +116,7 @@ index b636dc7bb..b068f0e96 100755 | |||
1327 | 116 | zfs_linux_entry 1 "${title}" "recovery" "${dataset}" "${device}" "${initrd}" "${kernel}" | 116 | zfs_linux_entry 1 "${title}" "recovery" "${dataset}" "${device}" "${initrd}" "${kernel}" |
1328 | 117 | fi | 117 | fi |
1329 | 118 | at_least_one_entry=1 | 118 | at_least_one_entry=1 |
1331 | 119 | @@ -982,9 +982,9 @@ generate_grub_menu() { | 119 | @@ -985,9 +985,9 @@ generate_grub_menu() { |
1332 | 120 | 120 | ||
1333 | 121 | GRUB_DISABLE_RECOVERY="${GRUB_DISABLE_RECOVERY:-}" | 121 | GRUB_DISABLE_RECOVERY="${GRUB_DISABLE_RECOVERY:-}" |
1334 | 122 | if [ "${GRUB_DISABLE_RECOVERY}" != "true" ]; then | 122 | if [ "${GRUB_DISABLE_RECOVERY}" != "true" ]; then |
1335 | @@ -128,7 +128,7 @@ index b636dc7bb..b068f0e96 100755 | |||
1336 | 128 | zfs_linux_entry 2 "${title}" "recovery" "${dataset}" "${device}" "${initrd}" "${kernel}" "zsys-revert=userdata" | 128 | zfs_linux_entry 2 "${title}" "recovery" "${dataset}" "${device}" "${initrd}" "${kernel}" "zsys-revert=userdata" |
1337 | 129 | fi | 129 | fi |
1338 | 130 | # Non-zsys: boot temporarly on snapshots or rollback (destroying intermediate snapshots) | 130 | # Non-zsys: boot temporarly on snapshots or rollback (destroying intermediate snapshots) |
1340 | 131 | @@ -994,7 +994,7 @@ generate_grub_menu() { | 131 | @@ -997,7 +997,7 @@ generate_grub_menu() { |
1341 | 132 | 132 | ||
1342 | 133 | GRUB_DISABLE_RECOVERY="${GRUB_DISABLE_RECOVERY:-}" | 133 | GRUB_DISABLE_RECOVERY="${GRUB_DISABLE_RECOVERY:-}" |
1343 | 134 | if [ "${GRUB_DISABLE_RECOVERY}" != "true" ]; then | 134 | if [ "${GRUB_DISABLE_RECOVERY}" != "true" ]; then |
1344 | @@ -138,7 +138,7 @@ index b636dc7bb..b068f0e96 100755 | |||
1345 | 138 | fi | 138 | fi |
1346 | 139 | 139 | ||
1347 | 140 | diff --git a/util/grub.d/10_netbsd.in b/util/grub.d/10_netbsd.in | 140 | diff --git a/util/grub.d/10_netbsd.in b/util/grub.d/10_netbsd.in |
1349 | 141 | index 874f59969..bb29cc046 100644 | 141 | index 874f59969e..bb29cc0468 100644 |
1350 | 142 | --- a/util/grub.d/10_netbsd.in | 142 | --- a/util/grub.d/10_netbsd.in |
1351 | 143 | +++ b/util/grub.d/10_netbsd.in | 143 | +++ b/util/grub.d/10_netbsd.in |
1352 | 144 | @@ -102,7 +102,7 @@ netbsd_entry () | 144 | @@ -102,7 +102,7 @@ netbsd_entry () |
1353 | @@ -151,7 +151,7 @@ index 874f59969..bb29cc046 100644 | |||
1354 | 151 | title="$(gettext_printf "%s, with kernel %s (via %s)" "${OS}" "$(echo ${kernel} | sed -e 's,^.*/,,')" "${loader}")" | 151 | title="$(gettext_printf "%s, with kernel %s (via %s)" "${OS}" "$(echo ${kernel} | sed -e 's,^.*/,,')" "${loader}")" |
1355 | 152 | fi | 152 | fi |
1356 | 153 | diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in | 153 | diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in |
1358 | 154 | index 9a8d42fb5..f2ee0532b 100644 | 154 | index 9a8d42fb57..f2ee0532bd 100644 |
1359 | 155 | --- a/util/grub.d/20_linux_xen.in | 155 | --- a/util/grub.d/20_linux_xen.in |
1360 | 156 | +++ b/util/grub.d/20_linux_xen.in | 156 | +++ b/util/grub.d/20_linux_xen.in |
1361 | 157 | @@ -105,7 +105,7 @@ linux_entry () | 157 | @@ -105,7 +105,7 @@ linux_entry () |
1362 | diff --git a/debian/patches/mkconfig-signed-kernel.patch b/debian/patches/mkconfig-signed-kernel.patch | |||
1363 | index ea7cdb0..625cc4d 100644 | |||
1364 | --- a/debian/patches/mkconfig-signed-kernel.patch | |||
1365 | +++ b/debian/patches/mkconfig-signed-kernel.patch | |||
1366 | @@ -1,4 +1,4 @@ | |||
1368 | 1 | From 956c3d193e7c756f52fc0cfda463eb17ed58b4ce Mon Sep 17 00:00:00 2001 | 1 | From 72835133813a3e59c58d6908a82cbc3f36adf34a Mon Sep 17 00:00:00 2001 |
1369 | 2 | From: Didier Roche <didrocks@ubuntu.com> | 2 | From: Didier Roche <didrocks@ubuntu.com> |
1370 | 3 | Date: Tue, 31 Mar 2020 15:17:45 +0200 | 3 | Date: Tue, 31 Mar 2020 15:17:45 +0200 |
1371 | 4 | Subject: Generate configuration for signed UEFI kernels if available | 4 | Subject: Generate configuration for signed UEFI kernels if available |
1372 | @@ -13,7 +13,7 @@ Patch-Name: mkconfig-signed-kernel.patch | |||
1373 | 13 | 2 files changed, 36 insertions(+) | 13 | 2 files changed, 36 insertions(+) |
1374 | 14 | 14 | ||
1375 | 15 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in | 15 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in |
1377 | 16 | index 19e4df4ad..cb1cc200e 100644 | 16 | index 19e4df4ad8..cb1cc200e4 100644 |
1378 | 17 | --- a/util/grub.d/10_linux.in | 17 | --- a/util/grub.d/10_linux.in |
1379 | 18 | +++ b/util/grub.d/10_linux.in | 18 | +++ b/util/grub.d/10_linux.in |
1380 | 19 | @@ -165,8 +165,16 @@ linux_entry () | 19 | @@ -165,8 +165,16 @@ linux_entry () |
1381 | @@ -48,7 +48,7 @@ index 19e4df4ad..cb1cc200e 100644 | |||
1382 | 48 | basename=`basename $linux` | 48 | basename=`basename $linux` |
1383 | 49 | dirname=`dirname $linux` | 49 | dirname=`dirname $linux` |
1384 | 50 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in | 50 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
1386 | 51 | index bd5b963b6..c1dfe8ae8 100755 | 51 | index 7f88e771e0..bd4f1a2123 100755 |
1387 | 52 | --- a/util/grub.d/10_linux_zfs.in | 52 | --- a/util/grub.d/10_linux_zfs.in |
1388 | 53 | +++ b/util/grub.d/10_linux_zfs.in | 53 | +++ b/util/grub.d/10_linux_zfs.in |
1389 | 54 | @@ -339,6 +339,16 @@ try_default_layout_bpool() { | 54 | @@ -339,6 +339,16 @@ try_default_layout_bpool() { |
1390 | @@ -68,7 +68,7 @@ index bd5b963b6..c1dfe8ae8 100755 | |||
1391 | 68 | # Given a filesystem or snapshot dataset, returns dataset|machine id|pretty name|last used | 68 | # Given a filesystem or snapshot dataset, returns dataset|machine id|pretty name|last used |
1392 | 69 | # $1 is dataset we want information from | 69 | # $1 is dataset we want information from |
1393 | 70 | # $2 is the temporary mount directory to use | 70 | # $2 is the temporary mount directory to use |
1395 | 71 | @@ -409,6 +419,17 @@ get_dataset_info() { | 71 | @@ -412,6 +422,17 @@ get_dataset_info() { |
1396 | 72 | continue | 72 | continue |
1397 | 73 | fi | 73 | fi |
1398 | 74 | 74 | ||
1399 | diff --git a/debian/patches/mkconfig-ubuntu-distributor.patch b/debian/patches/mkconfig-ubuntu-distributor.patch | |||
1400 | index 6ae0bef..679db1f 100644 | |||
1401 | --- a/debian/patches/mkconfig-ubuntu-distributor.patch | |||
1402 | +++ b/debian/patches/mkconfig-ubuntu-distributor.patch | |||
1403 | @@ -1,4 +1,4 @@ | |||
1405 | 1 | From 5cddc9390afad242b31604806e8fb46ca92bf891 Mon Sep 17 00:00:00 2001 | 1 | From 01c7c86b01698ebf65fe99c34d2d79a39b76b4c1 Mon Sep 17 00:00:00 2001 |
1406 | 2 | From: Mario Limonciello <Mario_Limonciello@dell.com> | 2 | From: Mario Limonciello <Mario_Limonciello@dell.com> |
1407 | 3 | Date: Mon, 13 Jan 2014 12:13:14 +0000 | 3 | Date: Mon, 13 Jan 2014 12:13:14 +0000 |
1408 | 4 | Subject: Remove GNU/Linux from default distributor string for Ubuntu | 4 | Subject: Remove GNU/Linux from default distributor string for Ubuntu |
1409 | @@ -17,7 +17,7 @@ Patch-Name: mkconfig-ubuntu-distributor.patch | |||
1410 | 17 | 2 files changed, 16 insertions(+), 2 deletions(-) | 17 | 2 files changed, 16 insertions(+), 2 deletions(-) |
1411 | 18 | 18 | ||
1412 | 19 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in | 19 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in |
1414 | 20 | index fcd303387..19e4df4ad 100644 | 20 | index fcd3033872..19e4df4ad8 100644 |
1415 | 21 | --- a/util/grub.d/10_linux.in | 21 | --- a/util/grub.d/10_linux.in |
1416 | 22 | +++ b/util/grub.d/10_linux.in | 22 | +++ b/util/grub.d/10_linux.in |
1417 | 23 | @@ -32,7 +32,14 @@ CLASS="--class gnu-linux --class gnu --class os" | 23 | @@ -32,7 +32,14 @@ CLASS="--class gnu-linux --class gnu --class os" |
1418 | @@ -37,10 +37,10 @@ index fcd303387..19e4df4ad 100644 | |||
1419 | 37 | fi | 37 | fi |
1420 | 38 | 38 | ||
1421 | 39 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in | 39 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
1423 | 40 | index 5db1f6682..bd5b963b6 100755 | 40 | index de4d215900..7f88e771e0 100755 |
1424 | 41 | --- a/util/grub.d/10_linux_zfs.in | 41 | --- a/util/grub.d/10_linux_zfs.in |
1425 | 42 | +++ b/util/grub.d/10_linux_zfs.in | 42 | +++ b/util/grub.d/10_linux_zfs.in |
1427 | 43 | @@ -787,7 +787,14 @@ generate_grub_menu() { | 43 | @@ -790,7 +790,14 @@ generate_grub_menu() { |
1428 | 44 | if [ "${GRUB_DISTRIBUTOR}" = "" ] ; then | 44 | if [ "${GRUB_DISTRIBUTOR}" = "" ] ; then |
1429 | 45 | OS=GNU/Linux | 45 | OS=GNU/Linux |
1430 | 46 | else | 46 | else |
1431 | diff --git a/debian/patches/mkconfig-ubuntu-recovery.patch b/debian/patches/mkconfig-ubuntu-recovery.patch | |||
1432 | index f81ab40..3f64f55 100644 | |||
1433 | --- a/debian/patches/mkconfig-ubuntu-recovery.patch | |||
1434 | +++ b/debian/patches/mkconfig-ubuntu-recovery.patch | |||
1435 | @@ -1,4 +1,4 @@ | |||
1437 | 1 | From fb4d204572ca4dec63b3d3f25a3b69da97815726 Mon Sep 17 00:00:00 2001 | 1 | From 3699711858d0aead05bc9a8e057022a90644cda6 Mon Sep 17 00:00:00 2001 |
1438 | 2 | From: Didier Roche <didrocks@ubuntu.com> | 2 | From: Didier Roche <didrocks@ubuntu.com> |
1439 | 3 | Date: Tue, 31 Mar 2020 15:16:36 +0200 | 3 | Date: Tue, 31 Mar 2020 15:16:36 +0200 |
1440 | 4 | Subject: "single" -> "recovery" when friendly-recovery is installed | 4 | Subject: "single" -> "recovery" when friendly-recovery is installed |
1441 | @@ -24,7 +24,7 @@ Patch-Name: mkconfig-ubuntu-recovery.patch | |||
1442 | 24 | 4 files changed, 39 insertions(+), 5 deletions(-) | 24 | 4 files changed, 39 insertions(+), 5 deletions(-) |
1443 | 25 | 25 | ||
1444 | 26 | diff --git a/configure.ac b/configure.ac | 26 | diff --git a/configure.ac b/configure.ac |
1446 | 27 | index 7656f2434..1e5abc67d 100644 | 27 | index 7656f2434e..1e5abc67d9 100644 |
1447 | 28 | --- a/configure.ac | 28 | --- a/configure.ac |
1448 | 29 | +++ b/configure.ac | 29 | +++ b/configure.ac |
1449 | 30 | @@ -1846,6 +1846,17 @@ fi | 30 | @@ -1846,6 +1846,17 @@ fi |
1450 | @@ -46,7 +46,7 @@ index 7656f2434..1e5abc67d 100644 | |||
1451 | 46 | 46 | ||
1452 | 47 | AC_SUBST([FONT_SOURCE]) | 47 | AC_SUBST([FONT_SOURCE]) |
1453 | 48 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in | 48 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in |
1455 | 49 | index d927b60ae..fcd303387 100644 | 49 | index d927b60ae2..fcd3033872 100644 |
1456 | 50 | --- a/util/grub.d/10_linux.in | 50 | --- a/util/grub.d/10_linux.in |
1457 | 51 | +++ b/util/grub.d/10_linux.in | 51 | +++ b/util/grub.d/10_linux.in |
1458 | 52 | @@ -20,6 +20,7 @@ set -e | 52 | @@ -20,6 +20,7 @@ set -e |
1459 | @@ -94,7 +94,7 @@ index d927b60ae..fcd303387 100644 | |||
1460 | 94 | 94 | ||
1461 | 95 | list=`echo $list | tr ' ' '\n' | fgrep -vx "$linux" | tr '\n' ' '` | 95 | list=`echo $list | tr ' ' '\n' | fgrep -vx "$linux" | tr '\n' ' '` |
1462 | 96 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in | 96 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
1464 | 97 | index d27634738..5db1f6682 100755 | 97 | index b24587f0a5..de4d215900 100755 |
1465 | 98 | --- a/util/grub.d/10_linux_zfs.in | 98 | --- a/util/grub.d/10_linux_zfs.in |
1466 | 99 | +++ b/util/grub.d/10_linux_zfs.in | 99 | +++ b/util/grub.d/10_linux_zfs.in |
1467 | 100 | @@ -19,6 +19,7 @@ set -e | 100 | @@ -19,6 +19,7 @@ set -e |
1468 | @@ -105,7 +105,7 @@ index d27634738..5db1f6682 100755 | |||
1469 | 105 | 105 | ||
1470 | 106 | . "${pkgdatadir}/grub-mkconfig_lib" | 106 | . "${pkgdatadir}/grub-mkconfig_lib" |
1471 | 107 | 107 | ||
1473 | 108 | @@ -745,7 +746,9 @@ zfs_linux_entry () { | 108 | @@ -748,7 +749,9 @@ zfs_linux_entry () { |
1474 | 109 | if [ "${GRUB_GFXPAYLOAD_LINUX}" != "text" ]; then | 109 | if [ "${GRUB_GFXPAYLOAD_LINUX}" != "text" ]; then |
1475 | 110 | echo "${submenu_indentation} load_video" | 110 | echo "${submenu_indentation} load_video" |
1476 | 111 | fi | 111 | fi |
1477 | @@ -116,7 +116,7 @@ index d27634738..5db1f6682 100755 | |||
1478 | 116 | fi | 116 | fi |
1479 | 117 | 117 | ||
1480 | 118 | echo "${submenu_indentation} insmod gzio" | 118 | echo "${submenu_indentation} insmod gzio" |
1482 | 119 | @@ -756,7 +759,7 @@ zfs_linux_entry () { | 119 | @@ -759,7 +762,7 @@ zfs_linux_entry () { |
1483 | 120 | 120 | ||
1484 | 121 | linux_default_args="${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" | 121 | linux_default_args="${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" |
1485 | 122 | if [ ${type} = "recovery" ]; then | 122 | if [ ${type} = "recovery" ]; then |
1486 | @@ -125,7 +125,7 @@ index d27634738..5db1f6682 100755 | |||
1487 | 125 | fi | 125 | fi |
1488 | 126 | 126 | ||
1489 | 127 | echo "${submenu_indentation} linux ${kernel} root=ZFS=${dataset} ro ${linux_default_args} ${kernel_additional_args}" | 127 | echo "${submenu_indentation} linux ${kernel} root=ZFS=${dataset} ro ${linux_default_args} ${kernel_additional_args}" |
1491 | 128 | @@ -788,6 +791,14 @@ generate_grub_menu() { | 128 | @@ -791,6 +794,14 @@ generate_grub_menu() { |
1492 | 129 | CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1 | LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}" | 129 | CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1 | LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}" |
1493 | 130 | fi | 130 | fi |
1494 | 131 | 131 | ||
1495 | @@ -141,7 +141,7 @@ index d27634738..5db1f6682 100755 | |||
1496 | 141 | # IFS is set to TAB (ASCII 0x09) | 141 | # IFS is set to TAB (ASCII 0x09) |
1497 | 142 | echo "${menu_metadata}" | | 142 | echo "${menu_metadata}" | |
1498 | 143 | diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in | 143 | diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in |
1500 | 144 | index 515a68c7a..775ceb2e0 100644 | 144 | index 515a68c7aa..775ceb2e04 100644 |
1501 | 145 | --- a/util/grub.d/30_os-prober.in | 145 | --- a/util/grub.d/30_os-prober.in |
1502 | 146 | +++ b/util/grub.d/30_os-prober.in | 146 | +++ b/util/grub.d/30_os-prober.in |
1503 | 147 | @@ -220,7 +220,7 @@ EOF | 147 | @@ -220,7 +220,7 @@ EOF |
1504 | diff --git a/debian/patches/mkrescue-efi-modules.patch b/debian/patches/mkrescue-efi-modules.patch | |||
1505 | index d0e0688..6221e79 100644 | |||
1506 | --- a/debian/patches/mkrescue-efi-modules.patch | |||
1507 | +++ b/debian/patches/mkrescue-efi-modules.patch | |||
1508 | @@ -1,4 +1,4 @@ | |||
1510 | 1 | From 40df0707380bf528d9f849b065c3a5e4e96113ac Mon Sep 17 00:00:00 2001 | 1 | From 73f95865a1ffacb1e10e431e114baa67d36a27e1 Mon Sep 17 00:00:00 2001 |
1511 | 2 | From: Mario Limonciello <Mario_Limonciello@dell.com> | 2 | From: Mario Limonciello <Mario_Limonciello@dell.com> |
1512 | 3 | Date: Mon, 13 Jan 2014 12:12:59 +0000 | 3 | Date: Mon, 13 Jan 2014 12:12:59 +0000 |
1513 | 4 | Subject: Build vfat into EFI boot images | 4 | Subject: Build vfat into EFI boot images |
1514 | @@ -14,7 +14,7 @@ Patch-Name: mkrescue-efi-modules.patch | |||
1515 | 14 | 1 file changed, 2 insertions(+) | 14 | 1 file changed, 2 insertions(+) |
1516 | 15 | 15 | ||
1517 | 16 | diff --git a/util/grub-mkrescue.c b/util/grub-mkrescue.c | 16 | diff --git a/util/grub-mkrescue.c b/util/grub-mkrescue.c |
1519 | 17 | index ce2cbc4f1..45d6140d3 100644 | 17 | index ce2cbc4f10..45d6140d3e 100644 |
1520 | 18 | --- a/util/grub-mkrescue.c | 18 | --- a/util/grub-mkrescue.c |
1521 | 19 | +++ b/util/grub-mkrescue.c | 19 | +++ b/util/grub-mkrescue.c |
1522 | 20 | @@ -750,6 +750,7 @@ main (int argc, char *argv[]) | 20 | @@ -750,6 +750,7 @@ main (int argc, char *argv[]) |
1523 | diff --git a/debian/patches/net-read-bracketed-ipv6-addr.patch b/debian/patches/net-read-bracketed-ipv6-addr.patch | |||
1524 | index 9afab37..bf711fc 100644 | |||
1525 | --- a/debian/patches/net-read-bracketed-ipv6-addr.patch | |||
1526 | +++ b/debian/patches/net-read-bracketed-ipv6-addr.patch | |||
1527 | @@ -1,4 +1,4 @@ | |||
1529 | 1 | From 5b535ee06d2b6e98a6b9c7d1a79ff611e10e1b0a Mon Sep 17 00:00:00 2001 | 1 | From b16ad7afe148eb58e1443bc6c20cd017cee3d7aa Mon Sep 17 00:00:00 2001 |
1530 | 2 | From: Aaron Miller <aaronmiller@fb.com> | 2 | From: Aaron Miller <aaronmiller@fb.com> |
1531 | 3 | Date: Thu, 27 Oct 2016 17:39:49 -0400 | 3 | Date: Thu, 27 Oct 2016 17:39:49 -0400 |
1532 | 4 | Subject: net: read bracketed ipv6 addrs and port numbers | 4 | Subject: net: read bracketed ipv6 addrs and port numbers |
1533 | @@ -16,7 +16,7 @@ Patch-Name: net-read-bracketed-ipv6-addr.patch | |||
1534 | 16 | 4 files changed, 110 insertions(+), 11 deletions(-) | 16 | 4 files changed, 110 insertions(+), 11 deletions(-) |
1535 | 17 | 17 | ||
1536 | 18 | diff --git a/grub-core/net/http.c b/grub-core/net/http.c | 18 | diff --git a/grub-core/net/http.c b/grub-core/net/http.c |
1538 | 19 | index 5aa4ad3be..f182d7b87 100644 | 19 | index 5aa4ad3bef..f182d7b871 100644 |
1539 | 20 | --- a/grub-core/net/http.c | 20 | --- a/grub-core/net/http.c |
1540 | 21 | +++ b/grub-core/net/http.c | 21 | +++ b/grub-core/net/http.c |
1541 | 22 | @@ -312,12 +312,14 @@ http_establish (struct grub_file *file, grub_off_t offset, int initial) | 22 | @@ -312,12 +312,14 @@ http_establish (struct grub_file *file, grub_off_t offset, int initial) |
1542 | @@ -74,7 +74,7 @@ index 5aa4ad3be..f182d7b87 100644 | |||
1543 | 74 | file); | 74 | file); |
1544 | 75 | if (!data->sock) | 75 | if (!data->sock) |
1545 | 76 | diff --git a/grub-core/net/net.c b/grub-core/net/net.c | 76 | diff --git a/grub-core/net/net.c b/grub-core/net/net.c |
1547 | 77 | index d5d726a31..b917a75d5 100644 | 77 | index d5d726a315..b917a75d54 100644 |
1548 | 78 | --- a/grub-core/net/net.c | 78 | --- a/grub-core/net/net.c |
1549 | 79 | +++ b/grub-core/net/net.c | 79 | +++ b/grub-core/net/net.c |
1550 | 80 | @@ -437,6 +437,12 @@ parse_ip6 (const char *val, grub_uint64_t *ip, const char **rest) | 80 | @@ -437,6 +437,12 @@ parse_ip6 (const char *val, grub_uint64_t *ip, const char **rest) |
1551 | @@ -211,7 +211,7 @@ index d5d726a31..b917a75d5 100644 | |||
1552 | 211 | } | 211 | } |
1553 | 212 | } | 212 | } |
1554 | 213 | diff --git a/grub-core/net/tftp.c b/grub-core/net/tftp.c | 213 | diff --git a/grub-core/net/tftp.c b/grub-core/net/tftp.c |
1556 | 214 | index 7d90bf66e..a0817a075 100644 | 214 | index 7d90bf66e7..a0817a075d 100644 |
1557 | 215 | --- a/grub-core/net/tftp.c | 215 | --- a/grub-core/net/tftp.c |
1558 | 216 | +++ b/grub-core/net/tftp.c | 216 | +++ b/grub-core/net/tftp.c |
1559 | 217 | @@ -314,6 +314,7 @@ tftp_open (struct grub_file *file, const char *filename) | 217 | @@ -314,6 +314,7 @@ tftp_open (struct grub_file *file, const char *filename) |
1560 | @@ -241,7 +241,7 @@ index 7d90bf66e..a0817a075 100644 | |||
1561 | 241 | if (!data->sock) | 241 | if (!data->sock) |
1562 | 242 | { | 242 | { |
1563 | 243 | diff --git a/include/grub/net.h b/include/grub/net.h | 243 | diff --git a/include/grub/net.h b/include/grub/net.h |
1565 | 244 | index 4a9069a14..cc114286e 100644 | 244 | index 4a9069a147..cc114286ea 100644 |
1566 | 245 | --- a/include/grub/net.h | 245 | --- a/include/grub/net.h |
1567 | 246 | +++ b/include/grub/net.h | 246 | +++ b/include/grub/net.h |
1568 | 247 | @@ -270,6 +270,7 @@ typedef struct grub_net | 247 | @@ -270,6 +270,7 @@ typedef struct grub_net |
1569 | diff --git a/debian/patches/no-devicetree-if-secure-boot.patch b/debian/patches/no-devicetree-if-secure-boot.patch | |||
1570 | index 2c20d15..c6b9a75 100644 | |||
1571 | --- a/debian/patches/no-devicetree-if-secure-boot.patch | |||
1572 | +++ b/debian/patches/no-devicetree-if-secure-boot.patch | |||
1573 | @@ -1,4 +1,4 @@ | |||
1575 | 1 | From e7c4e6c655bc9eebdd22fb6f3d9b2aafabffa1b4 Mon Sep 17 00:00:00 2001 | 1 | From 107663390a84f31f304094df29dd31a5584fa0b9 Mon Sep 17 00:00:00 2001 |
1576 | 2 | From: Peter Jones <pjones@redhat.com> | 2 | From: Peter Jones <pjones@redhat.com> |
1577 | 3 | Date: Wed, 24 Apr 2019 10:03:04 -0400 | 3 | Date: Wed, 24 Apr 2019 10:03:04 -0400 |
1578 | 4 | Subject: Forbid the "devicetree" command when Secure Boot is enabled. | 4 | Subject: Forbid the "devicetree" command when Secure Boot is enabled. |
1579 | @@ -17,7 +17,7 @@ Patch-Name: no-devicetree-if-secure-boot.patch | |||
1580 | 17 | 2 files changed, 20 insertions(+) | 17 | 2 files changed, 20 insertions(+) |
1581 | 18 | 18 | ||
1582 | 19 | diff --git a/grub-core/loader/arm/linux.c b/grub-core/loader/arm/linux.c | 19 | diff --git a/grub-core/loader/arm/linux.c b/grub-core/loader/arm/linux.c |
1584 | 20 | index 51684914c..092e8e307 100644 | 20 | index 51684914cf..092e8e3077 100644 |
1585 | 21 | --- a/grub-core/loader/arm/linux.c | 21 | --- a/grub-core/loader/arm/linux.c |
1586 | 22 | +++ b/grub-core/loader/arm/linux.c | 22 | +++ b/grub-core/loader/arm/linux.c |
1587 | 23 | @@ -30,6 +30,10 @@ | 23 | @@ -30,6 +30,10 @@ |
1588 | @@ -47,7 +47,7 @@ index 51684914c..092e8e307 100644 | |||
1589 | 47 | if (!dtb) | 47 | if (!dtb) |
1590 | 48 | return grub_errno; | 48 | return grub_errno; |
1591 | 49 | diff --git a/grub-core/loader/efi/fdt.c b/grub-core/loader/efi/fdt.c | 49 | diff --git a/grub-core/loader/efi/fdt.c b/grub-core/loader/efi/fdt.c |
1593 | 50 | index ee9c5592c..f0c2d91be 100644 | 50 | index ee9c5592c7..f0c2d91be2 100644 |
1594 | 51 | --- a/grub-core/loader/efi/fdt.c | 51 | --- a/grub-core/loader/efi/fdt.c |
1595 | 52 | +++ b/grub-core/loader/efi/fdt.c | 52 | +++ b/grub-core/loader/efi/fdt.c |
1596 | 53 | @@ -123,6 +123,14 @@ grub_cmd_devicetree (grub_command_t cmd __attribute__ ((unused)), | 53 | @@ -123,6 +123,14 @@ grub_cmd_devicetree (grub_command_t cmd __attribute__ ((unused)), |
1597 | diff --git a/debian/patches/no-insmod-on-sb.patch b/debian/patches/no-insmod-on-sb.patch | |||
1598 | index 95a34cd..475d5b6 100644 | |||
1599 | --- a/debian/patches/no-insmod-on-sb.patch | |||
1600 | +++ b/debian/patches/no-insmod-on-sb.patch | |||
1601 | @@ -1,4 +1,4 @@ | |||
1603 | 1 | From 98ac694bdd7938cdfcd5615cc78e3211a0bcba93 Mon Sep 17 00:00:00 2001 | 1 | From f80581266f3dc0cfa3be1e8cf2097f6cb880cfa4 Mon Sep 17 00:00:00 2001 |
1604 | 2 | From: Matthew Garrett <mjg@redhat.com> | 2 | From: Matthew Garrett <mjg@redhat.com> |
1605 | 3 | Date: Mon, 13 Jan 2014 12:13:09 +0000 | 3 | Date: Mon, 13 Jan 2014 12:13:09 +0000 |
1606 | 4 | Subject: Don't permit loading modules on UEFI secure boot | 4 | Subject: Don't permit loading modules on UEFI secure boot |
1607 | @@ -16,7 +16,7 @@ Patch-Name: no-insmod-on-sb.patch | |||
1608 | 16 | 3 files changed, 42 insertions(+) | 16 | 3 files changed, 42 insertions(+) |
1609 | 17 | 17 | ||
1610 | 18 | diff --git a/grub-core/kern/dl.c b/grub-core/kern/dl.c | 18 | diff --git a/grub-core/kern/dl.c b/grub-core/kern/dl.c |
1612 | 19 | index 48eb5e7b6..074dfc3c6 100644 | 19 | index 48eb5e7b62..074dfc3c6f 100644 |
1613 | 20 | --- a/grub-core/kern/dl.c | 20 | --- a/grub-core/kern/dl.c |
1614 | 21 | +++ b/grub-core/kern/dl.c | 21 | +++ b/grub-core/kern/dl.c |
1615 | 22 | @@ -38,6 +38,10 @@ | 22 | @@ -38,6 +38,10 @@ |
1616 | @@ -47,7 +47,7 @@ index 48eb5e7b6..074dfc3c6 100644 | |||
1617 | 47 | 47 | ||
1618 | 48 | file = grub_file_open (filename, GRUB_FILE_TYPE_GRUB_MODULE); | 48 | file = grub_file_open (filename, GRUB_FILE_TYPE_GRUB_MODULE); |
1619 | 49 | diff --git a/grub-core/kern/efi/efi.c b/grub-core/kern/efi/efi.c | 49 | diff --git a/grub-core/kern/efi/efi.c b/grub-core/kern/efi/efi.c |
1621 | 50 | index 6e1ceb905..96204e39b 100644 | 50 | index 6e1ceb9051..96204e39b9 100644 |
1622 | 51 | --- a/grub-core/kern/efi/efi.c | 51 | --- a/grub-core/kern/efi/efi.c |
1623 | 52 | +++ b/grub-core/kern/efi/efi.c | 52 | +++ b/grub-core/kern/efi/efi.c |
1624 | 53 | @@ -273,6 +273,34 @@ grub_efi_get_variable (const char *var, const grub_efi_guid_t *guid, | 53 | @@ -273,6 +273,34 @@ grub_efi_get_variable (const char *var, const grub_efi_guid_t *guid, |
1625 | @@ -86,7 +86,7 @@ index 6e1ceb905..96204e39b 100644 | |||
1626 | 86 | 86 | ||
1627 | 87 | /* Search the mods section from the PE32/PE32+ image. This code uses | 87 | /* Search the mods section from the PE32/PE32+ image. This code uses |
1628 | 88 | diff --git a/include/grub/efi/efi.h b/include/grub/efi/efi.h | 88 | diff --git a/include/grub/efi/efi.h b/include/grub/efi/efi.h |
1630 | 89 | index e90e00dc4..a237952b3 100644 | 89 | index e90e00dc43..a237952b37 100644 |
1631 | 90 | --- a/include/grub/efi/efi.h | 90 | --- a/include/grub/efi/efi.h |
1632 | 91 | +++ b/include/grub/efi/efi.h | 91 | +++ b/include/grub/efi/efi.h |
1633 | 92 | @@ -82,6 +82,7 @@ EXPORT_FUNC (grub_efi_set_variable) (const char *var, | 92 | @@ -82,6 +82,7 @@ EXPORT_FUNC (grub_efi_set_variable) (const char *var, |
1634 | diff --git a/debian/patches/olpc-prefix-hack.patch b/debian/patches/olpc-prefix-hack.patch | |||
1635 | index b14c333..d40729f 100644 | |||
1636 | --- a/debian/patches/olpc-prefix-hack.patch | |||
1637 | +++ b/debian/patches/olpc-prefix-hack.patch | |||
1638 | @@ -11,7 +11,7 @@ Patch-Name: olpc-prefix-hack.patch | |||
1639 | 11 | 1 file changed, 11 insertions(+) | 11 | 1 file changed, 11 insertions(+) |
1640 | 12 | 12 | ||
1641 | 13 | diff --git a/grub-core/kern/ieee1275/init.c b/grub-core/kern/ieee1275/init.c | 13 | diff --git a/grub-core/kern/ieee1275/init.c b/grub-core/kern/ieee1275/init.c |
1643 | 14 | index d483e35ee..8b089b48d 100644 | 14 | index d483e35eed..8b089b48d0 100644 |
1644 | 15 | --- a/grub-core/kern/ieee1275/init.c | 15 | --- a/grub-core/kern/ieee1275/init.c |
1645 | 16 | +++ b/grub-core/kern/ieee1275/init.c | 16 | +++ b/grub-core/kern/ieee1275/init.c |
1646 | 17 | @@ -76,6 +76,7 @@ grub_exit (void) | 17 | @@ -76,6 +76,7 @@ grub_exit (void) |
1647 | diff --git a/debian/patches/ppc64el-disable-vsx.patch b/debian/patches/ppc64el-disable-vsx.patch | |||
1648 | index ab96b1d..69e2aa0 100644 | |||
1649 | --- a/debian/patches/ppc64el-disable-vsx.patch | |||
1650 | +++ b/debian/patches/ppc64el-disable-vsx.patch | |||
1651 | @@ -1,4 +1,4 @@ | |||
1653 | 1 | From 0bdaf481feca277ee87f42052fad4a59ede0c8e4 Mon Sep 17 00:00:00 2001 | 1 | From 156930a8fe9525c51ec9608b8aff8c561dd6cc40 Mon Sep 17 00:00:00 2001 |
1654 | 2 | From: Paulo Flabiano Smorigo <pfsmorigo@linux.vnet.ibm.com> | 2 | From: Paulo Flabiano Smorigo <pfsmorigo@linux.vnet.ibm.com> |
1655 | 3 | Date: Thu, 25 Sep 2014 19:33:39 -0300 | 3 | Date: Thu, 25 Sep 2014 19:33:39 -0300 |
1656 | 4 | Subject: Disable VSX instruction | 4 | Subject: Disable VSX instruction |
1657 | @@ -21,7 +21,7 @@ Patch-Name: ppc64el-disable-vsx.patch | |||
1658 | 21 | 1 file changed, 12 insertions(+) | 21 | 1 file changed, 12 insertions(+) |
1659 | 22 | 22 | ||
1660 | 23 | diff --git a/grub-core/kern/powerpc/ieee1275/startup.S b/grub-core/kern/powerpc/ieee1275/startup.S | 23 | diff --git a/grub-core/kern/powerpc/ieee1275/startup.S b/grub-core/kern/powerpc/ieee1275/startup.S |
1662 | 24 | index 21c884b43..de9a9601a 100644 | 24 | index 21c884b433..de9a9601a9 100644 |
1663 | 25 | --- a/grub-core/kern/powerpc/ieee1275/startup.S | 25 | --- a/grub-core/kern/powerpc/ieee1275/startup.S |
1664 | 26 | +++ b/grub-core/kern/powerpc/ieee1275/startup.S | 26 | +++ b/grub-core/kern/powerpc/ieee1275/startup.S |
1665 | 27 | @@ -20,6 +20,8 @@ | 27 | @@ -20,6 +20,8 @@ |
1666 | diff --git a/debian/patches/probe-fusionio.patch b/debian/patches/probe-fusionio.patch | |||
1667 | index 7756341..1610f03 100644 | |||
1668 | --- a/debian/patches/probe-fusionio.patch | |||
1669 | +++ b/debian/patches/probe-fusionio.patch | |||
1670 | @@ -1,4 +1,4 @@ | |||
1672 | 1 | From 738369f06f930cedd51f22f9d519a09aa7e73176 Mon Sep 17 00:00:00 2001 | 1 | From 81099f3b80801da7d591ab4ae14a568345c79119 Mon Sep 17 00:00:00 2001 |
1673 | 2 | From: Colin Watson <cjwatson@ubuntu.com> | 2 | From: Colin Watson <cjwatson@ubuntu.com> |
1674 | 3 | Date: Mon, 13 Jan 2014 12:13:31 +0000 | 3 | Date: Mon, 13 Jan 2014 12:13:31 +0000 |
1675 | 4 | Subject: Probe FusionIO devices | 4 | Subject: Probe FusionIO devices |
1676 | @@ -14,7 +14,7 @@ Patch-Name: probe-fusionio.patch | |||
1677 | 14 | 2 files changed, 32 insertions(+) | 14 | 2 files changed, 32 insertions(+) |
1678 | 15 | 15 | ||
1679 | 16 | diff --git a/grub-core/osdep/linux/getroot.c b/grub-core/osdep/linux/getroot.c | 16 | diff --git a/grub-core/osdep/linux/getroot.c b/grub-core/osdep/linux/getroot.c |
1681 | 17 | index 90d92d3ad..7adc0f30e 100644 | 17 | index 90d92d3ad5..7adc0f30ee 100644 |
1682 | 18 | --- a/grub-core/osdep/linux/getroot.c | 18 | --- a/grub-core/osdep/linux/getroot.c |
1683 | 19 | +++ b/grub-core/osdep/linux/getroot.c | 19 | +++ b/grub-core/osdep/linux/getroot.c |
1684 | 20 | @@ -950,6 +950,19 @@ grub_util_part_to_disk (const char *os_dev, struct stat *st, | 20 | @@ -950,6 +950,19 @@ grub_util_part_to_disk (const char *os_dev, struct stat *st, |
1685 | @@ -38,7 +38,7 @@ index 90d92d3ad..7adc0f30e 100644 | |||
1686 | 38 | 38 | ||
1687 | 39 | return path; | 39 | return path; |
1688 | 40 | diff --git a/util/deviceiter.c b/util/deviceiter.c | 40 | diff --git a/util/deviceiter.c b/util/deviceiter.c |
1690 | 41 | index a4971ef42..dddc50da7 100644 | 41 | index a4971ef429..dddc50da7a 100644 |
1691 | 42 | --- a/util/deviceiter.c | 42 | --- a/util/deviceiter.c |
1692 | 43 | +++ b/util/deviceiter.c | 43 | +++ b/util/deviceiter.c |
1693 | 44 | @@ -383,6 +383,12 @@ get_nvme_disk_name (char *name, int controller, int namespace) | 44 | @@ -383,6 +383,12 @@ get_nvme_disk_name (char *name, int controller, int namespace) |
1694 | diff --git a/debian/patches/quick-boot-lvm.patch b/debian/patches/quick-boot-lvm.patch | |||
1695 | index 23a9989..e5dd415 100644 | |||
1696 | --- a/debian/patches/quick-boot-lvm.patch | |||
1697 | +++ b/debian/patches/quick-boot-lvm.patch | |||
1698 | @@ -1,4 +1,4 @@ | |||
1700 | 1 | From ff47caaf5a89c61bb85e7ed22570b24481b9ff15 Mon Sep 17 00:00:00 2001 | 1 | From ac0a158a4841bbc10112fa398d8ad65221792107 Mon Sep 17 00:00:00 2001 |
1701 | 2 | From: Steve Langasek <steve.langasek@ubuntu.com> | 2 | From: Steve Langasek <steve.langasek@ubuntu.com> |
1702 | 3 | Date: Tue, 30 Oct 2018 15:04:16 -0700 | 3 | Date: Tue, 30 Oct 2018 15:04:16 -0700 |
1703 | 4 | Subject: If we don't have writable grubenv and we're on EFI, always show the | 4 | Subject: If we don't have writable grubenv and we're on EFI, always show the |
1704 | @@ -26,7 +26,7 @@ Patch-Name: quick-boot-lvm.patch | |||
1705 | 26 | 1 file changed, 15 insertions(+), 3 deletions(-) | 26 | 1 file changed, 15 insertions(+), 3 deletions(-) |
1706 | 27 | 27 | ||
1707 | 28 | diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in | 28 | diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in |
1709 | 29 | index 674a76140..b7135b655 100644 | 29 | index 674a761402..b7135b655f 100644 |
1710 | 30 | --- a/util/grub.d/00_header.in | 30 | --- a/util/grub.d/00_header.in |
1711 | 31 | +++ b/util/grub.d/00_header.in | 31 | +++ b/util/grub.d/00_header.in |
1712 | 32 | @@ -115,7 +115,7 @@ EOF | 32 | @@ -115,7 +115,7 @@ EOF |
1713 | diff --git a/debian/patches/quick-boot.patch b/debian/patches/quick-boot.patch | |||
1714 | index 01fc3c9..b5ddaff 100644 | |||
1715 | --- a/debian/patches/quick-boot.patch | |||
1716 | +++ b/debian/patches/quick-boot.patch | |||
1717 | @@ -1,4 +1,4 @@ | |||
1719 | 1 | From a62555d9b0bc27ecf2c018018d61589ebdf15321 Mon Sep 17 00:00:00 2001 | 1 | From f8150f56df7110d17b71cdacc79b451593f17feb Mon Sep 17 00:00:00 2001 |
1720 | 2 | From: Colin Watson <cjwatson@ubuntu.com> | 2 | From: Colin Watson <cjwatson@ubuntu.com> |
1721 | 3 | Date: Mon, 13 Jan 2014 12:13:28 +0000 | 3 | Date: Mon, 13 Jan 2014 12:13:28 +0000 |
1722 | 4 | Subject: Add configure option to bypass boot menu if possible | 4 | Subject: Add configure option to bypass boot menu if possible |
1723 | @@ -34,7 +34,7 @@ Patch-Name: quick-boot.patch | |||
1724 | 34 | 8 files changed, 146 insertions(+), 13 deletions(-) | 34 | 8 files changed, 146 insertions(+), 13 deletions(-) |
1725 | 35 | 35 | ||
1726 | 36 | diff --git a/configure.ac b/configure.ac | 36 | diff --git a/configure.ac b/configure.ac |
1728 | 37 | index ea00ccd69..7dda5bb32 100644 | 37 | index ea00ccd691..7dda5bb32b 100644 |
1729 | 38 | --- a/configure.ac | 38 | --- a/configure.ac |
1730 | 39 | +++ b/configure.ac | 39 | +++ b/configure.ac |
1731 | 40 | @@ -1868,6 +1868,17 @@ else | 40 | @@ -1868,6 +1868,17 @@ else |
1732 | @@ -56,7 +56,7 @@ index ea00ccd69..7dda5bb32 100644 | |||
1733 | 56 | 56 | ||
1734 | 57 | AC_SUBST([FONT_SOURCE]) | 57 | AC_SUBST([FONT_SOURCE]) |
1735 | 58 | diff --git a/docs/grub.texi b/docs/grub.texi | 58 | diff --git a/docs/grub.texi b/docs/grub.texi |
1737 | 59 | index 87795075a..a835d0ae4 100644 | 59 | index 87795075a8..a835d0ae42 100644 |
1738 | 60 | --- a/docs/grub.texi | 60 | --- a/docs/grub.texi |
1739 | 61 | +++ b/docs/grub.texi | 61 | +++ b/docs/grub.texi |
1740 | 62 | @@ -1522,6 +1522,20 @@ This option may be set to a list of GRUB module names separated by spaces. | 62 | @@ -1522,6 +1522,20 @@ This option may be set to a list of GRUB module names separated by spaces. |
1741 | @@ -81,7 +81,7 @@ index 87795075a..a835d0ae4 100644 | |||
1742 | 81 | 81 | ||
1743 | 82 | The following options are still accepted for compatibility with existing | 82 | The following options are still accepted for compatibility with existing |
1744 | 83 | diff --git a/grub-core/normal/menu.c b/grub-core/normal/menu.c | 83 | diff --git a/grub-core/normal/menu.c b/grub-core/normal/menu.c |
1746 | 84 | index ebf5a0f10..42c82290d 100644 | 84 | index ebf5a0f109..42c82290de 100644 |
1747 | 85 | --- a/grub-core/normal/menu.c | 85 | --- a/grub-core/normal/menu.c |
1748 | 86 | +++ b/grub-core/normal/menu.c | 86 | +++ b/grub-core/normal/menu.c |
1749 | 87 | @@ -604,6 +604,30 @@ run_menu (grub_menu_t menu, int nested, int *auto_boot) | 87 | @@ -604,6 +604,30 @@ run_menu (grub_menu_t menu, int nested, int *auto_boot) |
1750 | @@ -116,7 +116,7 @@ index ebf5a0f10..42c82290d 100644 | |||
1751 | 116 | { | 116 | { |
1752 | 117 | pos = grub_term_save_pos (); | 117 | pos = grub_term_save_pos (); |
1753 | 118 | diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in | 118 | diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in |
1755 | 119 | index d18bf972f..307214310 100644 | 119 | index d18bf972f7..3072143105 100644 |
1756 | 120 | --- a/util/grub-mkconfig.in | 120 | --- a/util/grub-mkconfig.in |
1757 | 121 | +++ b/util/grub-mkconfig.in | 121 | +++ b/util/grub-mkconfig.in |
1758 | 122 | @@ -250,7 +250,8 @@ export GRUB_DEFAULT \ | 122 | @@ -250,7 +250,8 @@ export GRUB_DEFAULT \ |
1759 | @@ -130,7 +130,7 @@ index d18bf972f..307214310 100644 | |||
1760 | 130 | if test "x${grub_cfg}" != "x"; then | 130 | if test "x${grub_cfg}" != "x"; then |
1761 | 131 | rm -f "${grub_cfg}.new" | 131 | rm -f "${grub_cfg}.new" |
1762 | 132 | diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in | 132 | diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in |
1764 | 133 | index 93a90233e..674a76140 100644 | 133 | index 93a90233ea..674a761402 100644 |
1765 | 134 | --- a/util/grub.d/00_header.in | 134 | --- a/util/grub.d/00_header.in |
1766 | 135 | +++ b/util/grub.d/00_header.in | 135 | +++ b/util/grub.d/00_header.in |
1767 | 136 | @@ -21,6 +21,8 @@ prefix="@prefix@" | 136 | @@ -21,6 +21,8 @@ prefix="@prefix@" |
1768 | @@ -259,7 +259,7 @@ index 93a90233e..674a76140 100644 | |||
1769 | 259 | EOF | 259 | EOF |
1770 | 260 | } | 260 | } |
1771 | 261 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in | 261 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in |
1773 | 262 | index 479a8bf4e..2be66c702 100644 | 262 | index 479a8bf4e5..2be66c7028 100644 |
1774 | 263 | --- a/util/grub.d/10_linux.in | 263 | --- a/util/grub.d/10_linux.in |
1775 | 264 | +++ b/util/grub.d/10_linux.in | 264 | +++ b/util/grub.d/10_linux.in |
1776 | 265 | @@ -22,6 +22,7 @@ exec_prefix="@exec_prefix@" | 265 | @@ -22,6 +22,7 @@ exec_prefix="@exec_prefix@" |
1777 | @@ -281,7 +281,7 @@ index 479a8bf4e..2be66c702 100644 | |||
1778 | 281 | save_default_entry | grub_add_tab | 281 | save_default_entry | grub_add_tab |
1779 | 282 | fi | 282 | fi |
1780 | 283 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in | 283 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
1782 | 284 | index 1a656b2dd..548e14856 100755 | 284 | index 3a0e6d1035..ec4b49d9d7 100755 |
1783 | 285 | --- a/util/grub.d/10_linux_zfs.in | 285 | --- a/util/grub.d/10_linux_zfs.in |
1784 | 286 | +++ b/util/grub.d/10_linux_zfs.in | 286 | +++ b/util/grub.d/10_linux_zfs.in |
1785 | 287 | @@ -21,6 +21,7 @@ prefix="@prefix@" | 287 | @@ -21,6 +21,7 @@ prefix="@prefix@" |
1786 | @@ -292,7 +292,7 @@ index 1a656b2dd..548e14856 100755 | |||
1787 | 292 | 292 | ||
1788 | 293 | . "${pkgdatadir}/grub-mkconfig_lib" | 293 | . "${pkgdatadir}/grub-mkconfig_lib" |
1789 | 294 | 294 | ||
1791 | 295 | @@ -752,6 +753,10 @@ zfs_linux_entry () { | 295 | @@ -755,6 +756,10 @@ zfs_linux_entry () { |
1792 | 296 | 296 | ||
1793 | 297 | echo "${submenu_indentation}menuentry '$(echo "${title}" | grub_quote)' ${CLASS} \${menuentry_id_option} 'gnulinux-${dataset}-${kernel_version}' {" | 297 | echo "${submenu_indentation}menuentry '$(echo "${title}" | grub_quote)' ${CLASS} \${menuentry_id_option} 'gnulinux-${dataset}-${kernel_version}' {" |
1794 | 298 | 298 | ||
1795 | @@ -304,7 +304,7 @@ index 1a656b2dd..548e14856 100755 | |||
1796 | 304 | GRUB_SAVEDEFAULT=${GRUB_SAVEDEFAULT:-} | 304 | GRUB_SAVEDEFAULT=${GRUB_SAVEDEFAULT:-} |
1797 | 305 | default_entry="$(save_default_entry)" | 305 | default_entry="$(save_default_entry)" |
1798 | 306 | diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in | 306 | diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in |
1800 | 307 | index 271044f59..da5f28876 100644 | 307 | index 271044f592..da5f28876d 100644 |
1801 | 308 | --- a/util/grub.d/30_os-prober.in | 308 | --- a/util/grub.d/30_os-prober.in |
1802 | 309 | +++ b/util/grub.d/30_os-prober.in | 309 | +++ b/util/grub.d/30_os-prober.in |
1803 | 310 | @@ -20,12 +20,26 @@ set -e | 310 | @@ -20,12 +20,26 @@ set -e |
1804 | diff --git a/debian/patches/restore-mkdevicemap.patch b/debian/patches/restore-mkdevicemap.patch | |||
1805 | index 267b972..8ffbfa4 100644 | |||
1806 | --- a/debian/patches/restore-mkdevicemap.patch | |||
1807 | +++ b/debian/patches/restore-mkdevicemap.patch | |||
1808 | @@ -1,4 +1,4 @@ | |||
1810 | 1 | From 6db8234a46f194578fb414730dd3ea80a60b13d4 Mon Sep 17 00:00:00 2001 | 1 | From 660f98d4548f4327954fba9410041a75893ad338 Mon Sep 17 00:00:00 2001 |
1811 | 2 | From: Colin Watson <cjwatson@debian.org> | 2 | From: Colin Watson <cjwatson@debian.org> |
1812 | 3 | Date: Mon, 13 Jan 2014 12:13:01 +0000 | 3 | Date: Mon, 13 Jan 2014 12:13:01 +0000 |
1813 | 4 | Subject: Restore grub-mkdevicemap | 4 | Subject: Restore grub-mkdevicemap |
1814 | @@ -28,7 +28,7 @@ Patch-Name: restore-mkdevicemap.patch | |||
1815 | 28 | create mode 100644 util/grub-mkdevicemap.c | 28 | create mode 100644 util/grub-mkdevicemap.c |
1816 | 29 | 29 | ||
1817 | 30 | diff --git a/Makefile.util.def b/Makefile.util.def | 30 | diff --git a/Makefile.util.def b/Makefile.util.def |
1819 | 31 | index bac85e284..eec1924b0 100644 | 31 | index bac85e2840..eec1924b0e 100644 |
1820 | 32 | --- a/Makefile.util.def | 32 | --- a/Makefile.util.def |
1821 | 33 | +++ b/Makefile.util.def | 33 | +++ b/Makefile.util.def |
1822 | 34 | @@ -324,6 +324,23 @@ program = { | 34 | @@ -324,6 +324,23 @@ program = { |
1823 | @@ -57,7 +57,7 @@ index bac85e284..eec1924b0 100644 | |||
1824 | 57 | installdir = sbin; | 57 | installdir = sbin; |
1825 | 58 | diff --git a/docs/man/grub-mkdevicemap.h2m b/docs/man/grub-mkdevicemap.h2m | 58 | diff --git a/docs/man/grub-mkdevicemap.h2m b/docs/man/grub-mkdevicemap.h2m |
1826 | 59 | new file mode 100644 | 59 | new file mode 100644 |
1828 | 60 | index 000000000..96cd6ee72 | 60 | index 0000000000..96cd6ee723 |
1829 | 61 | --- /dev/null | 61 | --- /dev/null |
1830 | 62 | +++ b/docs/man/grub-mkdevicemap.h2m | 62 | +++ b/docs/man/grub-mkdevicemap.h2m |
1831 | 63 | @@ -0,0 +1,4 @@ | 63 | @@ -0,0 +1,4 @@ |
1832 | @@ -67,7 +67,7 @@ index 000000000..96cd6ee72 | |||
1833 | 67 | +.BR grub-probe (8) | 67 | +.BR grub-probe (8) |
1834 | 68 | diff --git a/include/grub/util/deviceiter.h b/include/grub/util/deviceiter.h | 68 | diff --git a/include/grub/util/deviceiter.h b/include/grub/util/deviceiter.h |
1835 | 69 | new file mode 100644 | 69 | new file mode 100644 |
1837 | 70 | index 000000000..85374978c | 70 | index 0000000000..85374978c5 |
1838 | 71 | --- /dev/null | 71 | --- /dev/null |
1839 | 72 | +++ b/include/grub/util/deviceiter.h | 72 | +++ b/include/grub/util/deviceiter.h |
1840 | 73 | @@ -0,0 +1,14 @@ | 73 | @@ -0,0 +1,14 @@ |
1841 | @@ -87,7 +87,7 @@ index 000000000..85374978c | |||
1842 | 87 | +#endif /* ! GRUB_DEVICEITER_MACHINE_UTIL_HEADER */ | 87 | +#endif /* ! GRUB_DEVICEITER_MACHINE_UTIL_HEADER */ |
1843 | 88 | diff --git a/util/deviceiter.c b/util/deviceiter.c | 88 | diff --git a/util/deviceiter.c b/util/deviceiter.c |
1844 | 89 | new file mode 100644 | 89 | new file mode 100644 |
1846 | 90 | index 000000000..a4971ef42 | 90 | index 0000000000..a4971ef429 |
1847 | 91 | --- /dev/null | 91 | --- /dev/null |
1848 | 92 | +++ b/util/deviceiter.c | 92 | +++ b/util/deviceiter.c |
1849 | 93 | @@ -0,0 +1,1021 @@ | 93 | @@ -0,0 +1,1021 @@ |
1850 | @@ -1114,7 +1114,7 @@ index 000000000..a4971ef42 | |||
1851 | 1114 | +} | 1114 | +} |
1852 | 1115 | diff --git a/util/devicemap.c b/util/devicemap.c | 1115 | diff --git a/util/devicemap.c b/util/devicemap.c |
1853 | 1116 | new file mode 100644 | 1116 | new file mode 100644 |
1855 | 1117 | index 000000000..c61864420 | 1117 | index 0000000000..c61864420a |
1856 | 1118 | --- /dev/null | 1118 | --- /dev/null |
1857 | 1119 | +++ b/util/devicemap.c | 1119 | +++ b/util/devicemap.c |
1858 | 1120 | @@ -0,0 +1,13 @@ | 1120 | @@ -0,0 +1,13 @@ |
1859 | @@ -1133,7 +1133,7 @@ index 000000000..c61864420 | |||
1860 | 1133 | +} | 1133 | +} |
1861 | 1134 | diff --git a/util/grub-mkdevicemap.c b/util/grub-mkdevicemap.c | 1134 | diff --git a/util/grub-mkdevicemap.c b/util/grub-mkdevicemap.c |
1862 | 1135 | new file mode 100644 | 1135 | new file mode 100644 |
1864 | 1136 | index 000000000..c4bbdbf69 | 1136 | index 0000000000..c4bbdbf69c |
1865 | 1137 | --- /dev/null | 1137 | --- /dev/null |
1866 | 1138 | +++ b/util/grub-mkdevicemap.c | 1138 | +++ b/util/grub-mkdevicemap.c |
1867 | 1139 | @@ -0,0 +1,181 @@ | 1139 | @@ -0,0 +1,181 @@ |
1868 | diff --git a/debian/patches/series b/debian/patches/series | |||
1869 | index 74189fd..3f64825 100644 | |||
1870 | --- a/debian/patches/series | |||
1871 | +++ b/debian/patches/series | |||
1872 | @@ -62,7 +62,6 @@ ubuntu-shorter-version-info.patch | |||
1873 | 62 | ubuntu-add-initrd-less-boot-fallback.patch | 62 | ubuntu-add-initrd-less-boot-fallback.patch |
1874 | 63 | ubuntu-mkconfig-leave-breadcrumbs.patch | 63 | ubuntu-mkconfig-leave-breadcrumbs.patch |
1875 | 64 | ubuntu-fix-lzma-decompressor-objcopy.patch | 64 | ubuntu-fix-lzma-decompressor-objcopy.patch |
1876 | 65 | ubuntu-clear-invalid-initrd-spacing.patch | ||
1877 | 66 | ubuntu-temp-keep-auto-nvram.patch | 65 | ubuntu-temp-keep-auto-nvram.patch |
1878 | 67 | ubuntu-add-devicetree-command-support.patch | 66 | ubuntu-add-devicetree-command-support.patch |
1879 | 68 | ubuntu-boot-from-multipath-dependent-symlink.patch | 67 | ubuntu-boot-from-multipath-dependent-symlink.patch |
1880 | @@ -72,13 +71,14 @@ ubuntu-efi-allow-loopmount-chainload.patch | |||
1881 | 72 | cherrypick-lsefisystab-define-smbios3.patch | 71 | cherrypick-lsefisystab-define-smbios3.patch |
1882 | 73 | cherrypick-smbios-module.patch | 72 | cherrypick-smbios-module.patch |
1883 | 74 | cherrypick-lsefisystab-show-dtb.patch | 73 | cherrypick-lsefisystab-show-dtb.patch |
1888 | 75 | 0075-uefi-firmware-rename-fwsetup-menuentry-to-UEFI-Firmw.patch | 74 | 0074-uefi-firmware-rename-fwsetup-menuentry-to-UEFI-Firmw.patch |
1889 | 76 | 0076-smbios-Add-a-linux-argument-to-apply-linux-modalias-.patch | 75 | 0075-smbios-Add-a-linux-argument-to-apply-linux-modalias-.patch |
1890 | 77 | 0077-ubuntu-Make-the-linux-command-in-EFI-grub-always-try.patch | 76 | 0076-ubuntu-Make-the-linux-command-in-EFI-grub-always-try.patch |
1891 | 78 | 0078-ubuntu-Update-the-linux-boot-protocol-version-check.patch | 77 | 0077-ubuntu-Update-the-linux-boot-protocol-version-check.patch |
1892 | 79 | ubuntu-resilient-boot-ignore-alternative-esps.patch | 78 | ubuntu-resilient-boot-ignore-alternative-esps.patch |
1893 | 80 | ubuntu-resilient-boot-boot-order.patch | 79 | ubuntu-resilient-boot-boot-order.patch |
1894 | 81 | ubuntu-speed-zsys-history.patch | 80 | ubuntu-speed-zsys-history.patch |
1895 | 81 | <<<<<<< debian/patches/series | ||
1896 | 82 | 0082-yylex-Make-lexer-fatal-errors-actually-be-fatal.patch | 82 | 0082-yylex-Make-lexer-fatal-errors-actually-be-fatal.patch |
1897 | 83 | 0083-safemath-Add-some-arithmetic-primitives-that-check-f.patch | 83 | 0083-safemath-Add-some-arithmetic-primitives-that-check-f.patch |
1898 | 84 | 0084-calloc-Make-sure-we-always-have-an-overflow-checking.patch | 84 | 0084-calloc-Make-sure-we-always-have-an-overflow-checking.patch |
1899 | @@ -104,3 +104,8 @@ ubuntu-speed-zsys-history.patch | |||
1900 | 104 | 0104-linux-loader-avoid-overflow-on-initrd-size-calculati.patch | 104 | 0104-linux-loader-avoid-overflow-on-initrd-size-calculati.patch |
1901 | 105 | 0105-linux-Fix-integer-overflows-in-initrd-size-handling.patch | 105 | 0105-linux-Fix-integer-overflows-in-initrd-size-handling.patch |
1902 | 106 | 0106-efilinux-Fix-integer-overflows-in-grub_cmd_initrd.patch | 106 | 0106-efilinux-Fix-integer-overflows-in-grub_cmd_initrd.patch |
1903 | 107 | ======= | ||
1904 | 108 | ubuntu-flavour-order.patch | ||
1905 | 109 | ubuntu-dont-verify-loopback-images.patch | ||
1906 | 110 | ubuntu-recovery-dis_ucode_ldr.patch | ||
1907 | 111 | >>>>>>> debian/patches/series | ||
1908 | diff --git a/debian/patches/skip-grub_cmd_set_date.patch b/debian/patches/skip-grub_cmd_set_date.patch | |||
1909 | index 08e663b..31cae36 100644 | |||
1910 | --- a/debian/patches/skip-grub_cmd_set_date.patch | |||
1911 | +++ b/debian/patches/skip-grub_cmd_set_date.patch | |||
1912 | @@ -1,4 +1,4 @@ | |||
1914 | 1 | From e37f5abdb9057be5d79ec34bab535ff059fa6b7f Mon Sep 17 00:00:00 2001 | 1 | From 7dfe0ce472f7f0bdbe07cbe67958f06951c88f59 Mon Sep 17 00:00:00 2001 |
1915 | 2 | From: Colin Watson <cjwatson@debian.org> | 2 | From: Colin Watson <cjwatson@debian.org> |
1916 | 3 | Date: Sun, 28 Oct 2018 19:45:56 +0000 | 3 | Date: Sun, 28 Oct 2018 19:45:56 +0000 |
1917 | 4 | Subject: Skip flaky grub_cmd_set_date test | 4 | Subject: Skip flaky grub_cmd_set_date test |
1918 | @@ -12,7 +12,7 @@ Patch-Name: skip-grub_cmd_set_date.patch | |||
1919 | 12 | 1 file changed, 3 insertions(+) | 12 | 1 file changed, 3 insertions(+) |
1920 | 13 | 13 | ||
1921 | 14 | diff --git a/tests/grub_cmd_set_date.in b/tests/grub_cmd_set_date.in | 14 | diff --git a/tests/grub_cmd_set_date.in b/tests/grub_cmd_set_date.in |
1923 | 15 | index aac120a6c..1bb5be4ca 100644 | 15 | index aac120a6c5..1bb5be4ca7 100644 |
1924 | 16 | --- a/tests/grub_cmd_set_date.in | 16 | --- a/tests/grub_cmd_set_date.in |
1925 | 17 | +++ b/tests/grub_cmd_set_date.in | 17 | +++ b/tests/grub_cmd_set_date.in |
1926 | 18 | @@ -1,6 +1,9 @@ | 18 | @@ -1,6 +1,9 @@ |
1927 | diff --git a/debian/patches/sleep-shift.patch b/debian/patches/sleep-shift.patch | |||
1928 | index b739b45..957f36b 100644 | |||
1929 | --- a/debian/patches/sleep-shift.patch | |||
1930 | +++ b/debian/patches/sleep-shift.patch | |||
1931 | @@ -1,4 +1,4 @@ | |||
1933 | 1 | From 8ff02f24d30da862a7ffe530aa2ff692ad8f1b06 Mon Sep 17 00:00:00 2001 | 1 | From dd350028f89cd033b832511d1888b49538ad2fd4 Mon Sep 17 00:00:00 2001 |
1934 | 2 | From: Colin Watson <cjwatson@ubuntu.com> | 2 | From: Colin Watson <cjwatson@ubuntu.com> |
1935 | 3 | Date: Mon, 13 Jan 2014 12:13:23 +0000 | 3 | Date: Mon, 13 Jan 2014 12:13:23 +0000 |
1936 | 4 | Subject: Allow Shift to interrupt 'sleep --interruptible' | 4 | Subject: Allow Shift to interrupt 'sleep --interruptible' |
1937 | @@ -17,7 +17,7 @@ Patch-Name: sleep-shift.patch | |||
1938 | 17 | 2 files changed, 45 insertions(+), 1 deletion(-) | 17 | 2 files changed, 45 insertions(+), 1 deletion(-) |
1939 | 18 | 18 | ||
1940 | 19 | diff --git a/grub-core/commands/sleep.c b/grub-core/commands/sleep.c | 19 | diff --git a/grub-core/commands/sleep.c b/grub-core/commands/sleep.c |
1942 | 20 | index e77e7900f..3906b1410 100644 | 20 | index e77e7900fa..3906b14103 100644 |
1943 | 21 | --- a/grub-core/commands/sleep.c | 21 | --- a/grub-core/commands/sleep.c |
1944 | 22 | +++ b/grub-core/commands/sleep.c | 22 | +++ b/grub-core/commands/sleep.c |
1945 | 23 | @@ -46,6 +46,31 @@ do_print (int n) | 23 | @@ -46,6 +46,31 @@ do_print (int n) |
1946 | @@ -62,7 +62,7 @@ index e77e7900f..3906b1410 100644 | |||
1947 | 62 | 62 | ||
1948 | 63 | return 0; | 63 | return 0; |
1949 | 64 | diff --git a/grub-core/normal/menu.c b/grub-core/normal/menu.c | 64 | diff --git a/grub-core/normal/menu.c b/grub-core/normal/menu.c |
1951 | 65 | index d5e0c79a7..3611ee9ea 100644 | 65 | index d5e0c79a70..3611ee9ea7 100644 |
1952 | 66 | --- a/grub-core/normal/menu.c | 66 | --- a/grub-core/normal/menu.c |
1953 | 67 | +++ b/grub-core/normal/menu.c | 67 | +++ b/grub-core/normal/menu.c |
1954 | 68 | @@ -615,8 +615,27 @@ run_menu (grub_menu_t menu, int nested, int *auto_boot) | 68 | @@ -615,8 +615,27 @@ run_menu (grub_menu_t menu, int nested, int *auto_boot) |
1955 | diff --git a/debian/patches/ubuntu-add-devicetree-command-support.patch b/debian/patches/ubuntu-add-devicetree-command-support.patch | |||
1956 | index 316ed31..23b1a52 100644 | |||
1957 | --- a/debian/patches/ubuntu-add-devicetree-command-support.patch | |||
1958 | +++ b/debian/patches/ubuntu-add-devicetree-command-support.patch | |||
1959 | @@ -1,4 +1,4 @@ | |||
1961 | 1 | From a30c330fb776934ef1dbaa9784960172650ecdfa Mon Sep 17 00:00:00 2001 | 1 | From fa7f363abb70ecb9b6368221b9a3c408aa82e605 Mon Sep 17 00:00:00 2001 |
1962 | 2 | From: Dimitri John Ledkov <xnox@ubuntu.com> | 2 | From: Dimitri John Ledkov <xnox@ubuntu.com> |
1963 | 3 | Date: Wed, 22 May 2019 19:57:29 +0100 | 3 | Date: Wed, 22 May 2019 19:57:29 +0100 |
1964 | 4 | Subject: Add devicetree command, if a dtb is present. | 4 | Subject: Add devicetree command, if a dtb is present. |
1965 | @@ -14,10 +14,10 @@ Patch-Name: ubuntu-add-devicetree-command-support.patch | |||
1966 | 14 | 1 file changed, 19 insertions(+) | 14 | 1 file changed, 19 insertions(+) |
1967 | 15 | 15 | ||
1968 | 16 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in | 16 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in |
1970 | 17 | index a95992a77..d6937cfef 100644 | 17 | index af1e096bd6..bbf5d73e39 100644 |
1971 | 18 | --- a/util/grub.d/10_linux.in | 18 | --- a/util/grub.d/10_linux.in |
1972 | 19 | +++ b/util/grub.d/10_linux.in | 19 | +++ b/util/grub.d/10_linux.in |
1974 | 20 | @@ -240,6 +240,17 @@ EOF | 20 | @@ -254,6 +254,17 @@ EOF |
1975 | 21 | EOF | 21 | EOF |
1976 | 22 | fi | 22 | fi |
1977 | 23 | fi | 23 | fi |
1978 | @@ -35,7 +35,7 @@ index a95992a77..d6937cfef 100644 | |||
1979 | 35 | fi | 35 | fi |
1980 | 36 | sed "s/^/$submenu_indentation/" << EOF | 36 | sed "s/^/$submenu_indentation/" << EOF |
1981 | 37 | } | 37 | } |
1983 | 38 | @@ -378,6 +389,14 @@ while [ "x$list" != "x" ] ; do | 38 | @@ -389,6 +400,14 @@ while [ "x$list" != "x" ] ; do |
1984 | 39 | gettext_printf "Found initrd image: %s\n" "$(echo $initrd_display)" >&2 | 39 | gettext_printf "Found initrd image: %s\n" "$(echo $initrd_display)" >&2 |
1985 | 40 | fi | 40 | fi |
1986 | 41 | 41 | ||
1987 | diff --git a/debian/patches/ubuntu-add-initrd-less-boot-fallback.patch b/debian/patches/ubuntu-add-initrd-less-boot-fallback.patch | |||
1988 | index 8778d34..eee209a 100644 | |||
1989 | --- a/debian/patches/ubuntu-add-initrd-less-boot-fallback.patch | |||
1990 | +++ b/debian/patches/ubuntu-add-initrd-less-boot-fallback.patch | |||
1991 | @@ -1,4 +1,4 @@ | |||
1993 | 1 | From f44b20b94883a77b5f8ef8370bedb8457456907d Mon Sep 17 00:00:00 2001 | 1 | From ab2099f2c6c11ea45a6aadefeb785636477e7430 Mon Sep 17 00:00:00 2001 |
1994 | 2 | From: Chris Glass <chris.glass@canonical.com> | 2 | From: Chris Glass <chris.glass@canonical.com> |
1995 | 3 | Date: Fri, 9 Mar 2018 13:47:07 +0100 | 3 | Date: Fri, 9 Mar 2018 13:47:07 +0100 |
1996 | 4 | Subject: UBUNTU: Added initrd-less boot capabilities. | 4 | Subject: UBUNTU: Added initrd-less boot capabilities. |
1997 | @@ -11,15 +11,15 @@ Signed-off-by: Steve Langasek <steve.langasek@canonical.com> | |||
1998 | 11 | Patch-Name: ubuntu-add-initrd-less-boot-fallback.patch | 11 | Patch-Name: ubuntu-add-initrd-less-boot-fallback.patch |
1999 | 12 | --- | 12 | --- |
2000 | 13 | Makefile.am | 3 ++ | 13 | Makefile.am | 3 ++ |
2006 | 14 | configure.ac | 10 +++++++ | 14 | configure.ac | 10 ++++++ |
2007 | 15 | grub-initrd-fallback.service | 12 ++++++++ | 15 | grub-initrd-fallback.service | 12 +++++++ |
2008 | 16 | util/grub.d/00_header.in | 27 +++++++++++++++++ | 16 | util/grub.d/00_header.in | 27 ++++++++++++++ |
2009 | 17 | util/grub.d/10_linux.in | 56 +++++++++++++++++++++++++----------- | 17 | util/grub.d/10_linux.in | 68 +++++++++++++++++++++++++++--------- |
2010 | 18 | 5 files changed, 91 insertions(+), 17 deletions(-) | 18 | 5 files changed, 104 insertions(+), 16 deletions(-) |
2011 | 19 | create mode 100644 grub-initrd-fallback.service | 19 | create mode 100644 grub-initrd-fallback.service |
2012 | 20 | 20 | ||
2013 | 21 | diff --git a/Makefile.am b/Makefile.am | 21 | diff --git a/Makefile.am b/Makefile.am |
2015 | 22 | index 1f4bb9b8c..e6a220711 100644 | 22 | index 1f4bb9b8c5..e6a220711e 100644 |
2016 | 23 | --- a/Makefile.am | 23 | --- a/Makefile.am |
2017 | 24 | +++ b/Makefile.am | 24 | +++ b/Makefile.am |
2018 | 25 | @@ -473,6 +473,9 @@ ChangeLog: FORCE | 25 | @@ -473,6 +473,9 @@ ChangeLog: FORCE |
2019 | @@ -33,7 +33,7 @@ index 1f4bb9b8c..e6a220711 100644 | |||
2020 | 33 | 33 | ||
2021 | 34 | syslinux_test: $(top_builddir)/config.status tests/syslinux/ubuntu10.04_grub.cfg | 34 | syslinux_test: $(top_builddir)/config.status tests/syslinux/ubuntu10.04_grub.cfg |
2022 | 35 | diff --git a/configure.ac b/configure.ac | 35 | diff --git a/configure.ac b/configure.ac |
2024 | 36 | index 883245553..1819188f9 100644 | 36 | index 883245553d..1819188f9f 100644 |
2025 | 37 | --- a/configure.ac | 37 | --- a/configure.ac |
2026 | 38 | +++ b/configure.ac | 38 | +++ b/configure.ac |
2027 | 39 | @@ -305,6 +305,16 @@ AC_SUBST(grubdirname) | 39 | @@ -305,6 +305,16 @@ AC_SUBST(grubdirname) |
2028 | @@ -55,7 +55,7 @@ index 883245553..1819188f9 100644 | |||
2029 | 55 | # | 55 | # |
2030 | 56 | diff --git a/grub-initrd-fallback.service b/grub-initrd-fallback.service | 56 | diff --git a/grub-initrd-fallback.service b/grub-initrd-fallback.service |
2031 | 57 | new file mode 100644 | 57 | new file mode 100644 |
2033 | 58 | index 000000000..48778c9f7 | 58 | index 0000000000..48778c9f76 |
2034 | 59 | --- /dev/null | 59 | --- /dev/null |
2035 | 60 | +++ b/grub-initrd-fallback.service | 60 | +++ b/grub-initrd-fallback.service |
2036 | 61 | @@ -0,0 +1,12 @@ | 61 | @@ -0,0 +1,12 @@ |
2037 | @@ -72,7 +72,7 @@ index 000000000..48778c9f7 | |||
2038 | 72 | +[Install] | 72 | +[Install] |
2039 | 73 | +WantedBy=multi-user.target rescue.target emergency.target | 73 | +WantedBy=multi-user.target rescue.target emergency.target |
2040 | 74 | diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in | 74 | diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in |
2042 | 75 | index b7135b655..2642f66c5 100644 | 75 | index b7135b655f..2642f66c59 100644 |
2043 | 76 | --- a/util/grub.d/00_header.in | 76 | --- a/util/grub.d/00_header.in |
2044 | 77 | +++ b/util/grub.d/00_header.in | 77 | +++ b/util/grub.d/00_header.in |
2045 | 78 | @@ -50,6 +50,18 @@ if [ -s \$prefix/grubenv ]; then | 78 | @@ -50,6 +50,18 @@ if [ -s \$prefix/grubenv ]; then |
2046 | @@ -117,7 +117,7 @@ index b7135b655..2642f66c5 100644 | |||
2047 | 117 | cat <<EOF | 117 | cat <<EOF |
2048 | 118 | function recordfail { | 118 | function recordfail { |
2049 | 119 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in | 119 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in |
2051 | 120 | index aa9666e5a..13f39b9f6 100644 | 120 | index aa9666e5ad..af1e096bd6 100644 |
2052 | 121 | --- a/util/grub.d/10_linux.in | 121 | --- a/util/grub.d/10_linux.in |
2053 | 122 | +++ b/util/grub.d/10_linux.in | 122 | +++ b/util/grub.d/10_linux.in |
2054 | 123 | @@ -118,6 +118,10 @@ if [ "$vt_handoff" = 1 ]; then | 123 | @@ -118,6 +118,10 @@ if [ "$vt_handoff" = 1 ]; then |
2055 | @@ -131,7 +131,7 @@ index aa9666e5a..13f39b9f6 100644 | |||
2056 | 131 | linux_entry () | 131 | linux_entry () |
2057 | 132 | { | 132 | { |
2058 | 133 | os="$1" | 133 | os="$1" |
2060 | 134 | @@ -193,31 +197,49 @@ EOF | 134 | @@ -193,31 +197,63 @@ EOF |
2061 | 135 | linux ${rel_dirname}/${basename}.efi.signed root=${linux_root_device_thisversion} ro ${args} | 135 | linux ${rel_dirname}/${basename}.efi.signed root=${linux_root_device_thisversion} ro ${args} |
2062 | 136 | EOF | 136 | EOF |
2063 | 137 | else | 137 | else |
2064 | @@ -143,6 +143,14 @@ index aa9666e5a..13f39b9f6 100644 | |||
2065 | 143 | + linux_root_device_thisversion="PARTUUID=${GRUB_FORCE_PARTUUID}" | 143 | + linux_root_device_thisversion="PARTUUID=${GRUB_FORCE_PARTUUID}" |
2066 | 144 | + fi | 144 | + fi |
2067 | 145 | + message="$(gettext_printf "Loading initial ramdisk ...")" | 145 | + message="$(gettext_printf "Loading initial ramdisk ...")" |
2068 | 146 | + initrd_path= | ||
2069 | 147 | + for i in ${initrd}; do | ||
2070 | 148 | + initrd_path="${initrd_path} ${rel_dirname}/${i}" | ||
2071 | 149 | + done | ||
2072 | 150 | + initrd_path_only_early= | ||
2073 | 151 | + for i in ${initrd_early}; do | ||
2074 | 152 | + initrd_path_only_early="${initrd_path_only_early} ${rel_dirname}/${i}" | ||
2075 | 153 | + done | ||
2076 | 146 | + if test -n "${initrd}" && [ x"$GRUB_FORCE_PARTUUID" != x ]; then | 154 | + if test -n "${initrd}" && [ x"$GRUB_FORCE_PARTUUID" != x ]; then |
2077 | 147 | + sed "s/^/$submenu_indentation/" << EOF | 155 | + sed "s/^/$submenu_indentation/" << EOF |
2078 | 148 | + if [ "\${initrdfail}" = 1 ]; then | 156 | + if [ "\${initrdfail}" = 1 ]; then |
2079 | @@ -153,12 +161,18 @@ index aa9666e5a..13f39b9f6 100644 | |||
2080 | 153 | + echo '$(echo "$message" | grub_quote)' | 161 | + echo '$(echo "$message" | grub_quote)' |
2081 | 154 | +EOF | 162 | +EOF |
2082 | 155 | + fi | 163 | + fi |
2083 | 156 | + | ||
2084 | 157 | sed "s/^/$submenu_indentation/" << EOF | 164 | sed "s/^/$submenu_indentation/" << EOF |
2085 | 158 | - linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args} | 165 | - linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args} |
2087 | 159 | + initrd ${rel_dirname}/${initrd} | 166 | + initrd $(echo $initrd_path) |
2088 | 160 | + else | 167 | + else |
2089 | 161 | + linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args} panic=-1 | 168 | + linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args} panic=-1 |
2090 | 169 | +EOF | ||
2091 | 170 | + if [ -n "$initrd_path_only_early" ]; then | ||
2092 | 171 | + sed "s/^/$submenu_indentation/" << EOF | ||
2093 | 172 | + initrd $(echo $initrd_path_only_early) | ||
2094 | 173 | +EOF | ||
2095 | 174 | + fi | ||
2096 | 175 | + sed "s/^/$submenu_indentation/" << EOF | ||
2097 | 162 | + fi | 176 | + fi |
2098 | 163 | + initrdfail | 177 | + initrdfail |
2099 | 164 | EOF | 178 | EOF |
2100 | @@ -188,10 +202,9 @@ index aa9666e5a..13f39b9f6 100644 | |||
2101 | 188 | - initrd_path="${initrd_path} ${rel_dirname}/${i}" | 202 | - initrd_path="${initrd_path} ${rel_dirname}/${i}" |
2102 | 189 | - done | 203 | - done |
2103 | 190 | - sed "s/^/$submenu_indentation/" << EOF | 204 | - sed "s/^/$submenu_indentation/" << EOF |
2104 | 191 | - initrd $(echo $initrd_path) | ||
2105 | 192 | + fi | 205 | + fi |
2106 | 193 | + sed "s/^/$submenu_indentation/" << EOF | 206 | + sed "s/^/$submenu_indentation/" << EOF |
2108 | 194 | + initrd ${rel_dirname}/${initrd} | 207 | initrd $(echo $initrd_path) |
2109 | 195 | EOF | 208 | EOF |
2110 | 196 | + fi | 209 | + fi |
2111 | 197 | + fi | 210 | + fi |
2112 | diff --git a/debian/patches/ubuntu-boot-from-multipath-dependent-symlink.patch b/debian/patches/ubuntu-boot-from-multipath-dependent-symlink.patch | |||
2113 | index d8b8810..98571fd 100644 | |||
2114 | --- a/debian/patches/ubuntu-boot-from-multipath-dependent-symlink.patch | |||
2115 | +++ b/debian/patches/ubuntu-boot-from-multipath-dependent-symlink.patch | |||
2116 | @@ -1,4 +1,4 @@ | |||
2118 | 1 | From 4f4f4b1ce88642c1c13f12b425484906098590b5 Mon Sep 17 00:00:00 2001 | 1 | From 704ab1283bad04e55ee7cd05281a17aa24e382c6 Mon Sep 17 00:00:00 2001 |
2119 | 2 | From: Michael Hudson-Doyle <michael.hudson@canonical.com> | 2 | From: Michael Hudson-Doyle <michael.hudson@canonical.com> |
2120 | 3 | Date: Tue, 6 Aug 2019 12:31:47 +1200 | 3 | Date: Tue, 6 Aug 2019 12:31:47 +1200 |
2121 | 4 | Subject: UBUNTU: Boot from multipath-dependent symlink when / is multipathed. | 4 | Subject: UBUNTU: Boot from multipath-dependent symlink when / is multipathed. |
2122 | @@ -16,7 +16,7 @@ Patch-Name: ubuntu-boot-from-multipath-dependent-symlink.patch | |||
2123 | 16 | 1 file changed, 41 insertions(+) | 16 | 1 file changed, 41 insertions(+) |
2124 | 17 | 17 | ||
2125 | 18 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in | 18 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in |
2127 | 19 | index d6937cfef..3eb0e6936 100644 | 19 | index bbf5d73e39..14a89ba13d 100644 |
2128 | 20 | --- a/util/grub.d/10_linux.in | 20 | --- a/util/grub.d/10_linux.in |
2129 | 21 | +++ b/util/grub.d/10_linux.in | 21 | +++ b/util/grub.d/10_linux.in |
2130 | 22 | @@ -65,6 +65,47 @@ esac | 22 | @@ -65,6 +65,47 @@ esac |
2131 | diff --git a/debian/patches/ubuntu-clear-invalid-initrd-spacing.patch b/debian/patches/ubuntu-clear-invalid-initrd-spacing.patch | |||
2132 | 23 | deleted file mode 100644 | 23 | deleted file mode 100644 |
2133 | index 14951f6..0000000 | |||
2134 | --- a/debian/patches/ubuntu-clear-invalid-initrd-spacing.patch | |||
2135 | +++ /dev/null | |||
2136 | @@ -1,27 +0,0 @@ | |||
2137 | 1 | From a5307d00cee7f22074b89f393cb99c968f657ddb Mon Sep 17 00:00:00 2001 | ||
2138 | 2 | From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> | ||
2139 | 3 | Date: Thu, 11 Jul 2019 09:07:47 -0400 | ||
2140 | 4 | Subject: UBUNTU: Clear up incorrect spacing when not using early initrds | ||
2141 | 5 | |||
2142 | 6 | Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> | ||
2143 | 7 | Patch-Name: ubuntu-clear-invalid-initrd-spacing.patch | ||
2144 | 8 | --- | ||
2145 | 9 | util/grub.d/10_linux.in | 5 ++++- | ||
2146 | 10 | 1 file changed, 4 insertions(+), 1 deletion(-) | ||
2147 | 11 | |||
2148 | 12 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in | ||
2149 | 13 | index 13f39b9f6..a95992a77 100644 | ||
2150 | 14 | --- a/util/grub.d/10_linux.in | ||
2151 | 15 | +++ b/util/grub.d/10_linux.in | ||
2152 | 16 | @@ -366,7 +366,10 @@ while [ "x$list" != "x" ] ; do | ||
2153 | 17 | |||
2154 | 18 | initrd= | ||
2155 | 19 | if test -n "${initrd_early}" || test -n "${initrd_real}"; then | ||
2156 | 20 | - initrd="${initrd_early} ${initrd_real}" | ||
2157 | 21 | + initrd="${initrd_real}" | ||
2158 | 22 | + if test -n "${initrd_early}"; then | ||
2159 | 23 | + initrd="${initrd_early} ${initrd}" | ||
2160 | 24 | + fi | ||
2161 | 25 | |||
2162 | 26 | initrd_display= | ||
2163 | 27 | for i in ${initrd}; do | ||
2164 | diff --git a/debian/patches/ubuntu-dont-verify-loopback-images.patch b/debian/patches/ubuntu-dont-verify-loopback-images.patch | |||
2165 | 28 | new file mode 100644 | 0 | new file mode 100644 |
2166 | index 0000000..0531814 | |||
2167 | --- /dev/null | |||
2168 | +++ b/debian/patches/ubuntu-dont-verify-loopback-images.patch | |||
2169 | @@ -0,0 +1,37 @@ | |||
2170 | 1 | From 696a85aae06675d927e2942a0d550e0e66078239 Mon Sep 17 00:00:00 2001 | ||
2171 | 2 | From: Chris Coulson <chris.coulson@canonical.com> | ||
2172 | 3 | Date: Mon, 1 Jun 2020 14:03:37 +0100 | ||
2173 | 4 | Subject: UBUNTU: disk/loopback: Don't verify loopback images | ||
2174 | 5 | |||
2175 | 6 | When a file is verified, the entire contents of the verified file are | ||
2176 | 7 | loaded in to memory and retained until the file handle is closed. A | ||
2177 | 8 | consequence of this is that opening a loopback image can incur a | ||
2178 | 9 | significant memory cost. | ||
2179 | 10 | |||
2180 | 11 | As loopback devices are just another disk implementation, don't treat | ||
2181 | 12 | loopback images any differently to physical disk images, and skip | ||
2182 | 13 | verification of them. Files opened from the filesystem within a loopback | ||
2183 | 14 | image will still be passed to verifier modules where required. | ||
2184 | 15 | |||
2185 | 16 | Signed-off-by: Chris Coulson <chris.coulson@canonical.com> | ||
2186 | 17 | LP: #1878541 | ||
2187 | 18 | Forwarded: yes, https://lists.gnu.org/archive/html/grub-devel/2020-06/msg00002.html | ||
2188 | 19 | Patch-Name: ubuntu-dont-verify-loopback-images.patch | ||
2189 | 20 | --- | ||
2190 | 21 | grub-core/disk/loopback.c | 3 ++- | ||
2191 | 22 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
2192 | 23 | |||
2193 | 24 | diff --git a/grub-core/disk/loopback.c b/grub-core/disk/loopback.c | ||
2194 | 25 | index ccb4b167cc..210201d22d 100644 | ||
2195 | 26 | --- a/grub-core/disk/loopback.c | ||
2196 | 27 | +++ b/grub-core/disk/loopback.c | ||
2197 | 28 | @@ -86,7 +86,8 @@ grub_cmd_loopback (grub_extcmd_context_t ctxt, int argc, char **args) | ||
2198 | 29 | return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("filename expected")); | ||
2199 | 30 | |||
2200 | 31 | file = grub_file_open (args[1], GRUB_FILE_TYPE_LOOPBACK | ||
2201 | 32 | - | GRUB_FILE_TYPE_NO_DECOMPRESS); | ||
2202 | 33 | + | GRUB_FILE_TYPE_NO_DECOMPRESS | | ||
2203 | 34 | + GRUB_FILE_TYPE_SKIP_SIGNATURE); | ||
2204 | 35 | if (! file) | ||
2205 | 36 | return grub_errno; | ||
2206 | 37 | |||
2207 | diff --git a/debian/patches/ubuntu-efi-allow-loopmount-chainload.patch b/debian/patches/ubuntu-efi-allow-loopmount-chainload.patch | |||
2208 | index 94cd6db..3d274cf 100644 | |||
2209 | --- a/debian/patches/ubuntu-efi-allow-loopmount-chainload.patch | |||
2210 | +++ b/debian/patches/ubuntu-efi-allow-loopmount-chainload.patch | |||
2211 | @@ -1,4 +1,4 @@ | |||
2213 | 1 | From fdcce3de9327b0c8009054baa1ed13fb8572e1ac Mon Sep 17 00:00:00 2001 | 1 | From 1cc5aadf105ba7037e2625ac22a89d7feea09109 Mon Sep 17 00:00:00 2001 |
2214 | 2 | From: Dimitri John Ledkov <xnox@ubuntu.com> | 2 | From: Dimitri John Ledkov <xnox@ubuntu.com> |
2215 | 3 | Date: Wed, 27 Nov 2019 23:12:35 +0000 | 3 | Date: Wed, 27 Nov 2019 23:12:35 +0000 |
2216 | 4 | Subject: UBUNTU: Allow chainloading EFI apps from loop mounts. | 4 | Subject: UBUNTU: Allow chainloading EFI apps from loop mounts. |
2217 | @@ -15,7 +15,7 @@ Patch-Name: ubuntu-efi-allow-loopmount-chainload.patch | |||
2218 | 15 | create mode 100644 include/grub/loopback.h | 15 | create mode 100644 include/grub/loopback.h |
2219 | 16 | 16 | ||
2220 | 17 | diff --git a/grub-core/disk/loopback.c b/grub-core/disk/loopback.c | 17 | diff --git a/grub-core/disk/loopback.c b/grub-core/disk/loopback.c |
2222 | 18 | index cdf9123fa..ccb4b167c 100644 | 18 | index cdf9123fa5..ccb4b167cc 100644 |
2223 | 19 | --- a/grub-core/disk/loopback.c | 19 | --- a/grub-core/disk/loopback.c |
2224 | 20 | +++ b/grub-core/disk/loopback.c | 20 | +++ b/grub-core/disk/loopback.c |
2225 | 21 | @@ -21,20 +21,13 @@ | 21 | @@ -21,20 +21,13 @@ |
2226 | @@ -41,7 +41,7 @@ index cdf9123fa..ccb4b167c 100644 | |||
2227 | 41 | static unsigned long last_id = 0; | 41 | static unsigned long last_id = 0; |
2228 | 42 | 42 | ||
2229 | 43 | diff --git a/grub-core/loader/efi/chainloader.c b/grub-core/loader/efi/chainloader.c | 43 | diff --git a/grub-core/loader/efi/chainloader.c b/grub-core/loader/efi/chainloader.c |
2231 | 44 | index ec80f415b..04e815c05 100644 | 44 | index ec80f415b8..04e815c052 100644 |
2232 | 45 | --- a/grub-core/loader/efi/chainloader.c | 45 | --- a/grub-core/loader/efi/chainloader.c |
2233 | 46 | +++ b/grub-core/loader/efi/chainloader.c | 46 | +++ b/grub-core/loader/efi/chainloader.c |
2234 | 47 | @@ -24,6 +24,7 @@ | 47 | @@ -24,6 +24,7 @@ |
2235 | @@ -91,7 +91,7 @@ index ec80f415b..04e815c05 100644 | |||
2236 | 91 | 91 | ||
2237 | 92 | diff --git a/include/grub/loopback.h b/include/grub/loopback.h | 92 | diff --git a/include/grub/loopback.h b/include/grub/loopback.h |
2238 | 93 | new file mode 100644 | 93 | new file mode 100644 |
2240 | 94 | index 000000000..3b9a9e32e | 94 | index 0000000000..3b9a9e32e8 |
2241 | 95 | --- /dev/null | 95 | --- /dev/null |
2242 | 96 | +++ b/include/grub/loopback.h | 96 | +++ b/include/grub/loopback.h |
2243 | 97 | @@ -0,0 +1,30 @@ | 97 | @@ -0,0 +1,30 @@ |
2244 | diff --git a/debian/patches/ubuntu-efi-console-set-text-mode-as-needed.patch b/debian/patches/ubuntu-efi-console-set-text-mode-as-needed.patch | |||
2245 | index b1efc2e..66749d2 100644 | |||
2246 | --- a/debian/patches/ubuntu-efi-console-set-text-mode-as-needed.patch | |||
2247 | +++ b/debian/patches/ubuntu-efi-console-set-text-mode-as-needed.patch | |||
2248 | @@ -1,4 +1,4 @@ | |||
2250 | 1 | From ab83d387cda5158fd4a3940dc067c55a6ee7f9f4 Mon Sep 17 00:00:00 2001 | 1 | From a7f1a5663f165025c279dd0a13cdec06d27f03e8 Mon Sep 17 00:00:00 2001 |
2251 | 2 | From: Hans de Goede <hdegoede@redhat.com> | 2 | From: Hans de Goede <hdegoede@redhat.com> |
2252 | 3 | Date: Tue, 6 Mar 2018 17:11:15 +0100 | 3 | Date: Tue, 6 Mar 2018 17:11:15 +0100 |
2253 | 4 | Subject: UBUNTU: EFI: Do not set text-mode until we actually need it | 4 | Subject: UBUNTU: EFI: Do not set text-mode until we actually need it |
2254 | @@ -15,7 +15,7 @@ Patch-Name: ubuntu-efi-console-set-text-mode-as-needed.patch | |||
2255 | 15 | 1 file changed, 45 insertions(+), 23 deletions(-) | 15 | 1 file changed, 45 insertions(+), 23 deletions(-) |
2256 | 16 | 16 | ||
2257 | 17 | diff --git a/grub-core/term/efi/console.c b/grub-core/term/efi/console.c | 17 | diff --git a/grub-core/term/efi/console.c b/grub-core/term/efi/console.c |
2259 | 18 | index 4840cc59d..b61da7d0d 100644 | 18 | index 4840cc59d3..b61da7d0d0 100644 |
2260 | 19 | --- a/grub-core/term/efi/console.c | 19 | --- a/grub-core/term/efi/console.c |
2261 | 20 | +++ b/grub-core/term/efi/console.c | 20 | +++ b/grub-core/term/efi/console.c |
2262 | 21 | @@ -24,6 +24,11 @@ | 21 | @@ -24,6 +24,11 @@ |
2263 | diff --git a/debian/patches/ubuntu-fix-lzma-decompressor-objcopy.patch b/debian/patches/ubuntu-fix-lzma-decompressor-objcopy.patch | |||
2264 | index ff9a6b1..20a2db3 100644 | |||
2265 | --- a/debian/patches/ubuntu-fix-lzma-decompressor-objcopy.patch | |||
2266 | +++ b/debian/patches/ubuntu-fix-lzma-decompressor-objcopy.patch | |||
2267 | @@ -1,4 +1,4 @@ | |||
2269 | 1 | From 56715cae7b821ff8395078ff79a4a2ee937cb4db Mon Sep 17 00:00:00 2001 | 1 | From 4dfa975de0c2289b33ab76f06e70b01583f2c56d Mon Sep 17 00:00:00 2001 |
2270 | 2 | From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> | 2 | From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> |
2271 | 3 | Date: Wed, 3 Jul 2019 15:21:16 -0400 | 3 | Date: Wed, 3 Jul 2019 15:21:16 -0400 |
2272 | 4 | Subject: UBUNTU: Have the lzma decompressor image only contain the .text | 4 | Subject: UBUNTU: Have the lzma decompressor image only contain the .text |
2273 | @@ -16,7 +16,7 @@ Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> | |||
2274 | 16 | 1 file changed, 1 insertion(+), 1 deletion(-) | 16 | 1 file changed, 1 insertion(+), 1 deletion(-) |
2275 | 17 | 17 | ||
2276 | 18 | diff --git a/grub-core/Makefile.core.def b/grub-core/Makefile.core.def | 18 | diff --git a/grub-core/Makefile.core.def b/grub-core/Makefile.core.def |
2278 | 19 | index 1731c53f0..33e75021d 100644 | 19 | index 1731c53f08..33e75021da 100644 |
2279 | 20 | --- a/grub-core/Makefile.core.def | 20 | --- a/grub-core/Makefile.core.def |
2280 | 21 | +++ b/grub-core/Makefile.core.def | 21 | +++ b/grub-core/Makefile.core.def |
2281 | 22 | @@ -547,7 +547,7 @@ image = { | 22 | @@ -547,7 +547,7 @@ image = { |
2282 | diff --git a/debian/patches/ubuntu-flavour-order.patch b/debian/patches/ubuntu-flavour-order.patch | |||
2283 | 23 | new file mode 100644 | 23 | new file mode 100644 |
2284 | index 0000000..9308d1e | |||
2285 | --- /dev/null | |||
2286 | +++ b/debian/patches/ubuntu-flavour-order.patch | |||
2287 | @@ -0,0 +1,61 @@ | |||
2288 | 1 | From 2d236733ca4d74521cefab7fbf5e0f00967a028b Mon Sep 17 00:00:00 2001 | ||
2289 | 2 | From: Julian Andres Klode <julian.klode@canonical.com> | ||
2290 | 3 | Date: Tue, 9 Jun 2020 11:50:23 +0200 | ||
2291 | 4 | Subject: UBUNTU: Add GRUB_FLAVOUR_ORDER configuration item | ||
2292 | 5 | |||
2293 | 6 | This allows you to specify flavours that will be preferred | ||
2294 | 7 | over other ones, and the order in which they are preferred | ||
2295 | 8 | - items in the list win over items not in the list, and items | ||
2296 | 9 | earlier in the list win over later ones. | ||
2297 | 10 | |||
2298 | 11 | We still have to sort out storage of this, as we need to | ||
2299 | 12 | inject that from packages or the UA client and similar, | ||
2300 | 13 | and we can't just modify /etc/default/grub for that. | ||
2301 | 14 | |||
2302 | 15 | LP: #1882663 | ||
2303 | 16 | Patch-Name: ubuntu-flavour-order.patch | ||
2304 | 17 | --- | ||
2305 | 18 | util/grub-mkconfig.in | 3 ++- | ||
2306 | 19 | util/grub-mkconfig_lib.in | 15 +++++++++++++++ | ||
2307 | 20 | 2 files changed, 17 insertions(+), 1 deletion(-) | ||
2308 | 21 | |||
2309 | 22 | diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in | ||
2310 | 23 | index 72f1e25a03..6c8988fd60 100644 | ||
2311 | 24 | --- a/util/grub-mkconfig.in | ||
2312 | 25 | +++ b/util/grub-mkconfig.in | ||
2313 | 26 | @@ -260,7 +260,8 @@ export GRUB_DEFAULT \ | ||
2314 | 27 | GRUB_RECORDFAIL_TIMEOUT \ | ||
2315 | 28 | GRUB_RECOVERY_TITLE \ | ||
2316 | 29 | GRUB_FORCE_PARTUUID \ | ||
2317 | 30 | - GRUB_DISABLE_INITRD | ||
2318 | 31 | + GRUB_DISABLE_INITRD \ | ||
2319 | 32 | + GRUB_FLAVOUR_ORDER | ||
2320 | 33 | |||
2321 | 34 | if test "x${grub_cfg}" != "x"; then | ||
2322 | 35 | rm -f "${grub_cfg}.new" | ||
2323 | 36 | diff --git a/util/grub-mkconfig_lib.in b/util/grub-mkconfig_lib.in | ||
2324 | 37 | index fe6319abe0..7e2d1bc214 100644 | ||
2325 | 38 | --- a/util/grub-mkconfig_lib.in | ||
2326 | 39 | +++ b/util/grub-mkconfig_lib.in | ||
2327 | 40 | @@ -270,6 +270,21 @@ version_test_gt () | ||
2328 | 41 | if [ "x$version_test_gt_b" = "x" ] ; then | ||
2329 | 42 | return 0 | ||
2330 | 43 | fi | ||
2331 | 44 | + | ||
2332 | 45 | + # GRUB_FLAVOUR_ORDER is an ordered list of kernels, in decreasing | ||
2333 | 46 | + # priority. Any items in the list take precedence over other kernels, | ||
2334 | 47 | + # and earlier flavours are preferred over later ones. | ||
2335 | 48 | + for flavour in ${GRUB_FLAVOUR_ORDER:-}; do | ||
2336 | 49 | + version_test_gt_a_preferred=$(echo "$version_test_gt_a" | grep -- "-[0-9]*-$flavour\$") | ||
2337 | 50 | + version_test_gt_b_preferred=$(echo "$version_test_gt_b" | grep -- "-[0-9]*-$flavour\$") | ||
2338 | 51 | + | ||
2339 | 52 | + if [ -n "$version_test_gt_a_preferred" -a -z "$version_test_gt_b_preferred" ] ; then | ||
2340 | 53 | + return 0 | ||
2341 | 54 | + elif [ -z "$version_test_gt_a_preferred" -a -n "$version_test_gt_b_preferred" ] ; then | ||
2342 | 55 | + return 1 | ||
2343 | 56 | + fi | ||
2344 | 57 | + done | ||
2345 | 58 | + | ||
2346 | 59 | case "$version_test_gt_a:$version_test_gt_b" in | ||
2347 | 60 | *.old:*.old) ;; | ||
2348 | 61 | *.old:*) version_test_gt_a="`echo "$version_test_gt_a" | sed -e 's/\.old$//'`" ; version_test_gt_cmp=gt ;; | ||
2349 | diff --git a/debian/patches/ubuntu-grub-install-extra-removable.patch b/debian/patches/ubuntu-grub-install-extra-removable.patch | |||
2350 | index 653d6db..0f1b7a5 100644 | |||
2351 | --- a/debian/patches/ubuntu-grub-install-extra-removable.patch | |||
2352 | +++ b/debian/patches/ubuntu-grub-install-extra-removable.patch | |||
2353 | @@ -1,4 +1,4 @@ | |||
2355 | 1 | From a2c29740e83520a037e3aa6e88c874ca0b5b991a Mon Sep 17 00:00:00 2001 | 1 | From b87f13adb4998b9f68981636533b1d186030ac83 Mon Sep 17 00:00:00 2001 |
2356 | 2 | From: Steve McIntyre <93sam@debian.org> | 2 | From: Steve McIntyre <93sam@debian.org> |
2357 | 3 | Date: Wed, 3 Dec 2014 01:25:12 +0000 | 3 | Date: Wed, 3 Dec 2014 01:25:12 +0000 |
2358 | 4 | Subject: UBUNTU: Add support for forcing EFI installation to the removable | 4 | Subject: UBUNTU: Add support for forcing EFI installation to the removable |
2359 | @@ -23,7 +23,7 @@ Patch-Name: ubuntu-grub-install-extra-removable.patch | |||
2360 | 23 | 1 file changed, 133 insertions(+), 2 deletions(-) | 23 | 1 file changed, 133 insertions(+), 2 deletions(-) |
2361 | 24 | 24 | ||
2362 | 25 | diff --git a/util/grub-install.c b/util/grub-install.c | 25 | diff --git a/util/grub-install.c b/util/grub-install.c |
2364 | 26 | index 64c292383..030464645 100644 | 26 | index 64c292383f..0304646453 100644 |
2365 | 27 | --- a/util/grub-install.c | 27 | --- a/util/grub-install.c |
2366 | 28 | +++ b/util/grub-install.c | 28 | +++ b/util/grub-install.c |
2367 | 29 | @@ -56,6 +56,7 @@ | 29 | @@ -56,6 +56,7 @@ |
2368 | diff --git a/debian/patches/ubuntu-install-signed.patch b/debian/patches/ubuntu-install-signed.patch | |||
2369 | index 688b5ab..66f46b9 100644 | |||
2370 | --- a/debian/patches/ubuntu-install-signed.patch | |||
2371 | +++ b/debian/patches/ubuntu-install-signed.patch | |||
2372 | @@ -1,4 +1,4 @@ | |||
2374 | 1 | From e66b6951c463ed36d7c3a8cff50c5dbdfa29e99a Mon Sep 17 00:00:00 2001 | 1 | From 4d418a4d382eeb84eb67c8581819dd10894ed048 Mon Sep 17 00:00:00 2001 |
2375 | 2 | From: Colin Watson <cjwatson@ubuntu.com> | 2 | From: Colin Watson <cjwatson@ubuntu.com> |
2376 | 3 | Date: Mon, 13 Jan 2014 12:13:22 +0000 | 3 | Date: Mon, 13 Jan 2014 12:13:22 +0000 |
2377 | 4 | Subject: UBUNTU: Install signed images if UEFI Secure Boot is enabled | 4 | Subject: UBUNTU: Install signed images if UEFI Secure Boot is enabled |
2378 | @@ -19,7 +19,7 @@ Patch-Name: ubuntu-install-signed.patch | |||
2379 | 19 | 1 file changed, 156 insertions(+), 59 deletions(-) | 19 | 1 file changed, 156 insertions(+), 59 deletions(-) |
2380 | 20 | 20 | ||
2381 | 21 | diff --git a/util/grub-install.c b/util/grub-install.c | 21 | diff --git a/util/grub-install.c b/util/grub-install.c |
2383 | 22 | index 3b4606eef..e1e40cf2b 100644 | 22 | index 3b4606eef1..e1e40cf2b5 100644 |
2384 | 23 | --- a/util/grub-install.c | 23 | --- a/util/grub-install.c |
2385 | 24 | +++ b/util/grub-install.c | 24 | +++ b/util/grub-install.c |
2386 | 25 | @@ -80,6 +80,7 @@ static char *label_color; | 25 | @@ -80,6 +80,7 @@ static char *label_color; |
2387 | diff --git a/debian/patches/ubuntu-linuxefi.patch b/debian/patches/ubuntu-linuxefi.patch | |||
2388 | index 74fec04..4cfdc1c 100644 | |||
2389 | --- a/debian/patches/ubuntu-linuxefi.patch | |||
2390 | +++ b/debian/patches/ubuntu-linuxefi.patch | |||
2391 | @@ -1,4 +1,4 @@ | |||
2393 | 1 | From 3451d405d55fd342aa581ecc23ee535ad533c61d Mon Sep 17 00:00:00 2001 | 1 | From 0e2ddafb154df1708801faef74aa4f2d40d55d35 Mon Sep 17 00:00:00 2001 |
2394 | 2 | From: Matthew Garrett <mjg@redhat.com> | 2 | From: Matthew Garrett <mjg@redhat.com> |
2395 | 3 | Date: Wed, 27 Feb 2019 12:20:48 -0500 | 3 | Date: Wed, 27 Feb 2019 12:20:48 -0500 |
2396 | 4 | Subject: UBUNTU: Add support for linuxefi | 4 | Subject: UBUNTU: Add support for linuxefi |
2397 | @@ -358,7 +358,7 @@ Last-Update: 2018-12-07 | |||
2398 | 358 | create mode 100644 include/grub/sparc64/linux.h | 358 | create mode 100644 include/grub/sparc64/linux.h |
2399 | 359 | 359 | ||
2400 | 360 | diff --git a/grub-core/Makefile.am b/grub-core/Makefile.am | 360 | diff --git a/grub-core/Makefile.am b/grub-core/Makefile.am |
2402 | 361 | index 3ea8e7ff4..c6ba5b2d7 100644 | 361 | index 3ea8e7ff45..c6ba5b2d76 100644 |
2403 | 362 | --- a/grub-core/Makefile.am | 362 | --- a/grub-core/Makefile.am |
2404 | 363 | +++ b/grub-core/Makefile.am | 363 | +++ b/grub-core/Makefile.am |
2405 | 364 | @@ -71,6 +71,7 @@ KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/command.h | 364 | @@ -71,6 +71,7 @@ KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/command.h |
2406 | @@ -370,7 +370,7 @@ index 3ea8e7ff4..c6ba5b2d7 100644 | |||
2407 | 370 | KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/env_private.h | 370 | KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/env_private.h |
2408 | 371 | KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/err.h | 371 | KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/err.h |
2409 | 372 | diff --git a/grub-core/Makefile.core.def b/grub-core/Makefile.core.def | 372 | diff --git a/grub-core/Makefile.core.def b/grub-core/Makefile.core.def |
2411 | 373 | index aadb4cdff..1731c53f0 100644 | 373 | index aadb4cdff8..1731c53f08 100644 |
2412 | 374 | --- a/grub-core/Makefile.core.def | 374 | --- a/grub-core/Makefile.core.def |
2413 | 375 | +++ b/grub-core/Makefile.core.def | 375 | +++ b/grub-core/Makefile.core.def |
2414 | 376 | @@ -207,6 +207,7 @@ kernel = { | 376 | @@ -207,6 +207,7 @@ kernel = { |
2415 | @@ -428,7 +428,7 @@ index aadb4cdff..1731c53f0 100644 | |||
2416 | 428 | enable = i386_coreboot; | 428 | enable = i386_coreboot; |
2417 | 429 | enable = efi; | 429 | enable = efi; |
2418 | 430 | diff --git a/grub-core/commands/iorw.c b/grub-core/commands/iorw.c | 430 | diff --git a/grub-core/commands/iorw.c b/grub-core/commands/iorw.c |
2420 | 431 | index a0c164e54..41a7f3f04 100644 | 431 | index a0c164e54f..41a7f3f046 100644 |
2421 | 432 | --- a/grub-core/commands/iorw.c | 432 | --- a/grub-core/commands/iorw.c |
2422 | 433 | +++ b/grub-core/commands/iorw.c | 433 | +++ b/grub-core/commands/iorw.c |
2423 | 434 | @@ -23,6 +23,7 @@ | 434 | @@ -23,6 +23,7 @@ |
2424 | @@ -460,7 +460,7 @@ index a0c164e54..41a7f3f04 100644 | |||
2425 | 460 | grub_unregister_extcmd (cmd_read_word); | 460 | grub_unregister_extcmd (cmd_read_word); |
2426 | 461 | grub_unregister_extcmd (cmd_read_dword); | 461 | grub_unregister_extcmd (cmd_read_dword); |
2427 | 462 | diff --git a/grub-core/commands/memrw.c b/grub-core/commands/memrw.c | 462 | diff --git a/grub-core/commands/memrw.c b/grub-core/commands/memrw.c |
2429 | 463 | index 98769eadb..088cbe9e2 100644 | 463 | index 98769eadb3..088cbe9e2b 100644 |
2430 | 464 | --- a/grub-core/commands/memrw.c | 464 | --- a/grub-core/commands/memrw.c |
2431 | 465 | +++ b/grub-core/commands/memrw.c | 465 | +++ b/grub-core/commands/memrw.c |
2432 | 466 | @@ -22,6 +22,7 @@ | 466 | @@ -22,6 +22,7 @@ |
2433 | @@ -492,7 +492,7 @@ index 98769eadb..088cbe9e2 100644 | |||
2434 | 492 | grub_unregister_extcmd (cmd_read_word); | 492 | grub_unregister_extcmd (cmd_read_word); |
2435 | 493 | grub_unregister_extcmd (cmd_read_dword); | 493 | grub_unregister_extcmd (cmd_read_dword); |
2436 | 494 | diff --git a/grub-core/kern/arm/coreboot/coreboot.S b/grub-core/kern/arm/coreboot/coreboot.S | 494 | diff --git a/grub-core/kern/arm/coreboot/coreboot.S b/grub-core/kern/arm/coreboot/coreboot.S |
2438 | 495 | index a1104526c..70998c066 100644 | 495 | index a1104526c1..70998c066a 100644 |
2439 | 496 | --- a/grub-core/kern/arm/coreboot/coreboot.S | 496 | --- a/grub-core/kern/arm/coreboot/coreboot.S |
2440 | 497 | +++ b/grub-core/kern/arm/coreboot/coreboot.S | 497 | +++ b/grub-core/kern/arm/coreboot/coreboot.S |
2441 | 498 | @@ -42,3 +42,9 @@ FUNCTION(grub_armv7_get_timer_frequency) | 498 | @@ -42,3 +42,9 @@ FUNCTION(grub_armv7_get_timer_frequency) |
2442 | @@ -506,7 +506,7 @@ index a1104526c..70998c066 100644 | |||
2443 | 506 | + void *kernel_param); | 506 | + void *kernel_param); |
2444 | 507 | + | 507 | + |
2445 | 508 | diff --git a/grub-core/kern/dl.c b/grub-core/kern/dl.c | 508 | diff --git a/grub-core/kern/dl.c b/grub-core/kern/dl.c |
2447 | 509 | index 074dfc3c6..d665c10fc 100644 | 509 | index 074dfc3c6f..d665c10fcc 100644 |
2448 | 510 | --- a/grub-core/kern/dl.c | 510 | --- a/grub-core/kern/dl.c |
2449 | 511 | +++ b/grub-core/kern/dl.c | 511 | +++ b/grub-core/kern/dl.c |
2450 | 512 | @@ -32,6 +32,7 @@ | 512 | @@ -32,6 +32,7 @@ |
2451 | @@ -518,7 +518,7 @@ index 074dfc3c6..d665c10fc 100644 | |||
2452 | 518 | /* Platforms where modules are in a readonly area of memory. */ | 518 | /* Platforms where modules are in a readonly area of memory. */ |
2453 | 519 | #if defined(GRUB_MACHINE_QEMU) | 519 | #if defined(GRUB_MACHINE_QEMU) |
2454 | 520 | diff --git a/grub-core/kern/efi/efi.c b/grub-core/kern/efi/efi.c | 520 | diff --git a/grub-core/kern/efi/efi.c b/grub-core/kern/efi/efi.c |
2456 | 521 | index 96204e39b..6e1ceb905 100644 | 521 | index 96204e39b9..6e1ceb9051 100644 |
2457 | 522 | --- a/grub-core/kern/efi/efi.c | 522 | --- a/grub-core/kern/efi/efi.c |
2458 | 523 | +++ b/grub-core/kern/efi/efi.c | 523 | +++ b/grub-core/kern/efi/efi.c |
2459 | 524 | @@ -273,34 +273,6 @@ grub_efi_get_variable (const char *var, const grub_efi_guid_t *guid, | 524 | @@ -273,34 +273,6 @@ grub_efi_get_variable (const char *var, const grub_efi_guid_t *guid, |
2460 | @@ -557,7 +557,7 @@ index 96204e39b..6e1ceb905 100644 | |||
2461 | 557 | 557 | ||
2462 | 558 | /* Search the mods section from the PE32/PE32+ image. This code uses | 558 | /* Search the mods section from the PE32/PE32+ image. This code uses |
2463 | 559 | diff --git a/grub-core/kern/efi/mm.c b/grub-core/kern/efi/mm.c | 559 | diff --git a/grub-core/kern/efi/mm.c b/grub-core/kern/efi/mm.c |
2465 | 560 | index b02fab1b1..a9e37108c 100644 | 560 | index b02fab1b10..a9e37108c6 100644 |
2466 | 561 | --- a/grub-core/kern/efi/mm.c | 561 | --- a/grub-core/kern/efi/mm.c |
2467 | 562 | +++ b/grub-core/kern/efi/mm.c | 562 | +++ b/grub-core/kern/efi/mm.c |
2468 | 563 | @@ -113,6 +113,38 @@ grub_efi_drop_alloc (grub_efi_physical_address_t address, | 563 | @@ -113,6 +113,38 @@ grub_efi_drop_alloc (grub_efi_physical_address_t address, |
2469 | @@ -601,7 +601,7 @@ index b02fab1b1..a9e37108c 100644 | |||
2470 | 601 | grub_efi_allocate_pages_real (grub_efi_physical_address_t address, | 601 | grub_efi_allocate_pages_real (grub_efi_physical_address_t address, |
2471 | 602 | diff --git a/grub-core/kern/efi/sb.c b/grub-core/kern/efi/sb.c | 602 | diff --git a/grub-core/kern/efi/sb.c b/grub-core/kern/efi/sb.c |
2472 | 603 | new file mode 100644 | 603 | new file mode 100644 |
2474 | 604 | index 000000000..c14f401d7 | 604 | index 0000000000..c14f401d7e |
2475 | 605 | --- /dev/null | 605 | --- /dev/null |
2476 | 606 | +++ b/grub-core/kern/efi/sb.c | 606 | +++ b/grub-core/kern/efi/sb.c |
2477 | 607 | @@ -0,0 +1,66 @@ | 607 | @@ -0,0 +1,66 @@ |
2478 | @@ -672,7 +672,7 @@ index 000000000..c14f401d7 | |||
2479 | 672 | +#endif | 672 | +#endif |
2480 | 673 | +} | 673 | +} |
2481 | 674 | diff --git a/grub-core/loader/arm64/linux.c b/grub-core/loader/arm64/linux.c | 674 | diff --git a/grub-core/loader/arm64/linux.c b/grub-core/loader/arm64/linux.c |
2483 | 675 | index ef3e9f944..1a5296a60 100644 | 675 | index ef3e9f9444..1a5296a60c 100644 |
2484 | 676 | --- a/grub-core/loader/arm64/linux.c | 676 | --- a/grub-core/loader/arm64/linux.c |
2485 | 677 | +++ b/grub-core/loader/arm64/linux.c | 677 | +++ b/grub-core/loader/arm64/linux.c |
2486 | 678 | @@ -27,6 +27,7 @@ | 678 | @@ -27,6 +27,7 @@ |
2487 | @@ -720,7 +720,7 @@ index ef3e9f944..1a5296a60 100644 | |||
2488 | 720 | linux_args = grub_malloc (cmdline_size); | 720 | linux_args = grub_malloc (cmdline_size); |
2489 | 721 | if (!linux_args) | 721 | if (!linux_args) |
2490 | 722 | diff --git a/grub-core/loader/efi/appleloader.c b/grub-core/loader/efi/appleloader.c | 722 | diff --git a/grub-core/loader/efi/appleloader.c b/grub-core/loader/efi/appleloader.c |
2492 | 723 | index 74888c463..69c2a10d3 100644 | 723 | index 74888c463b..69c2a10d35 100644 |
2493 | 724 | --- a/grub-core/loader/efi/appleloader.c | 724 | --- a/grub-core/loader/efi/appleloader.c |
2494 | 725 | +++ b/grub-core/loader/efi/appleloader.c | 725 | +++ b/grub-core/loader/efi/appleloader.c |
2495 | 726 | @@ -24,6 +24,7 @@ | 726 | @@ -24,6 +24,7 @@ |
2496 | @@ -751,7 +751,7 @@ index 74888c463..69c2a10d3 100644 | |||
2497 | 751 | grub_unregister_command (cmd); | 751 | grub_unregister_command (cmd); |
2498 | 752 | } | 752 | } |
2499 | 753 | diff --git a/grub-core/loader/efi/chainloader.c b/grub-core/loader/efi/chainloader.c | 753 | diff --git a/grub-core/loader/efi/chainloader.c b/grub-core/loader/efi/chainloader.c |
2501 | 754 | index cd92ea3f2..ec80f415b 100644 | 754 | index cd92ea3f24..ec80f415b8 100644 |
2502 | 755 | --- a/grub-core/loader/efi/chainloader.c | 755 | --- a/grub-core/loader/efi/chainloader.c |
2503 | 756 | +++ b/grub-core/loader/efi/chainloader.c | 756 | +++ b/grub-core/loader/efi/chainloader.c |
2504 | 757 | @@ -32,6 +32,9 @@ | 757 | @@ -32,6 +32,9 @@ |
2505 | @@ -1701,7 +1701,7 @@ index cd92ea3f2..ec80f415b 100644 | |||
2506 | 1701 | 1701 | ||
2507 | 1702 | return grub_errno; | 1702 | return grub_errno; |
2508 | 1703 | diff --git a/grub-core/loader/efi/fdt.c b/grub-core/loader/efi/fdt.c | 1703 | diff --git a/grub-core/loader/efi/fdt.c b/grub-core/loader/efi/fdt.c |
2510 | 1704 | index f0c2d91be..5360e6c1f 100644 | 1704 | index f0c2d91be2..5360e6c1f7 100644 |
2511 | 1705 | --- a/grub-core/loader/efi/fdt.c | 1705 | --- a/grub-core/loader/efi/fdt.c |
2512 | 1706 | +++ b/grub-core/loader/efi/fdt.c | 1706 | +++ b/grub-core/loader/efi/fdt.c |
2513 | 1707 | @@ -25,6 +25,7 @@ | 1707 | @@ -25,6 +25,7 @@ |
2514 | @@ -1714,7 +1714,7 @@ index f0c2d91be..5360e6c1f 100644 | |||
2515 | 1714 | static void *fdt; | 1714 | static void *fdt; |
2516 | 1715 | diff --git a/grub-core/loader/efi/linux.c b/grub-core/loader/efi/linux.c | 1715 | diff --git a/grub-core/loader/efi/linux.c b/grub-core/loader/efi/linux.c |
2517 | 1716 | new file mode 100644 | 1716 | new file mode 100644 |
2519 | 1717 | index 000000000..e372b26a1 | 1717 | index 0000000000..e372b26a1b |
2520 | 1718 | --- /dev/null | 1718 | --- /dev/null |
2521 | 1719 | +++ b/grub-core/loader/efi/linux.c | 1719 | +++ b/grub-core/loader/efi/linux.c |
2522 | 1720 | @@ -0,0 +1,86 @@ | 1720 | @@ -0,0 +1,86 @@ |
2523 | @@ -1805,7 +1805,7 @@ index 000000000..e372b26a1 | |||
2524 | 1805 | + return GRUB_ERR_BUG; | 1805 | + return GRUB_ERR_BUG; |
2525 | 1806 | +} | 1806 | +} |
2526 | 1807 | diff --git a/grub-core/loader/i386/bsd.c b/grub-core/loader/i386/bsd.c | 1807 | diff --git a/grub-core/loader/i386/bsd.c b/grub-core/loader/i386/bsd.c |
2528 | 1808 | index 3730ed382..5b9b92d6b 100644 | 1808 | index 3730ed3824..5b9b92d6ba 100644 |
2529 | 1809 | --- a/grub-core/loader/i386/bsd.c | 1809 | --- a/grub-core/loader/i386/bsd.c |
2530 | 1810 | +++ b/grub-core/loader/i386/bsd.c | 1810 | +++ b/grub-core/loader/i386/bsd.c |
2531 | 1811 | @@ -39,6 +39,7 @@ | 1811 | @@ -39,6 +39,7 @@ |
2532 | @@ -1838,7 +1838,7 @@ index 3730ed382..5b9b92d6b 100644 | |||
2533 | 1838 | grub_unregister_extcmd (cmd_netbsd); | 1838 | grub_unregister_extcmd (cmd_netbsd); |
2534 | 1839 | diff --git a/grub-core/loader/i386/efi/linux.c b/grub-core/loader/i386/efi/linux.c | 1839 | diff --git a/grub-core/loader/i386/efi/linux.c b/grub-core/loader/i386/efi/linux.c |
2535 | 1840 | new file mode 100644 | 1840 | new file mode 100644 |
2537 | 1841 | index 000000000..6b6aef87f | 1841 | index 0000000000..6b6aef87f7 |
2538 | 1842 | --- /dev/null | 1842 | --- /dev/null |
2539 | 1843 | +++ b/grub-core/loader/i386/efi/linux.c | 1843 | +++ b/grub-core/loader/i386/efi/linux.c |
2540 | 1844 | @@ -0,0 +1,379 @@ | 1844 | @@ -0,0 +1,379 @@ |
2541 | @@ -2222,7 +2222,7 @@ index 000000000..6b6aef87f | |||
2542 | 2222 | + grub_unregister_command (cmd_initrd); | 2222 | + grub_unregister_command (cmd_initrd); |
2543 | 2223 | +} | 2223 | +} |
2544 | 2224 | diff --git a/grub-core/loader/i386/linux.c b/grub-core/loader/i386/linux.c | 2224 | diff --git a/grub-core/loader/i386/linux.c b/grub-core/loader/i386/linux.c |
2546 | 2225 | index d0501e229..4328bcbdb 100644 | 2225 | index d0501e2295..4328bcbdb0 100644 |
2547 | 2226 | --- a/grub-core/loader/i386/linux.c | 2226 | --- a/grub-core/loader/i386/linux.c |
2548 | 2227 | +++ b/grub-core/loader/i386/linux.c | 2227 | +++ b/grub-core/loader/i386/linux.c |
2549 | 2228 | @@ -45,6 +45,7 @@ GRUB_MOD_LICENSE ("GPLv3+"); | 2228 | @@ -45,6 +45,7 @@ GRUB_MOD_LICENSE ("GPLv3+"); |
2550 | @@ -2390,7 +2390,7 @@ index d0501e229..4328bcbdb 100644 | |||
2551 | 2390 | { | 2390 | { |
2552 | 2391 | grub_error (GRUB_ERR_BAD_ARGUMENT, N_("filename expected")); | 2391 | grub_error (GRUB_ERR_BAD_ARGUMENT, N_("filename expected")); |
2553 | 2392 | diff --git a/grub-core/loader/i386/pc/linux.c b/grub-core/loader/i386/pc/linux.c | 2392 | diff --git a/grub-core/loader/i386/pc/linux.c b/grub-core/loader/i386/pc/linux.c |
2555 | 2393 | index 47ea2945e..3866f048b 100644 | 2393 | index 47ea2945e4..3866f048bb 100644 |
2556 | 2394 | --- a/grub-core/loader/i386/pc/linux.c | 2394 | --- a/grub-core/loader/i386/pc/linux.c |
2557 | 2395 | +++ b/grub-core/loader/i386/pc/linux.c | 2395 | +++ b/grub-core/loader/i386/pc/linux.c |
2558 | 2396 | @@ -35,6 +35,7 @@ | 2396 | @@ -35,6 +35,7 @@ |
2559 | @@ -2503,7 +2503,7 @@ index 47ea2945e..3866f048b 100644 | |||
2560 | 2503 | grub_unregister_command (cmd_initrd); | 2503 | grub_unregister_command (cmd_initrd); |
2561 | 2504 | } | 2504 | } |
2562 | 2505 | diff --git a/grub-core/loader/multiboot.c b/grub-core/loader/multiboot.c | 2505 | diff --git a/grub-core/loader/multiboot.c b/grub-core/loader/multiboot.c |
2564 | 2506 | index 4a98d7082..3e6ad166d 100644 | 2506 | index 4a98d70825..3e6ad166dc 100644 |
2565 | 2507 | --- a/grub-core/loader/multiboot.c | 2507 | --- a/grub-core/loader/multiboot.c |
2566 | 2508 | +++ b/grub-core/loader/multiboot.c | 2508 | +++ b/grub-core/loader/multiboot.c |
2567 | 2509 | @@ -50,6 +50,7 @@ | 2509 | @@ -50,6 +50,7 @@ |
2568 | @@ -2535,7 +2535,7 @@ index 4a98d7082..3e6ad166d 100644 | |||
2569 | 2535 | grub_unregister_command (cmd_module); | 2535 | grub_unregister_command (cmd_module); |
2570 | 2536 | } | 2536 | } |
2571 | 2537 | diff --git a/grub-core/loader/xnu.c b/grub-core/loader/xnu.c | 2537 | diff --git a/grub-core/loader/xnu.c b/grub-core/loader/xnu.c |
2573 | 2538 | index 7f74d1d6f..e0f47e72b 100644 | 2538 | index 7f74d1d6fc..e0f47e72b0 100644 |
2574 | 2539 | --- a/grub-core/loader/xnu.c | 2539 | --- a/grub-core/loader/xnu.c |
2575 | 2540 | +++ b/grub-core/loader/xnu.c | 2540 | +++ b/grub-core/loader/xnu.c |
2576 | 2541 | @@ -34,6 +34,7 @@ | 2541 | @@ -34,6 +34,7 @@ |
2577 | @@ -2567,7 +2567,7 @@ index 7f74d1d6f..e0f47e72b 100644 | |||
2578 | 2567 | grub_unregister_command (cmd_resume); | 2567 | grub_unregister_command (cmd_resume); |
2579 | 2568 | #endif | 2568 | #endif |
2580 | 2569 | diff --git a/include/grub/arm64/linux.h b/include/grub/arm64/linux.h | 2569 | diff --git a/include/grub/arm64/linux.h b/include/grub/arm64/linux.h |
2582 | 2570 | index 4269adc6d..cc8174ccd 100644 | 2570 | index 4269adc6da..cc8174ccdf 100644 |
2583 | 2571 | --- a/include/grub/arm64/linux.h | 2571 | --- a/include/grub/arm64/linux.h |
2584 | 2572 | +++ b/include/grub/arm64/linux.h | 2572 | +++ b/include/grub/arm64/linux.h |
2585 | 2573 | @@ -20,6 +20,8 @@ | 2573 | @@ -20,6 +20,8 @@ |
2586 | @@ -2580,7 +2580,7 @@ index 4269adc6d..cc8174ccd 100644 | |||
2587 | 2580 | /* From linux/Documentation/arm64/booting.txt */ | 2580 | /* From linux/Documentation/arm64/booting.txt */ |
2588 | 2581 | struct linux_arm64_kernel_header | 2581 | struct linux_arm64_kernel_header |
2589 | 2582 | diff --git a/include/grub/efi/efi.h b/include/grub/efi/efi.h | 2582 | diff --git a/include/grub/efi/efi.h b/include/grub/efi/efi.h |
2591 | 2583 | index a237952b3..5b6387581 100644 | 2583 | index a237952b37..5b63875812 100644 |
2592 | 2584 | --- a/include/grub/efi/efi.h | 2584 | --- a/include/grub/efi/efi.h |
2593 | 2585 | +++ b/include/grub/efi/efi.h | 2585 | +++ b/include/grub/efi/efi.h |
2594 | 2586 | @@ -47,6 +47,9 @@ EXPORT_FUNC(grub_efi_allocate_fixed) (grub_efi_physical_address_t address, | 2586 | @@ -47,6 +47,9 @@ EXPORT_FUNC(grub_efi_allocate_fixed) (grub_efi_physical_address_t address, |
2595 | @@ -2603,7 +2603,7 @@ index a237952b3..5b6387581 100644 | |||
2596 | 2603 | const grub_efi_device_path_t *dp2); | 2603 | const grub_efi_device_path_t *dp2); |
2597 | 2604 | diff --git a/include/grub/efi/linux.h b/include/grub/efi/linux.h | 2604 | diff --git a/include/grub/efi/linux.h b/include/grub/efi/linux.h |
2598 | 2605 | new file mode 100644 | 2605 | new file mode 100644 |
2600 | 2606 | index 000000000..0033d9305 | 2606 | index 0000000000..0033d9305a |
2601 | 2607 | --- /dev/null | 2607 | --- /dev/null |
2602 | 2608 | +++ b/include/grub/efi/linux.h | 2608 | +++ b/include/grub/efi/linux.h |
2603 | 2609 | @@ -0,0 +1,31 @@ | 2609 | @@ -0,0 +1,31 @@ |
2604 | @@ -2639,7 +2639,7 @@ index 000000000..0033d9305 | |||
2605 | 2639 | + | 2639 | + |
2606 | 2640 | +#endif /* ! GRUB_EFI_LINUX_HEADER */ | 2640 | +#endif /* ! GRUB_EFI_LINUX_HEADER */ |
2607 | 2641 | diff --git a/include/grub/efi/pe32.h b/include/grub/efi/pe32.h | 2641 | diff --git a/include/grub/efi/pe32.h b/include/grub/efi/pe32.h |
2609 | 2642 | index 0ed8781f0..a43adf274 100644 | 2642 | index 0ed8781f03..a43adf2746 100644 |
2610 | 2643 | --- a/include/grub/efi/pe32.h | 2643 | --- a/include/grub/efi/pe32.h |
2611 | 2644 | +++ b/include/grub/efi/pe32.h | 2644 | +++ b/include/grub/efi/pe32.h |
2612 | 2645 | @@ -223,7 +223,11 @@ struct grub_pe64_optional_header | 2645 | @@ -223,7 +223,11 @@ struct grub_pe64_optional_header |
2613 | @@ -2730,7 +2730,7 @@ index 0ed8781f0..a43adf274 100644 | |||
2614 | 2730 | grub_uint32_t page_rva; | 2730 | grub_uint32_t page_rva; |
2615 | 2731 | diff --git a/include/grub/efi/sb.h b/include/grub/efi/sb.h | 2731 | diff --git a/include/grub/efi/sb.h b/include/grub/efi/sb.h |
2616 | 2732 | new file mode 100644 | 2732 | new file mode 100644 |
2618 | 2733 | index 000000000..9629fbb0f | 2733 | index 0000000000..9629fbb0f9 |
2619 | 2734 | --- /dev/null | 2734 | --- /dev/null |
2620 | 2735 | +++ b/include/grub/efi/sb.h | 2735 | +++ b/include/grub/efi/sb.h |
2621 | 2736 | @@ -0,0 +1,29 @@ | 2736 | @@ -0,0 +1,29 @@ |
2622 | @@ -2764,7 +2764,7 @@ index 000000000..9629fbb0f | |||
2623 | 2764 | + | 2764 | + |
2624 | 2765 | +#endif /* ! GRUB_EFI_SB_HEADER */ | 2765 | +#endif /* ! GRUB_EFI_SB_HEADER */ |
2625 | 2766 | diff --git a/include/grub/i386/linux.h b/include/grub/i386/linux.h | 2766 | diff --git a/include/grub/i386/linux.h b/include/grub/i386/linux.h |
2627 | 2767 | index ce30e7fb0..a093679cb 100644 | 2767 | index ce30e7fb01..a093679cb8 100644 |
2628 | 2768 | --- a/include/grub/i386/linux.h | 2768 | --- a/include/grub/i386/linux.h |
2629 | 2769 | +++ b/include/grub/i386/linux.h | 2769 | +++ b/include/grub/i386/linux.h |
2630 | 2770 | @@ -136,7 +136,12 @@ struct linux_i386_kernel_header | 2770 | @@ -136,7 +136,12 @@ struct linux_i386_kernel_header |
2631 | @@ -2783,13 +2783,13 @@ index ce30e7fb0..a093679cb 100644 | |||
2632 | 2783 | grub_uint64_t hardware_subarch_data; | 2783 | grub_uint64_t hardware_subarch_data; |
2633 | 2784 | diff --git a/include/grub/ia64/linux.h b/include/grub/ia64/linux.h | 2784 | diff --git a/include/grub/ia64/linux.h b/include/grub/ia64/linux.h |
2634 | 2785 | new file mode 100644 | 2785 | new file mode 100644 |
2636 | 2786 | index 000000000..e69de29bb | 2786 | index 0000000000..e69de29bb2 |
2637 | 2787 | diff --git a/include/grub/mips/linux.h b/include/grub/mips/linux.h | 2787 | diff --git a/include/grub/mips/linux.h b/include/grub/mips/linux.h |
2638 | 2788 | new file mode 100644 | 2788 | new file mode 100644 |
2640 | 2789 | index 000000000..e69de29bb | 2789 | index 0000000000..e69de29bb2 |
2641 | 2790 | diff --git a/include/grub/powerpc/linux.h b/include/grub/powerpc/linux.h | 2790 | diff --git a/include/grub/powerpc/linux.h b/include/grub/powerpc/linux.h |
2642 | 2791 | new file mode 100644 | 2791 | new file mode 100644 |
2644 | 2792 | index 000000000..e69de29bb | 2792 | index 0000000000..e69de29bb2 |
2645 | 2793 | diff --git a/include/grub/sparc64/linux.h b/include/grub/sparc64/linux.h | 2793 | diff --git a/include/grub/sparc64/linux.h b/include/grub/sparc64/linux.h |
2646 | 2794 | new file mode 100644 | 2794 | new file mode 100644 |
2648 | 2795 | index 000000000..e69de29bb | 2795 | index 0000000000..e69de29bb2 |
2649 | diff --git a/debian/patches/ubuntu-mkconfig-leave-breadcrumbs.patch b/debian/patches/ubuntu-mkconfig-leave-breadcrumbs.patch | |||
2650 | index 0f51703..451de30 100644 | |||
2651 | --- a/debian/patches/ubuntu-mkconfig-leave-breadcrumbs.patch | |||
2652 | +++ b/debian/patches/ubuntu-mkconfig-leave-breadcrumbs.patch | |||
2653 | @@ -1,4 +1,4 @@ | |||
2655 | 1 | From 7d3dea454253718d765c5dea62b893c5d5ef10ec Mon Sep 17 00:00:00 2001 | 1 | From f78a4044403841f4685924aa59cda87b8ffd4126 Mon Sep 17 00:00:00 2001 |
2656 | 2 | From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> | 2 | From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> |
2657 | 3 | Date: Fri, 14 Dec 2018 13:46:14 -0500 | 3 | Date: Fri, 14 Dec 2018 13:46:14 -0500 |
2658 | 4 | Subject: UBUNTU: grub-mkconfig: leave a trace of what files were sourced to | 4 | Subject: UBUNTU: grub-mkconfig: leave a trace of what files were sourced to |
2659 | @@ -11,7 +11,7 @@ Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> | |||
2660 | 11 | 1 file changed, 2 insertions(+) | 11 | 1 file changed, 2 insertions(+) |
2661 | 12 | 12 | ||
2662 | 13 | diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in | 13 | diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in |
2664 | 14 | index 29bdad0c1..72f1e25a0 100644 | 14 | index 29bdad0c12..72f1e25a03 100644 |
2665 | 15 | --- a/util/grub-mkconfig.in | 15 | --- a/util/grub-mkconfig.in |
2666 | 16 | +++ b/util/grub-mkconfig.in | 16 | +++ b/util/grub-mkconfig.in |
2667 | 17 | @@ -162,10 +162,12 @@ if [ "x${GRUB_EARLY_INITRD_LINUX_STOCK}" = "x" ]; then | 17 | @@ -162,10 +162,12 @@ if [ "x${GRUB_EARLY_INITRD_LINUX_STOCK}" = "x" ]; then |
2668 | diff --git a/debian/patches/ubuntu-recovery-dis_ucode_ldr.patch b/debian/patches/ubuntu-recovery-dis_ucode_ldr.patch | |||
2669 | 18 | new file mode 100644 | 18 | new file mode 100644 |
2670 | index 0000000..b387494 | |||
2671 | --- /dev/null | |||
2672 | +++ b/debian/patches/ubuntu-recovery-dis_ucode_ldr.patch | |||
2673 | @@ -0,0 +1,84 @@ | |||
2674 | 1 | From 3eb630e8f5eddee6e6160e1f2bb33ce7c5f8762b Mon Sep 17 00:00:00 2001 | ||
2675 | 2 | From: Julian Andres Klode <julian.klode@canonical.com> | ||
2676 | 3 | Date: Fri, 19 Jun 2020 12:57:19 +0200 | ||
2677 | 4 | Subject: Pass dis_ucode_ldr to kernel for recovery mode | ||
2678 | 5 | |||
2679 | 6 | In case of a botched microcode update, this allows people to | ||
2680 | 7 | easily roll back. | ||
2681 | 8 | |||
2682 | 9 | It will of course break in the more unlikely event that you are | ||
2683 | 10 | missing a microcode update in your firmware that is needed to boot | ||
2684 | 11 | the system, but editing the entry to remove an option is easier than | ||
2685 | 12 | having to figure out the option and add it. | ||
2686 | 13 | |||
2687 | 14 | LP: #1831789 | ||
2688 | 15 | Patch-Name: ubuntu-recovery-dis_ucode_ldr.patch | ||
2689 | 16 | --- | ||
2690 | 17 | util/grub.d/10_linux.in | 4 ++++ | ||
2691 | 18 | util/grub.d/10_linux_zfs.in | 24 +++++++++++++++--------- | ||
2692 | 19 | 2 files changed, 19 insertions(+), 9 deletions(-) | ||
2693 | 20 | |||
2694 | 21 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in | ||
2695 | 22 | index 14a89ba13d..49e627228f 100644 | ||
2696 | 23 | --- a/util/grub.d/10_linux.in | ||
2697 | 24 | +++ b/util/grub.d/10_linux.in | ||
2698 | 25 | @@ -334,6 +334,10 @@ case "$machine" in | ||
2699 | 26 | *) GENKERNEL_ARCH="$machine" ;; | ||
2700 | 27 | esac | ||
2701 | 28 | |||
2702 | 29 | +case "$GENKERNEL_ARCH" in | ||
2703 | 30 | + x86*) GRUB_CMDLINE_LINUX_RECOVERY="$GRUB_CMDLINE_LINUX_RECOVERY dis_ucode_ldr";; | ||
2704 | 31 | +esac | ||
2705 | 32 | + | ||
2706 | 33 | prepare_boot_cache= | ||
2707 | 34 | prepare_root_cache= | ||
2708 | 35 | boot_device_id= | ||
2709 | 36 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in | ||
2710 | 37 | index 712d832802..d9b79e29a7 100755 | ||
2711 | 38 | --- a/util/grub.d/10_linux_zfs.in | ||
2712 | 39 | +++ b/util/grub.d/10_linux_zfs.in | ||
2713 | 40 | @@ -41,6 +41,16 @@ imported_pools="" | ||
2714 | 41 | MNTDIR="$(mktemp -d ${TMPDIR:-/tmp}/zfsmnt.XXXXXX)" | ||
2715 | 42 | ZFSTMP="$(mktemp -d ${TMPDIR:-/tmp}/zfstmp.XXXXXX)" | ||
2716 | 43 | |||
2717 | 44 | + | ||
2718 | 45 | +machine="$(uname -m)" | ||
2719 | 46 | +case "${machine}" in | ||
2720 | 47 | + i?86) GENKERNEL_ARCH="x86" ;; | ||
2721 | 48 | + mips|mips64) GENKERNEL_ARCH="mips" ;; | ||
2722 | 49 | + mipsel|mips64el) GENKERNEL_ARCH="mipsel" ;; | ||
2723 | 50 | + arm*) GENKERNEL_ARCH="arm" ;; | ||
2724 | 51 | + *) GENKERNEL_ARCH="${machine}" ;; | ||
2725 | 52 | +esac | ||
2726 | 53 | + | ||
2727 | 54 | RC=0 | ||
2728 | 55 | on_exit() { | ||
2729 | 56 | # Restore initial zpool import state | ||
2730 | 57 | @@ -407,15 +417,6 @@ get_dataset_info() { | ||
2731 | 58 | return | ||
2732 | 59 | fi | ||
2733 | 60 | |||
2734 | 61 | - machine="$(uname -m)" | ||
2735 | 62 | - case "${machine}" in | ||
2736 | 63 | - i?86) GENKERNEL_ARCH="x86" ;; | ||
2737 | 64 | - mips|mips64) GENKERNEL_ARCH="mips" ;; | ||
2738 | 65 | - mipsel|mips64el) GENKERNEL_ARCH="mipsel" ;; | ||
2739 | 66 | - arm*) GENKERNEL_ARCH="arm" ;; | ||
2740 | 67 | - *) GENKERNEL_ARCH="${machine}" ;; | ||
2741 | 68 | - esac | ||
2742 | 69 | - | ||
2743 | 70 | initrd_list="" | ||
2744 | 71 | kernel_list="" | ||
2745 | 72 | list=$(find "${boot_dir}" -maxdepth 1 -type f -regex '.*/\(vmlinuz\|vmlinux\|kernel\)-.*') | ||
2746 | 73 | @@ -907,6 +908,11 @@ generate_grub_menu() { | ||
2747 | 74 | GRUB_CMDLINE_LINUX_RECOVERY="${GRUB_CMDLINE_LINUX_RECOVERY} nomodeset" | ||
2748 | 75 | fi | ||
2749 | 76 | |||
2750 | 77 | + case "$GENKERNEL_ARCH" in | ||
2751 | 78 | + x86*) GRUB_CMDLINE_LINUX_RECOVERY="$GRUB_CMDLINE_LINUX_RECOVERY dis_ucode_ldr";; | ||
2752 | 79 | + esac | ||
2753 | 80 | + | ||
2754 | 81 | + | ||
2755 | 82 | if [ "${vt_handoff}" = 1 ]; then | ||
2756 | 83 | for word in ${GRUB_CMDLINE_LINUX_DEFAULT}; do | ||
2757 | 84 | if [ "${word}" = splash ]; then | ||
2758 | diff --git a/debian/patches/ubuntu-resilient-boot-boot-order.patch b/debian/patches/ubuntu-resilient-boot-boot-order.patch | |||
2759 | index 89de3c2..6583945 100644 | |||
2760 | --- a/debian/patches/ubuntu-resilient-boot-boot-order.patch | |||
2761 | +++ b/debian/patches/ubuntu-resilient-boot-boot-order.patch | |||
2762 | @@ -1,4 +1,4 @@ | |||
2764 | 1 | From dcd35364b7789ebb00a645b4fe35e0605ec141ef Mon Sep 17 00:00:00 2001 | 1 | From 7a471059af0b7a511d51d43a26662c6424d88f56 Mon Sep 17 00:00:00 2001 |
2765 | 2 | From: Julian Andres Klode <julian.klode@canonical.com> | 2 | From: Julian Andres Klode <julian.klode@canonical.com> |
2766 | 3 | Date: Wed, 8 Apr 2020 11:05:25 +0200 | 3 | Date: Wed, 8 Apr 2020 11:05:25 +0200 |
2767 | 4 | Subject: UBUNTU: efivar: Correctly handle boot order of multiple ESPs | 4 | Subject: UBUNTU: efivar: Correctly handle boot order of multiple ESPs |
2768 | @@ -30,7 +30,7 @@ Patch-Name: ubuntu-resilient-boot-boot-order.patch | |||
2769 | 30 | 6 files changed, 59 insertions(+), 24 deletions(-) | 30 | 6 files changed, 59 insertions(+), 24 deletions(-) |
2770 | 31 | 31 | ||
2771 | 32 | diff --git a/grub-core/osdep/basic/no_platform.c b/grub-core/osdep/basic/no_platform.c | 32 | diff --git a/grub-core/osdep/basic/no_platform.c b/grub-core/osdep/basic/no_platform.c |
2773 | 33 | index d76c34c14..152a32873 100644 | 33 | index d76c34c148..152a328737 100644 |
2774 | 34 | --- a/grub-core/osdep/basic/no_platform.c | 34 | --- a/grub-core/osdep/basic/no_platform.c |
2775 | 35 | +++ b/grub-core/osdep/basic/no_platform.c | 35 | +++ b/grub-core/osdep/basic/no_platform.c |
2776 | 36 | @@ -31,7 +31,7 @@ grub_install_register_ieee1275 (int is_prep, const char *install_device, | 36 | @@ -31,7 +31,7 @@ grub_install_register_ieee1275 (int is_prep, const char *install_device, |
2777 | @@ -43,7 +43,7 @@ index d76c34c14..152a32873 100644 | |||
2778 | 43 | const char *efi_distributor) | 43 | const char *efi_distributor) |
2779 | 44 | { | 44 | { |
2780 | 45 | diff --git a/grub-core/osdep/unix/efivar.c b/grub-core/osdep/unix/efivar.c | 45 | diff --git a/grub-core/osdep/unix/efivar.c b/grub-core/osdep/unix/efivar.c |
2782 | 46 | index 41d39c448..d34df0f70 100644 | 46 | index 41d39c4489..d34df0f70f 100644 |
2783 | 47 | --- a/grub-core/osdep/unix/efivar.c | 47 | --- a/grub-core/osdep/unix/efivar.c |
2784 | 48 | +++ b/grub-core/osdep/unix/efivar.c | 48 | +++ b/grub-core/osdep/unix/efivar.c |
2785 | 49 | @@ -266,9 +266,10 @@ remove_from_boot_order (struct efi_variable *order, uint16_t num) | 49 | @@ -266,9 +266,10 @@ remove_from_boot_order (struct efi_variable *order, uint16_t num) |
2786 | @@ -142,7 +142,7 @@ index 41d39c448..d34df0f70 100644 | |||
2787 | 142 | grub_util_info ("setting EFI variable BootOrder"); | 142 | grub_util_info ("setting EFI variable BootOrder"); |
2788 | 143 | rc = set_efi_variable ("BootOrder", order); | 143 | rc = set_efi_variable ("BootOrder", order); |
2789 | 144 | diff --git a/grub-core/osdep/unix/platform.c b/grub-core/osdep/unix/platform.c | 144 | diff --git a/grub-core/osdep/unix/platform.c b/grub-core/osdep/unix/platform.c |
2791 | 145 | index b561174ea..a5267db68 100644 | 145 | index b561174ea9..a5267db68d 100644 |
2792 | 146 | --- a/grub-core/osdep/unix/platform.c | 146 | --- a/grub-core/osdep/unix/platform.c |
2793 | 147 | +++ b/grub-core/osdep/unix/platform.c | 147 | +++ b/grub-core/osdep/unix/platform.c |
2794 | 148 | @@ -76,13 +76,13 @@ get_ofpathname (const char *dev) | 148 | @@ -76,13 +76,13 @@ get_ofpathname (const char *dev) |
2795 | @@ -163,7 +163,7 @@ index b561174ea..a5267db68 100644 | |||
2796 | 163 | grub_util_error ("%s", | 163 | grub_util_error ("%s", |
2797 | 164 | _("GRUB was not built with efivar support; " | 164 | _("GRUB was not built with efivar support; " |
2798 | 165 | diff --git a/grub-core/osdep/windows/platform.c b/grub-core/osdep/windows/platform.c | 165 | diff --git a/grub-core/osdep/windows/platform.c b/grub-core/osdep/windows/platform.c |
2800 | 166 | index e19a3d9a8..a3f738fb9 100644 | 166 | index e19a3d9a8a..a3f738fb9b 100644 |
2801 | 167 | --- a/grub-core/osdep/windows/platform.c | 167 | --- a/grub-core/osdep/windows/platform.c |
2802 | 168 | +++ b/grub-core/osdep/windows/platform.c | 168 | +++ b/grub-core/osdep/windows/platform.c |
2803 | 169 | @@ -208,7 +208,7 @@ set_efi_variable_bootn (grub_uint16_t n, void *in, grub_size_t len) | 169 | @@ -208,7 +208,7 @@ set_efi_variable_bootn (grub_uint16_t n, void *in, grub_size_t len) |
2804 | @@ -176,7 +176,7 @@ index e19a3d9a8..a3f738fb9 100644 | |||
2805 | 176 | const char *efi_distributor) | 176 | const char *efi_distributor) |
2806 | 177 | { | 177 | { |
2807 | 178 | diff --git a/include/grub/util/install.h b/include/grub/util/install.h | 178 | diff --git a/include/grub/util/install.h b/include/grub/util/install.h |
2809 | 179 | index a521f1663..b2ed88e38 100644 | 179 | index a521f1663f..b2ed88e386 100644 |
2810 | 180 | --- a/include/grub/util/install.h | 180 | --- a/include/grub/util/install.h |
2811 | 181 | +++ b/include/grub/util/install.h | 181 | +++ b/include/grub/util/install.h |
2812 | 182 | @@ -219,15 +219,14 @@ grub_install_get_default_x86_platform (void); | 182 | @@ -219,15 +219,14 @@ grub_install_get_default_x86_platform (void); |
2813 | @@ -204,7 +204,7 @@ index a521f1663..b2ed88e38 100644 | |||
2814 | 204 | void | 204 | void |
2815 | 205 | grub_install_register_ieee1275 (int is_prep, const char *install_device, | 205 | grub_install_register_ieee1275 (int is_prep, const char *install_device, |
2816 | 206 | diff --git a/util/grub-install.c b/util/grub-install.c | 206 | diff --git a/util/grub-install.c b/util/grub-install.c |
2818 | 207 | index bf8eb65b3..f408b1986 100644 | 207 | index bf8eb65b33..f408b19860 100644 |
2819 | 208 | --- a/util/grub-install.c | 208 | --- a/util/grub-install.c |
2820 | 209 | +++ b/util/grub-install.c | 209 | +++ b/util/grub-install.c |
2821 | 210 | @@ -2083,9 +2083,9 @@ main (int argc, char *argv[]) | 210 | @@ -2083,9 +2083,9 @@ main (int argc, char *argv[]) |
2822 | diff --git a/debian/patches/ubuntu-resilient-boot-ignore-alternative-esps.patch b/debian/patches/ubuntu-resilient-boot-ignore-alternative-esps.patch | |||
2823 | index 7468ab0..f760c17 100644 | |||
2824 | --- a/debian/patches/ubuntu-resilient-boot-ignore-alternative-esps.patch | |||
2825 | +++ b/debian/patches/ubuntu-resilient-boot-ignore-alternative-esps.patch | |||
2826 | @@ -1,4 +1,4 @@ | |||
2828 | 1 | From 94189259ac860128abfc465fb3a920d60c63a85a Mon Sep 17 00:00:00 2001 | 1 | From 28f4a3b5e80e905042f5e68daa0150015fbdc470 Mon Sep 17 00:00:00 2001 |
2829 | 2 | From: Julian Andres Klode <julian.klode@canonical.com> | 2 | From: Julian Andres Klode <julian.klode@canonical.com> |
2830 | 3 | Date: Fri, 3 Apr 2020 13:43:49 +0200 | 3 | Date: Fri, 3 Apr 2020 13:43:49 +0200 |
2831 | 4 | Subject: UBUNTU: efivar: Ignore alternative ESPs | 4 | Subject: UBUNTU: efivar: Ignore alternative ESPs |
2832 | @@ -13,7 +13,7 @@ Patch-Name: ubuntu-resilient-boot-ignore-alternative-esps.patch | |||
2833 | 13 | 1 file changed, 125 insertions(+), 5 deletions(-) | 13 | 1 file changed, 125 insertions(+), 5 deletions(-) |
2834 | 14 | 14 | ||
2835 | 15 | diff --git a/grub-core/osdep/unix/efivar.c b/grub-core/osdep/unix/efivar.c | 15 | diff --git a/grub-core/osdep/unix/efivar.c b/grub-core/osdep/unix/efivar.c |
2837 | 16 | index 4a58328b4..41d39c448 100644 | 16 | index 4a58328b42..41d39c4489 100644 |
2838 | 17 | --- a/grub-core/osdep/unix/efivar.c | 17 | --- a/grub-core/osdep/unix/efivar.c |
2839 | 18 | +++ b/grub-core/osdep/unix/efivar.c | 18 | +++ b/grub-core/osdep/unix/efivar.c |
2840 | 19 | @@ -37,9 +37,11 @@ | 19 | @@ -37,9 +37,11 @@ |
2841 | diff --git a/debian/patches/ubuntu-shorter-version-info.patch b/debian/patches/ubuntu-shorter-version-info.patch | |||
2842 | index 085b012..850af42 100644 | |||
2843 | --- a/debian/patches/ubuntu-shorter-version-info.patch | |||
2844 | +++ b/debian/patches/ubuntu-shorter-version-info.patch | |||
2845 | @@ -1,4 +1,4 @@ | |||
2847 | 1 | From 5fab34cd20e9617b29ed9b632b30cbdedc287e77 Mon Sep 17 00:00:00 2001 | 1 | From 91fe1e957877a6312ebb52d1d8f0f41ccc49cec9 Mon Sep 17 00:00:00 2001 |
2848 | 2 | From: Julian Andres Klode <julian.klode@canonical.com> | 2 | From: Julian Andres Klode <julian.klode@canonical.com> |
2849 | 3 | Date: Thu, 8 Feb 2018 10:48:37 +0100 | 3 | Date: Thu, 8 Feb 2018 10:48:37 +0100 |
2850 | 4 | Subject: UBUNTU: Show only upstream version, hide rest in package_version | 4 | Subject: UBUNTU: Show only upstream version, hide rest in package_version |
2851 | @@ -17,7 +17,7 @@ Patch-Name: ubuntu-shorter-version-info.patch | |||
2852 | 17 | 1 file changed, 4 insertions(+), 1 deletion(-) | 17 | 1 file changed, 4 insertions(+), 1 deletion(-) |
2853 | 18 | 18 | ||
2854 | 19 | diff --git a/grub-core/normal/main.c b/grub-core/normal/main.c | 19 | diff --git a/grub-core/normal/main.c b/grub-core/normal/main.c |
2856 | 20 | index 0aa389fa1..d25a8212c 100644 | 20 | index 0aa389fa16..d25a8212c7 100644 |
2857 | 21 | --- a/grub-core/normal/main.c | 21 | --- a/grub-core/normal/main.c |
2858 | 22 | +++ b/grub-core/normal/main.c | 22 | +++ b/grub-core/normal/main.c |
2859 | 23 | @@ -208,7 +208,7 @@ grub_normal_init_page (struct grub_term_output *term, | 23 | @@ -208,7 +208,7 @@ grub_normal_init_page (struct grub_term_output *term, |
2860 | diff --git a/debian/patches/ubuntu-skip-disk-by-id-lvm-pvm-uuid-entries.patch b/debian/patches/ubuntu-skip-disk-by-id-lvm-pvm-uuid-entries.patch | |||
2861 | index ea91c04..7967a42 100644 | |||
2862 | --- a/debian/patches/ubuntu-skip-disk-by-id-lvm-pvm-uuid-entries.patch | |||
2863 | +++ b/debian/patches/ubuntu-skip-disk-by-id-lvm-pvm-uuid-entries.patch | |||
2864 | @@ -1,4 +1,4 @@ | |||
2866 | 1 | From c9bacc366d2c480e5185a2a71eff51d25b71e155 Mon Sep 17 00:00:00 2001 | 1 | From 1c8dcce2384bc93646592c9a7a8f39aa6ce6e35b Mon Sep 17 00:00:00 2001 |
2867 | 2 | From: Rafael David Tinoco <rafaeldtinoco@ubuntu.com> | 2 | From: Rafael David Tinoco <rafaeldtinoco@ubuntu.com> |
2868 | 3 | Date: Mon, 7 Oct 2019 22:53:32 -0300 | 3 | Date: Mon, 7 Oct 2019 22:53:32 -0300 |
2869 | 4 | Subject: Skip /dev/disk/by-id/lvm-pvm-uuid entries from device iteration | 4 | Subject: Skip /dev/disk/by-id/lvm-pvm-uuid entries from device iteration |
2870 | @@ -44,7 +44,7 @@ Patch-Name: ubuntu-skip-disk-by-id-lvm-pvm-uuid-entries.patch | |||
2871 | 44 | 1 file changed, 3 insertions(+) | 44 | 1 file changed, 3 insertions(+) |
2872 | 45 | 45 | ||
2873 | 46 | diff --git a/util/deviceiter.c b/util/deviceiter.c | 46 | diff --git a/util/deviceiter.c b/util/deviceiter.c |
2875 | 47 | index dddc50da7..ec9a6d0ab 100644 | 47 | index dddc50da7a..ec9a6d0ab4 100644 |
2876 | 48 | --- a/util/deviceiter.c | 48 | --- a/util/deviceiter.c |
2877 | 49 | +++ b/util/deviceiter.c | 49 | +++ b/util/deviceiter.c |
2878 | 50 | @@ -589,6 +589,9 @@ grub_util_iterate_devices (int (*hook) (const char *, int, void *), void *hook_d | 50 | @@ -589,6 +589,9 @@ grub_util_iterate_devices (int (*hook) (const char *, int, void *), void *hook_d |
2879 | diff --git a/debian/patches/ubuntu-speed-zsys-history.patch b/debian/patches/ubuntu-speed-zsys-history.patch | |||
2880 | index 9d66b55..5069a77 100644 | |||
2881 | --- a/debian/patches/ubuntu-speed-zsys-history.patch | |||
2882 | +++ b/debian/patches/ubuntu-speed-zsys-history.patch | |||
2883 | @@ -1,4 +1,4 @@ | |||
2885 | 1 | From 4c7457bc4f7cd1a516a7e255476a086270a4dbe4 Mon Sep 17 00:00:00 2001 | 1 | From 2180fd20a0bc9ddc2e43e2181959fb3f767dcabc Mon Sep 17 00:00:00 2001 |
2886 | 2 | From: Didier Roche <didrocks@ubuntu.com> | 2 | From: Didier Roche <didrocks@ubuntu.com> |
2887 | 3 | Date: Mon, 13 Apr 2020 15:12:21 +0200 | 3 | Date: Mon, 13 Apr 2020 15:12:21 +0200 |
2888 | 4 | Subject: UBUNTU: Improve performance in bootmenu for zsys | 4 | Subject: UBUNTU: Improve performance in bootmenu for zsys |
2889 | @@ -17,10 +17,10 @@ Patch-Name: ubuntu-speed-zsys-history.patch | |||
2890 | 17 | 1 file changed, 56 insertions(+), 21 deletions(-) | 17 | 1 file changed, 56 insertions(+), 21 deletions(-) |
2891 | 18 | 18 | ||
2892 | 19 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in | 19 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
2894 | 20 | index efdb8afae..d748f6a20 100755 | 20 | index 4c48abef01..712d832802 100755 |
2895 | 21 | --- a/util/grub.d/10_linux_zfs.in | 21 | --- a/util/grub.d/10_linux_zfs.in |
2896 | 22 | +++ b/util/grub.d/10_linux_zfs.in | 22 | +++ b/util/grub.d/10_linux_zfs.in |
2898 | 23 | @@ -800,9 +800,10 @@ zfs_linux_entry () { | 23 | @@ -803,9 +803,10 @@ zfs_linux_entry () { |
2899 | 24 | boot_device="$5" | 24 | boot_device="$5" |
2900 | 25 | initrd="$6" | 25 | initrd="$6" |
2901 | 26 | kernel="$7" | 26 | kernel="$7" |
2902 | @@ -33,7 +33,7 @@ index efdb8afae..d748f6a20 100755 | |||
2903 | 33 | submenu_indentation="$(printf %${submenu_level}s | tr " " "${grub_tab}")" | 33 | submenu_indentation="$(printf %${submenu_level}s | tr " " "${grub_tab}")" |
2904 | 34 | 34 | ||
2905 | 35 | echo "${submenu_indentation}menuentry '$(echo "${title}" | grub_quote)' ${CLASS} \${menuentry_id_option} 'gnulinux-${dataset}-${kernel_version}' {" | 35 | echo "${submenu_indentation}menuentry '$(echo "${title}" | grub_quote)' ${CLASS} \${menuentry_id_option} 'gnulinux-${dataset}-${kernel_version}' {" |
2907 | 36 | @@ -837,7 +838,15 @@ zfs_linux_entry () { | 36 | @@ -840,7 +841,15 @@ zfs_linux_entry () { |
2908 | 37 | echo "${submenu_indentation} insmod gzio" | 37 | echo "${submenu_indentation} insmod gzio" |
2909 | 38 | echo "${submenu_indentation} if [ \"\${grub_platform}\" = xen ]; then insmod xzio; insmod lzopio; fi" | 38 | echo "${submenu_indentation} if [ \"\${grub_platform}\" = xen ]; then insmod xzio; insmod lzopio; fi" |
2910 | 39 | 39 | ||
2911 | @@ -50,7 +50,7 @@ index efdb8afae..d748f6a20 100755 | |||
2912 | 50 | 50 | ||
2913 | 51 | if [ "${quiet_boot}" = 0 ] || [ "${type}" != simple ]; then | 51 | if [ "${quiet_boot}" = 0 ] || [ "${type}" != simple ]; then |
2914 | 52 | echo "${submenu_indentation} echo $(gettext_printf "Loading Linux %s ..." ${kernel_version} | grub_quote)" | 52 | echo "${submenu_indentation} echo $(gettext_printf "Loading Linux %s ..." ${kernel_version} | grub_quote)" |
2916 | 53 | @@ -905,6 +914,40 @@ generate_grub_menu() { | 53 | @@ -908,6 +917,40 @@ generate_grub_menu() { |
2917 | 54 | 54 | ||
2918 | 55 | print_menu_prologue | 55 | print_menu_prologue |
2919 | 56 | 56 | ||
2920 | @@ -91,7 +91,7 @@ index efdb8afae..d748f6a20 100755 | |||
2921 | 91 | # IFS is set to TAB (ASCII 0x09) | 91 | # IFS is set to TAB (ASCII 0x09) |
2922 | 92 | echo "${menu_metadata}" | | 92 | echo "${menu_metadata}" | |
2923 | 93 | { | 93 | { |
2925 | 94 | @@ -935,7 +978,8 @@ generate_grub_menu() { | 94 | @@ -938,7 +981,8 @@ generate_grub_menu() { |
2926 | 95 | main_dataset_name="${name}" | 95 | main_dataset_name="${name}" |
2927 | 96 | main_dataset="${dataset}" | 96 | main_dataset="${dataset}" |
2928 | 97 | 97 | ||
2929 | @@ -101,7 +101,7 @@ index efdb8afae..d748f6a20 100755 | |||
2930 | 101 | at_least_one_entry=1 | 101 | at_least_one_entry=1 |
2931 | 102 | ;; | 102 | ;; |
2932 | 103 | advanced) | 103 | advanced) |
2934 | 104 | @@ -951,12 +995,12 @@ generate_grub_menu() { | 104 | @@ -954,12 +998,12 @@ generate_grub_menu() { |
2935 | 105 | 105 | ||
2936 | 106 | kernel_version=$(basename "${kernel}" | sed -e "s,^[^0-9]*-,,g") | 106 | kernel_version=$(basename "${kernel}" | sed -e "s,^[^0-9]*-,,g") |
2937 | 107 | title="$(gettext_printf "%s%s, with Linux %s" "${last_booted_kernel_marker}" "${name}" "${kernel_version}")" | 107 | title="$(gettext_printf "%s%s, with Linux %s" "${last_booted_kernel_marker}" "${name}" "${kernel_version}")" |
2938 | @@ -116,7 +116,7 @@ index efdb8afae..d748f6a20 100755 | |||
2939 | 116 | fi | 116 | fi |
2940 | 117 | at_least_one_entry=1 | 117 | at_least_one_entry=1 |
2941 | 118 | ;; | 118 | ;; |
2943 | 119 | @@ -974,33 +1018,24 @@ generate_grub_menu() { | 119 | @@ -977,33 +1021,24 @@ generate_grub_menu() { |
2944 | 120 | fi | 120 | fi |
2945 | 121 | echo " submenu '${title}' \${menuentry_id_option} 'gnulinux-history-${dataset}' {" | 121 | echo " submenu '${title}' \${menuentry_id_option} 'gnulinux-history-${dataset}' {" |
2946 | 122 | 122 | ||
2947 | diff --git a/debian/patches/ubuntu-support-initrd-less-boot.patch b/debian/patches/ubuntu-support-initrd-less-boot.patch | |||
2948 | index 7fad44d..fe868ce 100644 | |||
2949 | --- a/debian/patches/ubuntu-support-initrd-less-boot.patch | |||
2950 | +++ b/debian/patches/ubuntu-support-initrd-less-boot.patch | |||
2951 | @@ -1,4 +1,4 @@ | |||
2953 | 1 | From f4cacdb13661017c82bf3414833ad351146dded2 Mon Sep 17 00:00:00 2001 | 1 | From 102bdde2eae083973dfa11de9f6289680bb03594 Mon Sep 17 00:00:00 2001 |
2954 | 2 | From: Chris Glass <chris.glass@canonical.com> | 2 | From: Chris Glass <chris.glass@canonical.com> |
2955 | 3 | Date: Thu, 10 Nov 2016 13:44:25 -0500 | 3 | Date: Thu, 10 Nov 2016 13:44:25 -0500 |
2956 | 4 | Subject: UBUNTU: Added knobs to allow non-initrd boot config | 4 | Subject: UBUNTU: Added knobs to allow non-initrd boot config |
2957 | @@ -18,7 +18,7 @@ Patch-Name: ubuntu-support-initrd-less-boot.patch | |||
2958 | 18 | 4 files changed, 38 insertions(+), 4 deletions(-) | 18 | 4 files changed, 38 insertions(+), 4 deletions(-) |
2959 | 19 | 19 | ||
2960 | 20 | diff --git a/docs/grub.info b/docs/grub.info | 20 | diff --git a/docs/grub.info b/docs/grub.info |
2962 | 21 | index 7cc7d9212..f804b7800 100644 | 21 | index 7cc7d92128..f804b7800e 100644 |
2963 | 22 | --- a/docs/grub.info | 22 | --- a/docs/grub.info |
2964 | 23 | +++ b/docs/grub.info | 23 | +++ b/docs/grub.info |
2965 | 24 | @@ -1436,6 +1436,19 @@ it must be quoted. For example: | 24 | @@ -1436,6 +1436,19 @@ it must be quoted. For example: |
2966 | @@ -42,7 +42,7 @@ index 7cc7d9212..f804b7800 100644 | |||
2967 | 42 | existing configurations, but have better replacements: | 42 | existing configurations, but have better replacements: |
2968 | 43 | 43 | ||
2969 | 44 | diff --git a/docs/grub.texi b/docs/grub.texi | 44 | diff --git a/docs/grub.texi b/docs/grub.texi |
2971 | 45 | index 3ec35d315..1baa0fa20 100644 | 45 | index 3ec35d315a..1baa0fa20f 100644 |
2972 | 46 | --- a/docs/grub.texi | 46 | --- a/docs/grub.texi |
2973 | 47 | +++ b/docs/grub.texi | 47 | +++ b/docs/grub.texi |
2974 | 48 | @@ -1541,6 +1541,19 @@ This option sets the English text of the string that will be displayed in | 48 | @@ -1541,6 +1541,19 @@ This option sets the English text of the string that will be displayed in |
2975 | @@ -66,7 +66,7 @@ index 3ec35d315..1baa0fa20 100644 | |||
2976 | 66 | 66 | ||
2977 | 67 | The following options are still accepted for compatibility with existing | 67 | The following options are still accepted for compatibility with existing |
2978 | 68 | diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in | 68 | diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in |
2980 | 69 | index 9c1da6477..29bdad0c1 100644 | 69 | index 9c1da64771..29bdad0c12 100644 |
2981 | 70 | --- a/util/grub-mkconfig.in | 70 | --- a/util/grub-mkconfig.in |
2982 | 71 | +++ b/util/grub-mkconfig.in | 71 | +++ b/util/grub-mkconfig.in |
2983 | 72 | @@ -256,7 +256,9 @@ export GRUB_DEFAULT \ | 72 | @@ -256,7 +256,9 @@ export GRUB_DEFAULT \ |
2984 | @@ -81,7 +81,7 @@ index 9c1da6477..29bdad0c1 100644 | |||
2985 | 81 | if test "x${grub_cfg}" != "x"; then | 81 | if test "x${grub_cfg}" != "x"; then |
2986 | 82 | rm -f "${grub_cfg}.new" | 82 | rm -f "${grub_cfg}.new" |
2987 | 83 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in | 83 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in |
2989 | 84 | index dff84edea..aa9666e5a 100644 | 84 | index dff84edea5..aa9666e5ad 100644 |
2990 | 85 | --- a/util/grub.d/10_linux.in | 85 | --- a/util/grub.d/10_linux.in |
2991 | 86 | +++ b/util/grub.d/10_linux.in | 86 | +++ b/util/grub.d/10_linux.in |
2992 | 87 | @@ -193,11 +193,17 @@ EOF | 87 | @@ -193,11 +193,17 @@ EOF |
2993 | diff --git a/debian/patches/ubuntu-temp-keep-auto-nvram.patch b/debian/patches/ubuntu-temp-keep-auto-nvram.patch | |||
2994 | index 03cf74c..18842f2 100644 | |||
2995 | --- a/debian/patches/ubuntu-temp-keep-auto-nvram.patch | |||
2996 | +++ b/debian/patches/ubuntu-temp-keep-auto-nvram.patch | |||
2997 | @@ -1,4 +1,4 @@ | |||
2999 | 1 | From b2c200320645a00cfcb98017c9564716429723bc Mon Sep 17 00:00:00 2001 | 1 | From 698e98751624982b8367c1cfde1beeec0d4c5cea Mon Sep 17 00:00:00 2001 |
3000 | 2 | From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> | 2 | From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> |
3001 | 3 | Date: Tue, 16 Jul 2019 09:52:10 -0400 | 3 | Date: Tue, 16 Jul 2019 09:52:10 -0400 |
3002 | 4 | Subject: UBUNTU: Temporarily keep grub-install's --auto-nvram. | 4 | Subject: UBUNTU: Temporarily keep grub-install's --auto-nvram. |
3003 | @@ -10,7 +10,7 @@ Patch-Name: ubuntu-temp-keep-auto-nvram.patch | |||
3004 | 10 | 1 file changed, 3 insertions(+) | 10 | 1 file changed, 3 insertions(+) |
3005 | 11 | 11 | ||
3006 | 12 | diff --git a/util/grub-install.c b/util/grub-install.c | 12 | diff --git a/util/grub-install.c b/util/grub-install.c |
3008 | 13 | index 63462e4e0..bf8eb65b3 100644 | 13 | index 63462e4e09..bf8eb65b33 100644 |
3009 | 14 | --- a/util/grub-install.c | 14 | --- a/util/grub-install.c |
3010 | 15 | +++ b/util/grub-install.c | 15 | +++ b/util/grub-install.c |
3011 | 16 | @@ -98,6 +98,7 @@ enum | 16 | @@ -98,6 +98,7 @@ enum |
3012 | diff --git a/debian/patches/ubuntu-tpm-unknown-error-non-fatal.patch b/debian/patches/ubuntu-tpm-unknown-error-non-fatal.patch | |||
3013 | index 3174186..a342e2b 100644 | |||
3014 | --- a/debian/patches/ubuntu-tpm-unknown-error-non-fatal.patch | |||
3015 | +++ b/debian/patches/ubuntu-tpm-unknown-error-non-fatal.patch | |||
3016 | @@ -1,4 +1,4 @@ | |||
3018 | 1 | From ec6589e2746dd882cc10122bad74b0e41074e23b Mon Sep 17 00:00:00 2001 | 1 | From 5b7a5ab1640387e1d0275adc5acf16918218c6d9 Mon Sep 17 00:00:00 2001 |
3019 | 2 | From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> | 2 | From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> |
3020 | 3 | Date: Fri, 25 Oct 2019 10:25:04 -0400 | 3 | Date: Fri, 25 Oct 2019 10:25:04 -0400 |
3021 | 4 | Subject: tpm: Pass unknown error as non-fatal, but debug print the error we | 4 | Subject: tpm: Pass unknown error as non-fatal, but debug print the error we |
3022 | @@ -11,7 +11,7 @@ Patch-Name: ubuntu-tpm-unknown-error-non-fatal.patch | |||
3023 | 11 | 1 file changed, 8 insertions(+), 4 deletions(-) | 11 | 1 file changed, 8 insertions(+), 4 deletions(-) |
3024 | 12 | 12 | ||
3025 | 13 | diff --git a/grub-core/commands/efi/tpm.c b/grub-core/commands/efi/tpm.c | 13 | diff --git a/grub-core/commands/efi/tpm.c b/grub-core/commands/efi/tpm.c |
3027 | 14 | index 32909c192..fdbaaee19 100644 | 14 | index 32909c192f..fdbaaee195 100644 |
3028 | 15 | --- a/grub-core/commands/efi/tpm.c | 15 | --- a/grub-core/commands/efi/tpm.c |
3029 | 16 | +++ b/grub-core/commands/efi/tpm.c | 16 | +++ b/grub-core/commands/efi/tpm.c |
3030 | 17 | @@ -155,7 +155,8 @@ grub_tpm1_execute (grub_efi_handle_t tpm_handle, | 17 | @@ -155,7 +155,8 @@ grub_tpm1_execute (grub_efi_handle_t tpm_handle, |
3031 | diff --git a/debian/patches/ubuntu-zfs-enhance-support.patch b/debian/patches/ubuntu-zfs-enhance-support.patch | |||
3032 | index fc0ece7..2e98aaa 100644 | |||
3033 | --- a/debian/patches/ubuntu-zfs-enhance-support.patch | |||
3034 | +++ b/debian/patches/ubuntu-zfs-enhance-support.patch | |||
3035 | @@ -1,4 +1,4 @@ | |||
3037 | 1 | From daa4db81742e0363c2b8c85b6a88ec3eca1efc19 Mon Sep 17 00:00:00 2001 | 1 | From 0f3f67aa23be0fa1ad5e0b4cda1c4a50225b8272 Mon Sep 17 00:00:00 2001 |
3038 | 2 | From: Didier Roche <didrocks@ubuntu.com> | 2 | From: Didier Roche <didrocks@ubuntu.com> |
3039 | 3 | Date: Fri, 12 Jul 2019 11:06:06 -0400 | 3 | Date: Fri, 12 Jul 2019 11:06:06 -0400 |
3040 | 4 | Subject: UBUNTU: Enhance ZFS grub support | 4 | Subject: UBUNTU: Enhance ZFS grub support |
3041 | @@ -22,12 +22,12 @@ Signed-off-by: Didier Roche <didier.roche@canonical.com> | |||
3042 | 22 | --- | 22 | --- |
3043 | 23 | Makefile.util.def | 7 + | 23 | Makefile.util.def | 7 + |
3044 | 24 | util/grub.d/10_linux.in | 4 + | 24 | util/grub.d/10_linux.in | 4 + |
3047 | 25 | util/grub.d/10_linux_zfs.in | 961 ++++++++++++++++++++++++++++++++++++ | 25 | util/grub.d/10_linux_zfs.in | 964 ++++++++++++++++++++++++++++++++++++ |
3048 | 26 | 3 files changed, 972 insertions(+) | 26 | 3 files changed, 975 insertions(+) |
3049 | 27 | create mode 100755 util/grub.d/10_linux_zfs.in | 27 | create mode 100755 util/grub.d/10_linux_zfs.in |
3050 | 28 | 28 | ||
3051 | 29 | diff --git a/Makefile.util.def b/Makefile.util.def | 29 | diff --git a/Makefile.util.def b/Makefile.util.def |
3053 | 30 | index 969d32f00..bac85e284 100644 | 30 | index 969d32f009..bac85e2840 100644 |
3054 | 31 | --- a/Makefile.util.def | 31 | --- a/Makefile.util.def |
3055 | 32 | +++ b/Makefile.util.def | 32 | +++ b/Makefile.util.def |
3056 | 33 | @@ -482,6 +482,13 @@ script = { | 33 | @@ -482,6 +482,13 @@ script = { |
3057 | @@ -45,7 +45,7 @@ index 969d32f00..bac85e284 100644 | |||
3058 | 45 | name = '10_xnu'; | 45 | name = '10_xnu'; |
3059 | 46 | common = util/grub.d/10_xnu.in; | 46 | common = util/grub.d/10_xnu.in; |
3060 | 47 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in | 47 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in |
3062 | 48 | index 4532266be..a75096609 100644 | 48 | index 4532266be6..a75096609a 100644 |
3063 | 49 | --- a/util/grub.d/10_linux.in | 49 | --- a/util/grub.d/10_linux.in |
3064 | 50 | +++ b/util/grub.d/10_linux.in | 50 | +++ b/util/grub.d/10_linux.in |
3065 | 51 | @@ -71,6 +71,10 @@ case x"$GRUB_FS" in | 51 | @@ -71,6 +71,10 @@ case x"$GRUB_FS" in |
3066 | @@ -61,10 +61,10 @@ index 4532266be..a75096609 100644 | |||
3067 | 61 | LINUX_ROOT_DEVICE="ZFS=${rpool}${bootfs%/}" | 61 | LINUX_ROOT_DEVICE="ZFS=${rpool}${bootfs%/}" |
3068 | 62 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in | 62 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
3069 | 63 | new file mode 100755 | 63 | new file mode 100755 |
3071 | 64 | index 000000000..f50e1231a | 64 | index 0000000000..5ec65fa941 |
3072 | 65 | --- /dev/null | 65 | --- /dev/null |
3073 | 66 | +++ b/util/grub.d/10_linux_zfs.in | 66 | +++ b/util/grub.d/10_linux_zfs.in |
3075 | 67 | @@ -0,0 +1,961 @@ | 67 | @@ -0,0 +1,964 @@ |
3076 | 68 | +#! /bin/sh | 68 | +#! /bin/sh |
3077 | 69 | +set -e | 69 | +set -e |
3078 | 70 | + | 70 | + |
3079 | @@ -470,7 +470,10 @@ index 000000000..f50e1231a | |||
3080 | 470 | + | 470 | + |
3081 | 471 | + initrd_list="" | 471 | + initrd_list="" |
3082 | 472 | + kernel_list="" | 472 | + kernel_list="" |
3084 | 473 | + for linux in $(find "${boot_dir}" -maxdepth 1 -type f -regex '.*/\(vmlinuz\|vmlinux\|kernel\)-.*'|sort -V); do | 473 | + list=$(find "${boot_dir}" -maxdepth 1 -type f -regex '.*/\(vmlinuz\|vmlinux\|kernel\)-.*') |
3085 | 474 | + while [ "x$list" != "x" ] ; do | ||
3086 | 475 | + linux=`version_find_latest $list` | ||
3087 | 476 | + list=`echo $list | tr ' ' '\n' | fgrep -vx "$linux" | tr '\n' ' '` | ||
3088 | 474 | + if ! grub_file_is_not_garbage "${linux}" ; then | 477 | + if ! grub_file_is_not_garbage "${linux}" ; then |
3089 | 475 | + continue | 478 | + continue |
3090 | 476 | + fi | 479 | + fi |
3091 | @@ -506,12 +509,12 @@ index 000000000..f50e1231a | |||
3092 | 506 | + | 509 | + |
3093 | 507 | + rel_linux_dirname=$(make_system_path_relative_to_its_root "${linux_dirname}") | 510 | + rel_linux_dirname=$(make_system_path_relative_to_its_root "${linux_dirname}") |
3094 | 508 | + | 511 | + |
3097 | 509 | + initrd_list="${rel_linux_dirname}/${initrd}|${initrd_list}" | 512 | + initrd_list="${initrd_list}|${rel_linux_dirname}/${initrd}" |
3098 | 510 | + kernel_list="${rel_linux_dirname}/${linux_basename}|${kernel_list}" | 513 | + kernel_list="${kernel_list}|${rel_linux_dirname}/${linux_basename}" |
3099 | 511 | + done | 514 | + done |
3100 | 512 | + | 515 | + |
3103 | 513 | + initrd_list="${initrd_list%|}" | 516 | + initrd_list="${initrd_list#|}" |
3104 | 514 | + kernel_list="${kernel_list%|}" | 517 | + kernel_list="${kernel_list#|}" |
3105 | 515 | + | 518 | + |
3106 | 516 | + initrd_device=$(${grub_probe} --target=device "${boot_dir}" | head -1) | 519 | + initrd_device=$(${grub_probe} --target=device "${boot_dir}" | head -1) |
3107 | 517 | + | 520 | + |
3108 | diff --git a/debian/patches/uefi-firmware-setup.patch b/debian/patches/uefi-firmware-setup.patch | |||
3109 | index d6da9a6..4bf493d 100644 | |||
3110 | --- a/debian/patches/uefi-firmware-setup.patch | |||
3111 | +++ b/debian/patches/uefi-firmware-setup.patch | |||
3112 | @@ -1,4 +1,4 @@ | |||
3114 | 1 | From 460169bfbef18f982e6bc0ad586c33aa0e14a316 Mon Sep 17 00:00:00 2001 | 1 | From e7b118f6f16c5c0b78d4963d8643d6afa72611f7 Mon Sep 17 00:00:00 2001 |
3115 | 2 | From: Steve Langasek <steve.langasek@ubuntu.com> | 2 | From: Steve Langasek <steve.langasek@ubuntu.com> |
3116 | 3 | Date: Mon, 13 Jan 2014 12:13:12 +0000 | 3 | Date: Mon, 13 Jan 2014 12:13:12 +0000 |
3117 | 4 | Subject: Output a menu entry for firmware setup on UEFI FastBoot systems | 4 | Subject: Output a menu entry for firmware setup on UEFI FastBoot systems |
3118 | @@ -14,7 +14,7 @@ Patch-Name: uefi-firmware-setup.patch | |||
3119 | 14 | create mode 100644 util/grub.d/30_uefi-firmware.in | 14 | create mode 100644 util/grub.d/30_uefi-firmware.in |
3120 | 15 | 15 | ||
3121 | 16 | diff --git a/Makefile.util.def b/Makefile.util.def | 16 | diff --git a/Makefile.util.def b/Makefile.util.def |
3123 | 17 | index eec1924b0..ce133e694 100644 | 17 | index eec1924b0e..ce133e694e 100644 |
3124 | 18 | --- a/Makefile.util.def | 18 | --- a/Makefile.util.def |
3125 | 19 | +++ b/Makefile.util.def | 19 | +++ b/Makefile.util.def |
3126 | 20 | @@ -526,6 +526,12 @@ script = { | 20 | @@ -526,6 +526,12 @@ script = { |
3127 | @@ -32,7 +32,7 @@ index eec1924b0..ce133e694 100644 | |||
3128 | 32 | common = util/grub.d/40_custom.in; | 32 | common = util/grub.d/40_custom.in; |
3129 | 33 | diff --git a/util/grub.d/30_uefi-firmware.in b/util/grub.d/30_uefi-firmware.in | 33 | diff --git a/util/grub.d/30_uefi-firmware.in b/util/grub.d/30_uefi-firmware.in |
3130 | 34 | new file mode 100644 | 34 | new file mode 100644 |
3132 | 35 | index 000000000..3c9f533d8 | 35 | index 0000000000..3c9f533d8c |
3133 | 36 | --- /dev/null | 36 | --- /dev/null |
3134 | 37 | +++ b/util/grub.d/30_uefi-firmware.in | 37 | +++ b/util/grub.d/30_uefi-firmware.in |
3135 | 38 | @@ -0,0 +1,46 @@ | 38 | @@ -0,0 +1,46 @@ |
3136 | diff --git a/debian/patches/uefi-secure-boot-cryptomount.patch b/debian/patches/uefi-secure-boot-cryptomount.patch | |||
3137 | index 8478d5d..025fcc9 100644 | |||
3138 | --- a/debian/patches/uefi-secure-boot-cryptomount.patch | |||
3139 | +++ b/debian/patches/uefi-secure-boot-cryptomount.patch | |||
3140 | @@ -1,4 +1,4 @@ | |||
3142 | 1 | From ed1f06e92f0a40b338d11723e0f4008c544ef712 Mon Sep 17 00:00:00 2001 | 1 | From 237dfe21cf3ec834fd96b65c4691f6386dd49680 Mon Sep 17 00:00:00 2001 |
3143 | 2 | From: =?UTF-8?q?Herv=C3=A9=20Werner?= <dud225@hotmail.com> | 2 | From: =?UTF-8?q?Herv=C3=A9=20Werner?= <dud225@hotmail.com> |
3144 | 3 | Date: Mon, 28 Jan 2019 17:24:23 +0100 | 3 | Date: Mon, 28 Jan 2019 17:24:23 +0100 |
3145 | 4 | Subject: Fix setup on Secure Boot systems where cryptodisk is in use | 4 | Subject: Fix setup on Secure Boot systems where cryptodisk is in use |
3146 | @@ -19,7 +19,7 @@ Patch-Name: uefi-secure-boot-cryptomount.patch | |||
3147 | 19 | 1 file changed, 17 insertions(+) | 19 | 1 file changed, 17 insertions(+) |
3148 | 20 | 20 | ||
3149 | 21 | diff --git a/util/grub-install.c b/util/grub-install.c | 21 | diff --git a/util/grub-install.c b/util/grub-install.c |
3151 | 22 | index 030464645..4bad8de61 100644 | 22 | index 0304646453..4bad8de612 100644 |
3152 | 23 | --- a/util/grub-install.c | 23 | --- a/util/grub-install.c |
3153 | 24 | +++ b/util/grub-install.c | 24 | +++ b/util/grub-install.c |
3154 | 25 | @@ -1546,6 +1546,23 @@ main (int argc, char *argv[]) | 25 | @@ -1546,6 +1546,23 @@ main (int argc, char *argv[]) |
3155 | diff --git a/debian/patches/vsnprintf-upper-case-hex.patch b/debian/patches/vsnprintf-upper-case-hex.patch | |||
3156 | index 4917b71..7385257 100644 | |||
3157 | --- a/debian/patches/vsnprintf-upper-case-hex.patch | |||
3158 | +++ b/debian/patches/vsnprintf-upper-case-hex.patch | |||
3159 | @@ -1,4 +1,4 @@ | |||
3161 | 1 | From 9ec15b6602d6505bfc04dd1cd651a6c760ef4fe2 Mon Sep 17 00:00:00 2001 | 1 | From 03f49a87ffe7cbcf3737170935772818875ccbdb Mon Sep 17 00:00:00 2001 |
3162 | 2 | From: Colin Watson <cjwatson@ubuntu.com> | 2 | From: Colin Watson <cjwatson@ubuntu.com> |
3163 | 3 | Date: Mon, 11 Mar 2019 11:15:12 +0000 | 3 | Date: Mon, 11 Mar 2019 11:15:12 +0000 |
3164 | 4 | Subject: Add %X to grub_vsnprintf_real and friends | 4 | Subject: Add %X to grub_vsnprintf_real and friends |
3165 | @@ -18,7 +18,7 @@ Patch-Name: vsnprintf-upper-case-hex.patch | |||
3166 | 18 | 1 file changed, 5 insertions(+), 2 deletions(-) | 18 | 1 file changed, 5 insertions(+), 2 deletions(-) |
3167 | 19 | 19 | ||
3168 | 20 | diff --git a/grub-core/kern/misc.c b/grub-core/kern/misc.c | 20 | diff --git a/grub-core/kern/misc.c b/grub-core/kern/misc.c |
3170 | 21 | index 3b633d51f..18cad5803 100644 | 21 | index 3b633d51f4..18cad5803b 100644 |
3171 | 22 | --- a/grub-core/kern/misc.c | 22 | --- a/grub-core/kern/misc.c |
3172 | 23 | +++ b/grub-core/kern/misc.c | 23 | +++ b/grub-core/kern/misc.c |
3173 | 24 | @@ -588,7 +588,7 @@ grub_divmod64 (grub_uint64_t n, grub_uint64_t d, grub_uint64_t *r) | 24 | @@ -588,7 +588,7 @@ grub_divmod64 (grub_uint64_t n, grub_uint64_t d, grub_uint64_t *r) |
3174 | diff --git a/debian/patches/vt-handoff.patch b/debian/patches/vt-handoff.patch | |||
3175 | index 4db1344..75282e4 100644 | |||
3176 | --- a/debian/patches/vt-handoff.patch | |||
3177 | +++ b/debian/patches/vt-handoff.patch | |||
3178 | @@ -1,4 +1,4 @@ | |||
3180 | 1 | From 378d93f9c2491ef7df49ed7ce3f413025998a0c0 Mon Sep 17 00:00:00 2001 | 1 | From 37413be89bbd62718b9a5f5295aa83ab6f7616b1 Mon Sep 17 00:00:00 2001 |
3181 | 2 | From: Colin Watson <cjwatson@ubuntu.com> | 2 | From: Colin Watson <cjwatson@ubuntu.com> |
3182 | 3 | Date: Mon, 13 Jan 2014 12:13:30 +0000 | 3 | Date: Mon, 13 Jan 2014 12:13:30 +0000 |
3183 | 4 | Subject: Add configure option to use vt.handoff=7 | 4 | Subject: Add configure option to use vt.handoff=7 |
3184 | @@ -19,7 +19,7 @@ Patch-Name: vt-handoff.patch | |||
3185 | 19 | 3 files changed, 65 insertions(+), 2 deletions(-) | 19 | 3 files changed, 65 insertions(+), 2 deletions(-) |
3186 | 20 | 20 | ||
3187 | 21 | diff --git a/configure.ac b/configure.ac | 21 | diff --git a/configure.ac b/configure.ac |
3189 | 22 | index dbc429ce0..e382c7480 100644 | 22 | index dbc429ce0a..e382c7480d 100644 |
3190 | 23 | --- a/configure.ac | 23 | --- a/configure.ac |
3191 | 24 | +++ b/configure.ac | 24 | +++ b/configure.ac |
3192 | 25 | @@ -1890,6 +1890,17 @@ else | 25 | @@ -1890,6 +1890,17 @@ else |
3193 | @@ -41,7 +41,7 @@ index dbc429ce0..e382c7480 100644 | |||
3194 | 41 | 41 | ||
3195 | 42 | AC_SUBST([FONT_SOURCE]) | 42 | AC_SUBST([FONT_SOURCE]) |
3196 | 43 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in | 43 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in |
3198 | 44 | index 09393c28e..cc2dd855a 100644 | 44 | index 09393c28ee..cc2dd855ab 100644 |
3199 | 45 | --- a/util/grub.d/10_linux.in | 45 | --- a/util/grub.d/10_linux.in |
3200 | 46 | +++ b/util/grub.d/10_linux.in | 46 | +++ b/util/grub.d/10_linux.in |
3201 | 47 | @@ -24,6 +24,7 @@ ubuntu_recovery="@UBUNTU_RECOVERY@" | 47 | @@ -24,6 +24,7 @@ ubuntu_recovery="@UBUNTU_RECOVERY@" |
3202 | @@ -101,7 +101,7 @@ index 09393c28e..cc2dd855a 100644 | |||
3203 | 101 | # FIXME: We need an interface to select vesafb in case efifb can't be used. | 101 | # FIXME: We need an interface to select vesafb in case efifb can't be used. |
3204 | 102 | if [ "x$GRUB_GFXPAYLOAD_LINUX" != x ] || [ "$gfxpayload_dynamic" = 0 ]; then | 102 | if [ "x$GRUB_GFXPAYLOAD_LINUX" != x ] || [ "$gfxpayload_dynamic" = 0 ]; then |
3205 | 103 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in | 103 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
3207 | 104 | index fc99f16e7..b636dc7bb 100755 | 104 | index 8cd7d12851..48a4e68976 100755 |
3208 | 105 | --- a/util/grub.d/10_linux_zfs.in | 105 | --- a/util/grub.d/10_linux_zfs.in |
3209 | 106 | +++ b/util/grub.d/10_linux_zfs.in | 106 | +++ b/util/grub.d/10_linux_zfs.in |
3210 | 107 | @@ -23,6 +23,7 @@ ubuntu_recovery="@UBUNTU_RECOVERY@" | 107 | @@ -23,6 +23,7 @@ ubuntu_recovery="@UBUNTU_RECOVERY@" |
3211 | @@ -112,7 +112,7 @@ index fc99f16e7..b636dc7bb 100755 | |||
3212 | 112 | 112 | ||
3213 | 113 | . "${pkgdatadir}/grub-mkconfig_lib" | 113 | . "${pkgdatadir}/grub-mkconfig_lib" |
3214 | 114 | 114 | ||
3216 | 115 | @@ -718,6 +719,23 @@ generate_grub_menu_metadata() { | 115 | @@ -721,6 +722,23 @@ generate_grub_menu_metadata() { |
3217 | 116 | # Note: | 116 | # Note: |
3218 | 117 | # If 10_linux runs these part will be defined twice in grub configuration | 117 | # If 10_linux runs these part will be defined twice in grub configuration |
3219 | 118 | print_menu_prologue() { | 118 | print_menu_prologue() { |
3220 | @@ -136,7 +136,7 @@ index fc99f16e7..b636dc7bb 100755 | |||
3221 | 136 | # Use ELILO's generic "efifb" when it's known to be available. | 136 | # Use ELILO's generic "efifb" when it's known to be available. |
3222 | 137 | # FIXME: We need an interface to select vesafb in case efifb can't be used. | 137 | # FIXME: We need an interface to select vesafb in case efifb can't be used. |
3223 | 138 | GRUB_GFXPAYLOAD_LINUX="${GRUB_GFXPAYLOAD_LINUX:-}" | 138 | GRUB_GFXPAYLOAD_LINUX="${GRUB_GFXPAYLOAD_LINUX:-}" |
3225 | 139 | @@ -813,7 +831,7 @@ zfs_linux_entry () { | 139 | @@ -816,7 +834,7 @@ zfs_linux_entry () { |
3226 | 140 | 140 | ||
3227 | 141 | if ([ "${ubuntu_recovery}" = 0 ] || [ "${type}" != "recovery" ]) && \ | 141 | if ([ "${ubuntu_recovery}" = 0 ] || [ "${type}" != "recovery" ]) && \ |
3228 | 142 | ([ "${GRUB_GFXPAYLOAD_LINUX}" != "" ] || [ "${gfxpayload_dynamic}" = 1 ]); then | 142 | ([ "${GRUB_GFXPAYLOAD_LINUX}" != "" ] || [ "${gfxpayload_dynamic}" = 1 ]); then |
3229 | @@ -145,7 +145,7 @@ index fc99f16e7..b636dc7bb 100755 | |||
3230 | 145 | fi | 145 | fi |
3231 | 146 | 146 | ||
3232 | 147 | echo "${submenu_indentation} insmod gzio" | 147 | echo "${submenu_indentation} insmod gzio" |
3234 | 148 | @@ -876,6 +894,14 @@ generate_grub_menu() { | 148 | @@ -879,6 +897,14 @@ generate_grub_menu() { |
3235 | 149 | GRUB_CMDLINE_LINUX_RECOVERY="${GRUB_CMDLINE_LINUX_RECOVERY} nomodeset" | 149 | GRUB_CMDLINE_LINUX_RECOVERY="${GRUB_CMDLINE_LINUX_RECOVERY} nomodeset" |
3236 | 150 | fi | 150 | fi |
3237 | 151 | 151 | ||
3238 | diff --git a/debian/patches/wubi-no-windows.patch b/debian/patches/wubi-no-windows.patch | |||
3239 | index 29350c5..47385b7 100644 | |||
3240 | --- a/debian/patches/wubi-no-windows.patch | |||
3241 | +++ b/debian/patches/wubi-no-windows.patch | |||
3242 | @@ -1,4 +1,4 @@ | |||
3244 | 1 | From e683b76e9278216d50c327b71dfbb7b722385503 Mon Sep 17 00:00:00 2001 | 1 | From 5d7c681c059de5af7dda174c8375c0cbfaa2d45a Mon Sep 17 00:00:00 2001 |
3245 | 2 | From: Colin Watson <cjwatson@ubuntu.com> | 2 | From: Colin Watson <cjwatson@ubuntu.com> |
3246 | 3 | Date: Mon, 13 Jan 2014 12:13:24 +0000 | 3 | Date: Mon, 13 Jan 2014 12:13:24 +0000 |
3247 | 4 | Subject: Skip Windows os-prober entries on Wubi systems | 4 | Subject: Skip Windows os-prober entries on Wubi systems |
3248 | @@ -19,7 +19,7 @@ Patch-Name: wubi-no-windows.patch | |||
3249 | 19 | 1 file changed, 19 insertions(+) | 19 | 1 file changed, 19 insertions(+) |
3250 | 20 | 20 | ||
3251 | 21 | diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in | 21 | diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in |
3253 | 22 | index b7e1147c4..271044f59 100644 | 22 | index b7e1147c41..271044f592 100644 |
3254 | 23 | --- a/util/grub.d/30_os-prober.in | 23 | --- a/util/grub.d/30_os-prober.in |
3255 | 24 | +++ b/util/grub.d/30_os-prober.in | 24 | +++ b/util/grub.d/30_os-prober.in |
3256 | 25 | @@ -110,6 +110,8 @@ EOF | 25 | @@ -110,6 +110,8 @@ EOF |
3257 | diff --git a/debian/patches/zpool-full-device-name.patch b/debian/patches/zpool-full-device-name.patch | |||
3258 | index 09e00fc..f23b055 100644 | |||
3259 | --- a/debian/patches/zpool-full-device-name.patch | |||
3260 | +++ b/debian/patches/zpool-full-device-name.patch | |||
3261 | @@ -1,4 +1,4 @@ | |||
3263 | 1 | From 5bea13466c5d9048cf20139498dcba94f5500477 Mon Sep 17 00:00:00 2001 | 1 | From 45859b7aff8eb963b8dcb4b83c19579f8687a637 Mon Sep 17 00:00:00 2001 |
3264 | 2 | From: Chad MILLER <chad.miller@canonical.com> | 2 | From: Chad MILLER <chad.miller@canonical.com> |
3265 | 3 | Date: Thu, 27 Oct 2016 17:15:07 -0400 | 3 | Date: Thu, 27 Oct 2016 17:15:07 -0400 |
3266 | 4 | Subject: Tell zpool to emit full device names | 4 | Subject: Tell zpool to emit full device names |
3267 | @@ -20,7 +20,7 @@ Patch-Name: zpool-full-device-name.patch | |||
3268 | 20 | 1 file changed, 1 insertion(+) | 20 | 1 file changed, 1 insertion(+) |
3269 | 21 | 21 | ||
3270 | 22 | diff --git a/grub-core/osdep/unix/getroot.c b/grub-core/osdep/unix/getroot.c | 22 | diff --git a/grub-core/osdep/unix/getroot.c b/grub-core/osdep/unix/getroot.c |
3272 | 23 | index 46d7116c6..da102918d 100644 | 23 | index 46d7116c6e..da102918dc 100644 |
3273 | 24 | --- a/grub-core/osdep/unix/getroot.c | 24 | --- a/grub-core/osdep/unix/getroot.c |
3274 | 25 | +++ b/grub-core/osdep/unix/getroot.c | 25 | +++ b/grub-core/osdep/unix/getroot.c |
3275 | 26 | @@ -243,6 +243,7 @@ grub_util_find_root_devices_from_poolname (char *poolname) | 26 | @@ -243,6 +243,7 @@ grub_util_find_root_devices_from_poolname (char *poolname) |
3276 | diff --git a/grub-core/disk/loopback.c b/grub-core/disk/loopback.c | |||
3277 | index ccb4b16..210201d 100644 | |||
3278 | --- a/grub-core/disk/loopback.c | |||
3279 | +++ b/grub-core/disk/loopback.c | |||
3280 | @@ -86,7 +86,8 @@ grub_cmd_loopback (grub_extcmd_context_t ctxt, int argc, char **args) | |||
3281 | 86 | return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("filename expected")); | 86 | return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("filename expected")); |
3282 | 87 | 87 | ||
3283 | 88 | file = grub_file_open (args[1], GRUB_FILE_TYPE_LOOPBACK | 88 | file = grub_file_open (args[1], GRUB_FILE_TYPE_LOOPBACK |
3285 | 89 | | GRUB_FILE_TYPE_NO_DECOMPRESS); | 89 | | GRUB_FILE_TYPE_NO_DECOMPRESS | |
3286 | 90 | GRUB_FILE_TYPE_SKIP_SIGNATURE); | ||
3287 | 90 | if (! file) | 91 | if (! file) |
3288 | 91 | return grub_errno; | 92 | return grub_errno; |
3289 | 92 | 93 | ||
3290 | diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in | |||
3291 | index 72f1e25..6c8988f 100644 | |||
3292 | --- a/util/grub-mkconfig.in | |||
3293 | +++ b/util/grub-mkconfig.in | |||
3294 | @@ -260,7 +260,8 @@ export GRUB_DEFAULT \ | |||
3295 | 260 | GRUB_RECORDFAIL_TIMEOUT \ | 260 | GRUB_RECORDFAIL_TIMEOUT \ |
3296 | 261 | GRUB_RECOVERY_TITLE \ | 261 | GRUB_RECOVERY_TITLE \ |
3297 | 262 | GRUB_FORCE_PARTUUID \ | 262 | GRUB_FORCE_PARTUUID \ |
3299 | 263 | GRUB_DISABLE_INITRD | 263 | GRUB_DISABLE_INITRD \ |
3300 | 264 | GRUB_FLAVOUR_ORDER | ||
3301 | 264 | 265 | ||
3302 | 265 | if test "x${grub_cfg}" != "x"; then | 266 | if test "x${grub_cfg}" != "x"; then |
3303 | 266 | rm -f "${grub_cfg}.new" | 267 | rm -f "${grub_cfg}.new" |
3304 | diff --git a/util/grub-mkconfig_lib.in b/util/grub-mkconfig_lib.in | |||
3305 | index fe6319a..7e2d1bc 100644 | |||
3306 | --- a/util/grub-mkconfig_lib.in | |||
3307 | +++ b/util/grub-mkconfig_lib.in | |||
3308 | @@ -270,6 +270,21 @@ version_test_gt () | |||
3309 | 270 | if [ "x$version_test_gt_b" = "x" ] ; then | 270 | if [ "x$version_test_gt_b" = "x" ] ; then |
3310 | 271 | return 0 | 271 | return 0 |
3311 | 272 | fi | 272 | fi |
3312 | 273 | |||
3313 | 274 | # GRUB_FLAVOUR_ORDER is an ordered list of kernels, in decreasing | ||
3314 | 275 | # priority. Any items in the list take precedence over other kernels, | ||
3315 | 276 | # and earlier flavours are preferred over later ones. | ||
3316 | 277 | for flavour in ${GRUB_FLAVOUR_ORDER:-}; do | ||
3317 | 278 | version_test_gt_a_preferred=$(echo "$version_test_gt_a" | grep -- "-[0-9]*-$flavour\$") | ||
3318 | 279 | version_test_gt_b_preferred=$(echo "$version_test_gt_b" | grep -- "-[0-9]*-$flavour\$") | ||
3319 | 280 | |||
3320 | 281 | if [ -n "$version_test_gt_a_preferred" -a -z "$version_test_gt_b_preferred" ] ; then | ||
3321 | 282 | return 0 | ||
3322 | 283 | elif [ -z "$version_test_gt_a_preferred" -a -n "$version_test_gt_b_preferred" ] ; then | ||
3323 | 284 | return 1 | ||
3324 | 285 | fi | ||
3325 | 286 | done | ||
3326 | 287 | |||
3327 | 273 | case "$version_test_gt_a:$version_test_gt_b" in | 288 | case "$version_test_gt_a:$version_test_gt_b" in |
3328 | 274 | *.old:*.old) ;; | 289 | *.old:*.old) ;; |
3329 | 275 | *.old:*) version_test_gt_a="`echo "$version_test_gt_a" | sed -e 's/\.old$//'`" ; version_test_gt_cmp=gt ;; | 290 | *.old:*) version_test_gt_a="`echo "$version_test_gt_a" | sed -e 's/\.old$//'`" ; version_test_gt_cmp=gt ;; |
3330 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in | |||
3331 | index 3eb0e69..49e6272 100644 | |||
3332 | --- a/util/grub.d/10_linux.in | |||
3333 | +++ b/util/grub.d/10_linux.in | |||
3334 | @@ -245,6 +245,14 @@ EOF | |||
3335 | 245 | linux_root_device_thisversion="PARTUUID=${GRUB_FORCE_PARTUUID}" | 245 | linux_root_device_thisversion="PARTUUID=${GRUB_FORCE_PARTUUID}" |
3336 | 246 | fi | 246 | fi |
3337 | 247 | message="$(gettext_printf "Loading initial ramdisk ...")" | 247 | message="$(gettext_printf "Loading initial ramdisk ...")" |
3338 | 248 | initrd_path= | ||
3339 | 249 | for i in ${initrd}; do | ||
3340 | 250 | initrd_path="${initrd_path} ${rel_dirname}/${i}" | ||
3341 | 251 | done | ||
3342 | 252 | initrd_path_only_early= | ||
3343 | 253 | for i in ${initrd_early}; do | ||
3344 | 254 | initrd_path_only_early="${initrd_path_only_early} ${rel_dirname}/${i}" | ||
3345 | 255 | done | ||
3346 | 248 | if test -n "${initrd}" && [ x"$GRUB_FORCE_PARTUUID" != x ]; then | 256 | if test -n "${initrd}" && [ x"$GRUB_FORCE_PARTUUID" != x ]; then |
3347 | 249 | sed "s/^/$submenu_indentation/" << EOF | 257 | sed "s/^/$submenu_indentation/" << EOF |
3348 | 250 | if [ "\${initrdfail}" = 1 ]; then | 258 | if [ "\${initrdfail}" = 1 ]; then |
3349 | @@ -255,11 +263,17 @@ EOF | |||
3350 | 255 | echo '$(echo "$message" | grub_quote)' | 263 | echo '$(echo "$message" | grub_quote)' |
3351 | 256 | EOF | 264 | EOF |
3352 | 257 | fi | 265 | fi |
3353 | 258 | |||
3354 | 259 | sed "s/^/$submenu_indentation/" << EOF | 266 | sed "s/^/$submenu_indentation/" << EOF |
3356 | 260 | initrd ${rel_dirname}/${initrd} | 267 | initrd $(echo $initrd_path) |
3357 | 261 | else | 268 | else |
3358 | 262 | linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args} panic=-1 | 269 | linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args} panic=-1 |
3359 | 270 | EOF | ||
3360 | 271 | if [ -n "$initrd_path_only_early" ]; then | ||
3361 | 272 | sed "s/^/$submenu_indentation/" << EOF | ||
3362 | 273 | initrd $(echo $initrd_path_only_early) | ||
3363 | 274 | EOF | ||
3364 | 275 | fi | ||
3365 | 276 | sed "s/^/$submenu_indentation/" << EOF | ||
3366 | 263 | fi | 277 | fi |
3367 | 264 | initrdfail | 278 | initrdfail |
3368 | 265 | EOF | 279 | EOF |
3369 | @@ -277,7 +291,7 @@ EOF | |||
3370 | 277 | EOF | 291 | EOF |
3371 | 278 | fi | 292 | fi |
3372 | 279 | sed "s/^/$submenu_indentation/" << EOF | 293 | sed "s/^/$submenu_indentation/" << EOF |
3374 | 280 | initrd ${rel_dirname}/${initrd} | 294 | initrd $(echo $initrd_path) |
3375 | 281 | EOF | 295 | EOF |
3376 | 282 | fi | 296 | fi |
3377 | 283 | fi | 297 | fi |
3378 | @@ -320,6 +334,10 @@ case "$machine" in | |||
3379 | 320 | *) GENKERNEL_ARCH="$machine" ;; | 334 | *) GENKERNEL_ARCH="$machine" ;; |
3380 | 321 | esac | 335 | esac |
3381 | 322 | 336 | ||
3382 | 337 | case "$GENKERNEL_ARCH" in | ||
3383 | 338 | x86*) GRUB_CMDLINE_LINUX_RECOVERY="$GRUB_CMDLINE_LINUX_RECOVERY dis_ucode_ldr";; | ||
3384 | 339 | esac | ||
3385 | 340 | |||
3386 | 323 | prepare_boot_cache= | 341 | prepare_boot_cache= |
3387 | 324 | prepare_root_cache= | 342 | prepare_root_cache= |
3388 | 325 | boot_device_id= | 343 | boot_device_id= |
3389 | @@ -418,10 +436,7 @@ while [ "x$list" != "x" ] ; do | |||
3390 | 418 | 436 | ||
3391 | 419 | initrd= | 437 | initrd= |
3392 | 420 | if test -n "${initrd_early}" || test -n "${initrd_real}"; then | 438 | if test -n "${initrd_early}" || test -n "${initrd_real}"; then |
3397 | 421 | initrd="${initrd_real}" | 439 | initrd="${initrd_early} ${initrd_real}" |
3394 | 422 | if test -n "${initrd_early}"; then | ||
3395 | 423 | initrd="${initrd_early} ${initrd}" | ||
3396 | 424 | fi | ||
3398 | 425 | 440 | ||
3399 | 426 | initrd_display= | 441 | initrd_display= |
3400 | 427 | for i in ${initrd}; do | 442 | for i in ${initrd}; do |
3401 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in | |||
3402 | index d748f6a..d9b79e2 100755 | |||
3403 | --- a/util/grub.d/10_linux_zfs.in | |||
3404 | +++ b/util/grub.d/10_linux_zfs.in | |||
3405 | @@ -41,6 +41,16 @@ imported_pools="" | |||
3406 | 41 | MNTDIR="$(mktemp -d ${TMPDIR:-/tmp}/zfsmnt.XXXXXX)" | 41 | MNTDIR="$(mktemp -d ${TMPDIR:-/tmp}/zfsmnt.XXXXXX)" |
3407 | 42 | ZFSTMP="$(mktemp -d ${TMPDIR:-/tmp}/zfstmp.XXXXXX)" | 42 | ZFSTMP="$(mktemp -d ${TMPDIR:-/tmp}/zfstmp.XXXXXX)" |
3408 | 43 | 43 | ||
3409 | 44 | |||
3410 | 45 | machine="$(uname -m)" | ||
3411 | 46 | case "${machine}" in | ||
3412 | 47 | i?86) GENKERNEL_ARCH="x86" ;; | ||
3413 | 48 | mips|mips64) GENKERNEL_ARCH="mips" ;; | ||
3414 | 49 | mipsel|mips64el) GENKERNEL_ARCH="mipsel" ;; | ||
3415 | 50 | arm*) GENKERNEL_ARCH="arm" ;; | ||
3416 | 51 | *) GENKERNEL_ARCH="${machine}" ;; | ||
3417 | 52 | esac | ||
3418 | 53 | |||
3419 | 44 | RC=0 | 54 | RC=0 |
3420 | 45 | on_exit() { | 55 | on_exit() { |
3421 | 46 | # Restore initial zpool import state | 56 | # Restore initial zpool import state |
3422 | @@ -407,18 +417,12 @@ get_dataset_info() { | |||
3423 | 407 | return | 417 | return |
3424 | 408 | fi | 418 | fi |
3425 | 409 | 419 | ||
3426 | 410 | machine="$(uname -m)" | ||
3427 | 411 | case "${machine}" in | ||
3428 | 412 | i?86) GENKERNEL_ARCH="x86" ;; | ||
3429 | 413 | mips|mips64) GENKERNEL_ARCH="mips" ;; | ||
3430 | 414 | mipsel|mips64el) GENKERNEL_ARCH="mipsel" ;; | ||
3431 | 415 | arm*) GENKERNEL_ARCH="arm" ;; | ||
3432 | 416 | *) GENKERNEL_ARCH="${machine}" ;; | ||
3433 | 417 | esac | ||
3434 | 418 | |||
3435 | 419 | initrd_list="" | 420 | initrd_list="" |
3436 | 420 | kernel_list="" | 421 | kernel_list="" |
3438 | 421 | for linux in $(find "${boot_dir}" -maxdepth 1 -type f -regex '.*/\(vmlinuz\|vmlinux\|kernel\)-.*'|sort -V); do | 422 | list=$(find "${boot_dir}" -maxdepth 1 -type f -regex '.*/\(vmlinuz\|vmlinux\|kernel\)-.*') |
3439 | 423 | while [ "x$list" != "x" ] ; do | ||
3440 | 424 | linux=`version_find_latest $list` | ||
3441 | 425 | list=`echo $list | tr ' ' '\n' | fgrep -vx "$linux" | tr '\n' ' '` | ||
3442 | 422 | if ! grub_file_is_not_garbage "${linux}" ; then | 426 | if ! grub_file_is_not_garbage "${linux}" ; then |
3443 | 423 | continue | 427 | continue |
3444 | 424 | fi | 428 | fi |
3445 | @@ -465,12 +469,12 @@ get_dataset_info() { | |||
3446 | 465 | 469 | ||
3447 | 466 | rel_linux_dirname=$(make_system_path_relative_to_its_root "${linux_dirname}") | 470 | rel_linux_dirname=$(make_system_path_relative_to_its_root "${linux_dirname}") |
3448 | 467 | 471 | ||
3451 | 468 | initrd_list="${rel_linux_dirname}/${initrd}|${initrd_list}" | 472 | initrd_list="${initrd_list}|${rel_linux_dirname}/${initrd}" |
3452 | 469 | kernel_list="${rel_linux_dirname}/${linux_basename}|${kernel_list}" | 473 | kernel_list="${kernel_list}|${rel_linux_dirname}/${linux_basename}" |
3453 | 470 | done | 474 | done |
3454 | 471 | 475 | ||
3457 | 472 | initrd_list="${initrd_list%|}" | 476 | initrd_list="${initrd_list#|}" |
3458 | 473 | kernel_list="${kernel_list%|}" | 477 | kernel_list="${kernel_list#|}" |
3459 | 474 | 478 | ||
3460 | 475 | initrd_device=$(${grub_probe} --target=device "${boot_dir}" | head -1) | 479 | initrd_device=$(${grub_probe} --target=device "${boot_dir}" | head -1) |
3461 | 476 | 480 | ||
3462 | @@ -904,6 +908,11 @@ generate_grub_menu() { | |||
3463 | 904 | GRUB_CMDLINE_LINUX_RECOVERY="${GRUB_CMDLINE_LINUX_RECOVERY} nomodeset" | 908 | GRUB_CMDLINE_LINUX_RECOVERY="${GRUB_CMDLINE_LINUX_RECOVERY} nomodeset" |
3464 | 905 | fi | 909 | fi |
3465 | 906 | 910 | ||
3466 | 911 | case "$GENKERNEL_ARCH" in | ||
3467 | 912 | x86*) GRUB_CMDLINE_LINUX_RECOVERY="$GRUB_CMDLINE_LINUX_RECOVERY dis_ucode_ldr";; | ||
3468 | 913 | esac | ||
3469 | 914 | |||
3470 | 915 | |||
3471 | 907 | if [ "${vt_handoff}" = 1 ]; then | 916 | if [ "${vt_handoff}" = 1 ]; then |
3472 | 908 | for word in ${GRUB_CMDLINE_LINUX_DEFAULT}; do | 917 | for word in ${GRUB_CMDLINE_LINUX_DEFAULT}; do |
3473 | 909 | if [ "${word}" = splash ]; then | 918 | if [ "${word}" = splash ]; then |
No idea if this makes any sense, but let's try.