Merge ~juliank/grub/+git/ubuntu:ubuntu into ~ubuntu-core-dev/grub/+git/ubuntu:ubuntu
- Git
- lp:~juliank/grub/+git/ubuntu
- ubuntu
- Merge into ubuntu
Proposed by
Julian Andres Klode
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Merged at revision: | ab7fcf5aa56156ba3887bf3eabfcc6212fc496f0 | ||||||||
Proposed branch: | ~juliank/grub/+git/ubuntu:ubuntu | ||||||||
Merge into: | ~ubuntu-core-dev/grub/+git/ubuntu:ubuntu | ||||||||
Diff against target: |
1318 lines (+248/-129) 83 files modified
debian/.git-dpm (+2/-2) debian/changelog (+11/-1) debian/patches/0075-uefi-firmware-rename-fwsetup-menuentry-to-UEFI-Firmw.patch (+1/-1) debian/patches/0076-smbios-Add-a-linux-argument-to-apply-linux-modalias-.patch (+1/-1) debian/patches/0077-ubuntu-Make-the-linux-command-in-EFI-grub-always-try.patch (+1/-1) debian/patches/0078-ubuntu-Update-the-linux-boot-protocol-version-check.patch (+1/-1) debian/patches/at_keyboard-module-init.patch (+1/-1) debian/patches/bash-completion-drop-have-checks.patch (+1/-1) debian/patches/blacklist-1440x900x32.patch (+1/-1) debian/patches/bootp-new-net_bootp6-command.patch (+1/-1) debian/patches/bootp-process-dhcpack-http-boot.patch (+1/-1) debian/patches/cherrypick-lsefisystab-define-smbios3.patch (+1/-1) debian/patches/cherrypick-lsefisystab-show-dtb.patch (+1/-1) debian/patches/cherrypick-smbios-module.patch (+1/-1) debian/patches/default-grub-d.patch (+1/-1) debian/patches/efi-variable-storage-minimise-writes.patch (+1/-1) debian/patches/efinet-set-dns-from-uefi-proto.patch (+1/-1) debian/patches/efinet-set-network-from-uefi-devpath.patch (+1/-1) debian/patches/efinet-uefi-ipv6-pxe-support.patch (+1/-1) debian/patches/gettext-quiet.patch (+1/-1) debian/patches/gfxpayload-dynamic.patch (+5/-5) debian/patches/gfxpayload-keep-default.patch (+3/-3) debian/patches/grub-install-pvxen-paths.patch (+1/-1) debian/patches/ieee1275-clear-reset.patch (+1/-1) debian/patches/ignore-grub_func_test-failures.patch (+1/-1) debian/patches/insmod-xzio-and-lzopio-on-xen.patch (+3/-3) debian/patches/install-efi-fallback.patch (+1/-1) debian/patches/install-efi-ubuntu-flavours.patch (+1/-1) debian/patches/install-locale-langpack.patch (+1/-1) debian/patches/install-powerpc-machtypes.patch (+1/-1) debian/patches/install-stage2-confusion.patch (+1/-1) debian/patches/maybe-quiet.patch (+4/-4) debian/patches/mkconfig-loopback.patch (+1/-1) debian/patches/mkconfig-mid-upgrade.patch (+1/-1) debian/patches/mkconfig-nonexistent-loopback.patch (+1/-1) debian/patches/mkconfig-other-inits.patch (+1/-1) debian/patches/mkconfig-recovery-title.patch (+5/-5) debian/patches/mkconfig-signed-kernel.patch (+3/-3) debian/patches/mkconfig-ubuntu-distributor.patch (+3/-3) debian/patches/mkconfig-ubuntu-recovery.patch (+5/-5) debian/patches/mkrescue-efi-modules.patch (+1/-1) debian/patches/net-read-bracketed-ipv6-addr.patch (+1/-1) debian/patches/no-devicetree-if-secure-boot.patch (+1/-1) debian/patches/no-insmod-on-sb.patch (+1/-1) debian/patches/ppc64el-disable-vsx.patch (+1/-1) debian/patches/probe-fusionio.patch (+1/-1) debian/patches/quick-boot-lvm.patch (+1/-1) debian/patches/quick-boot.patch (+3/-3) debian/patches/restore-mkdevicemap.patch (+1/-1) debian/patches/series (+2/-0) debian/patches/skip-grub_cmd_set_date.patch (+1/-1) debian/patches/sleep-shift.patch (+1/-1) debian/patches/ubuntu-add-devicetree-command-support.patch (+1/-1) debian/patches/ubuntu-add-initrd-less-boot-fallback.patch (+1/-1) debian/patches/ubuntu-boot-from-multipath-dependent-symlink.patch (+1/-1) debian/patches/ubuntu-clear-invalid-initrd-spacing.patch (+1/-1) debian/patches/ubuntu-dont-verify-loopback-images.patch (+37/-0) debian/patches/ubuntu-efi-allow-loopmount-chainload.patch (+1/-1) debian/patches/ubuntu-efi-console-set-text-mode-as-needed.patch (+1/-1) debian/patches/ubuntu-fix-lzma-decompressor-objcopy.patch (+1/-1) debian/patches/ubuntu-flavour-order.patch (+47/-0) debian/patches/ubuntu-grub-install-extra-removable.patch (+1/-1) debian/patches/ubuntu-install-signed.patch (+1/-1) debian/patches/ubuntu-linuxefi.patch (+1/-1) debian/patches/ubuntu-mkconfig-leave-breadcrumbs.patch (+1/-1) debian/patches/ubuntu-resilient-boot-boot-order.patch (+1/-1) debian/patches/ubuntu-resilient-boot-ignore-alternative-esps.patch (+1/-1) debian/patches/ubuntu-shorter-version-info.patch (+1/-1) debian/patches/ubuntu-skip-disk-by-id-lvm-pvm-uuid-entries.patch (+1/-1) debian/patches/ubuntu-speed-zsys-history.patch (+8/-8) debian/patches/ubuntu-support-initrd-less-boot.patch (+1/-1) debian/patches/ubuntu-temp-keep-auto-nvram.patch (+1/-1) debian/patches/ubuntu-tpm-unknown-error-non-fatal.patch (+1/-1) debian/patches/ubuntu-zfs-enhance-support.patch (+13/-10) debian/patches/uefi-firmware-setup.patch (+1/-1) debian/patches/uefi-secure-boot-cryptomount.patch (+1/-1) debian/patches/vsnprintf-upper-case-hex.patch (+1/-1) debian/patches/vt-handoff.patch (+5/-5) debian/patches/wubi-no-windows.patch (+1/-1) debian/patches/zpool-full-device-name.patch (+1/-1) grub-core/disk/loopback.c (+2/-1) util/grub-mkconfig_lib.in (+16/-0) util/grub.d/10_linux_zfs.in (+8/-5) |
||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Dimitri John Ledkov | Approve | ||
Review via email: mp+385358@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
Julian Andres Klode (juliank) wrote : | # |
Revision history for this message
Julian Andres Klode (juliank) wrote : | # |
Ah I see, I should move the patches to debian/
Revision history for this message
Dimitri John Ledkov (xnox) wrote : | # |
Please revert/resurrect gettext patches.
Revision history for this message
Dimitri John Ledkov (xnox) wrote : | # |
TODO test that latest entry points at the right kernel flavour in normal & zfs boots.
Revision history for this message
Julian Andres Klode (juliank) wrote : | # |
Updated:
- moved the ZFS changes into the original ZFS patch
- fix unset variable errror if GRUB_FLAVOUR_ORDER is undefined
- Add version_test_gt to {a,b}_preferred variable names for scoping purposes
Still need to move the gettext bases in the base branch and rebase on that so they get preserved.
Revision history for this message
Julian Andres Klode (juliank) wrote : | # |
Merged patch for bug 1878541
Revision history for this message
Dimitri John Ledkov (xnox) wrote : | # |
Everything looks good.
Note to self: zfs script does not have multi-initrd support.
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | diff --git a/debian/.git-dpm b/debian/.git-dpm |
2 | index 61b8e87..ddf4fb0 100644 |
3 | --- a/debian/.git-dpm |
4 | +++ b/debian/.git-dpm |
5 | @@ -1,6 +1,6 @@ |
6 | # see git-dpm(1) from git-dpm package |
7 | -4c7457bc4f7cd1a516a7e255476a086270a4dbe4 |
8 | -4c7457bc4f7cd1a516a7e255476a086270a4dbe4 |
9 | +0fb88755986ad4c14500e769b8543a9a72e718ef |
10 | +0fb88755986ad4c14500e769b8543a9a72e718ef |
11 | 578bb115fbd47e1c464696f1f8d6183e5443975d |
12 | 578bb115fbd47e1c464696f1f8d6183e5443975d |
13 | grub2_2.04.orig.tar.xz |
14 | diff --git a/debian/changelog b/debian/changelog |
15 | index 21ff849..288abf6 100644 |
16 | --- a/debian/changelog |
17 | +++ b/debian/changelog |
18 | @@ -1,8 +1,18 @@ |
19 | grub2 (2.04-1ubuntu27) UNRELEASED; urgency=medium |
20 | |
21 | * Move gettext patches out of git-dpm's way, so it does not delete them |
22 | + * debian/patches/ubuntu-flavour-order.patch: |
23 | + - Add a (hidden) GRUB_FLAVOUR_ORDER setting that can mark certain kernel |
24 | + flavours as preferred, and specify an order between those preferred |
25 | + flavours (LP: #1882663) |
26 | + * debian/patches/ubuntu-zfs-enhance-support.patch: |
27 | + - Use version_find_latest for ordering kernels, so it also supports |
28 | + the GRUB_FLAVOUR_ORDER setting. |
29 | + * debian/patches/ubuntu-dont-verify-loopback-images.patch: |
30 | + - disk/loopback: Don't verify loopback images (LP: #1878541), |
31 | + Thanks to Chris Coulson for the patch |
32 | |
33 | - -- Julian Andres Klode <juliank@ubuntu.com> Wed, 10 Jun 2020 11:22:22 +0200 |
34 | + -- Julian Andres Klode <juliank@ubuntu.com> Wed, 10 Jun 2020 11:25:07 +0200 |
35 | |
36 | grub2 (2.04-1ubuntu26) focal; urgency=medium |
37 | |
38 | diff --git a/debian/patches/0075-uefi-firmware-rename-fwsetup-menuentry-to-UEFI-Firmw.patch b/debian/patches/0075-uefi-firmware-rename-fwsetup-menuentry-to-UEFI-Firmw.patch |
39 | index 0bab37b..29f2134 100644 |
40 | --- a/debian/patches/0075-uefi-firmware-rename-fwsetup-menuentry-to-UEFI-Firmw.patch |
41 | +++ b/debian/patches/0075-uefi-firmware-rename-fwsetup-menuentry-to-UEFI-Firmw.patch |
42 | @@ -1,4 +1,4 @@ |
43 | -From 4d3c59dd378362f4e0e30aaaf77068bea97ebd24 Mon Sep 17 00:00:00 2001 |
44 | +From 50fcc727d45fceafce6c3179bb0a86d87d8f48b2 Mon Sep 17 00:00:00 2001 |
45 | From: Dimitri John Ledkov <xnox@ubuntu.com> |
46 | Date: Mon, 24 Feb 2020 20:29:53 +0000 |
47 | Subject: uefi-firmware: rename fwsetup menuentry to UEFI Firmware Settings |
48 | diff --git a/debian/patches/0076-smbios-Add-a-linux-argument-to-apply-linux-modalias-.patch b/debian/patches/0076-smbios-Add-a-linux-argument-to-apply-linux-modalias-.patch |
49 | index c1bbac6..ca933d0 100644 |
50 | --- a/debian/patches/0076-smbios-Add-a-linux-argument-to-apply-linux-modalias-.patch |
51 | +++ b/debian/patches/0076-smbios-Add-a-linux-argument-to-apply-linux-modalias-.patch |
52 | @@ -1,4 +1,4 @@ |
53 | -From b7ae50d78035e0e73f5ea212fab7b728353c988b Mon Sep 17 00:00:00 2001 |
54 | +From 9481917492c1e56ba5521c0f06f611208f1311e4 Mon Sep 17 00:00:00 2001 |
55 | From: Julian Andres Klode <julian.klode@canonical.com> |
56 | Date: Tue, 3 Mar 2020 16:06:34 +0100 |
57 | Subject: smbios: Add a --linux argument to apply linux modalias-like filtering |
58 | diff --git a/debian/patches/0077-ubuntu-Make-the-linux-command-in-EFI-grub-always-try.patch b/debian/patches/0077-ubuntu-Make-the-linux-command-in-EFI-grub-always-try.patch |
59 | index 13e098e..f5d8aff 100644 |
60 | --- a/debian/patches/0077-ubuntu-Make-the-linux-command-in-EFI-grub-always-try.patch |
61 | +++ b/debian/patches/0077-ubuntu-Make-the-linux-command-in-EFI-grub-always-try.patch |
62 | @@ -1,4 +1,4 @@ |
63 | -From 3004e78bbfe6acb5e38290b2e5c7fff277ea1628 Mon Sep 17 00:00:00 2001 |
64 | +From 7bfcf01a88ea45de97c2229d554397eef06b3482 Mon Sep 17 00:00:00 2001 |
65 | From: Chris Coulson <chris.coulson@canonical.com> |
66 | Date: Wed, 11 Mar 2020 16:46:00 +0100 |
67 | Subject: ubuntu: Make the linux command in EFI grub always try EFI handover |
68 | diff --git a/debian/patches/0078-ubuntu-Update-the-linux-boot-protocol-version-check.patch b/debian/patches/0078-ubuntu-Update-the-linux-boot-protocol-version-check.patch |
69 | index 07e93a4..5e0b86f 100644 |
70 | --- a/debian/patches/0078-ubuntu-Update-the-linux-boot-protocol-version-check.patch |
71 | +++ b/debian/patches/0078-ubuntu-Update-the-linux-boot-protocol-version-check.patch |
72 | @@ -1,4 +1,4 @@ |
73 | -From 05c83490bed811e5dd5cde7c59bb56cc2db751d6 Mon Sep 17 00:00:00 2001 |
74 | +From 27ae0a41bed84e5148ae5679e65762d33e9029f3 Mon Sep 17 00:00:00 2001 |
75 | From: Chris Coulson <chris.coulson@canonical.com> |
76 | Date: Wed, 11 Mar 2020 16:46:41 +0100 |
77 | Subject: ubuntu: Update the linux boot protocol version check. |
78 | diff --git a/debian/patches/at_keyboard-module-init.patch b/debian/patches/at_keyboard-module-init.patch |
79 | index faafb46..48b5c22 100644 |
80 | --- a/debian/patches/at_keyboard-module-init.patch |
81 | +++ b/debian/patches/at_keyboard-module-init.patch |
82 | @@ -1,4 +1,4 @@ |
83 | -From 2fa183df8ec4037976444a92810672b0fa3f75b4 Mon Sep 17 00:00:00 2001 |
84 | +From fd386a087b6c64b28f1b80d03b35d7dcf552b143 Mon Sep 17 00:00:00 2001 |
85 | From: Jeroen Dekkers <jeroen@dekkers.ch> |
86 | Date: Sat, 12 Jan 2019 21:02:18 +0100 |
87 | Subject: at_keyboard: initialize keyboard in module init if keyboard is ready |
88 | diff --git a/debian/patches/bash-completion-drop-have-checks.patch b/debian/patches/bash-completion-drop-have-checks.patch |
89 | index acb2021..c1371eb 100644 |
90 | --- a/debian/patches/bash-completion-drop-have-checks.patch |
91 | +++ b/debian/patches/bash-completion-drop-have-checks.patch |
92 | @@ -1,4 +1,4 @@ |
93 | -From 1eee32e5a695ce788c97203f0fba724bf5dc3a19 Mon Sep 17 00:00:00 2001 |
94 | +From b4b380c0cbec13b3797a570e651e94cdc349bb2f Mon Sep 17 00:00:00 2001 |
95 | From: Colin Watson <cjwatson@debian.org> |
96 | Date: Fri, 16 Nov 2018 16:37:02 +0000 |
97 | Subject: bash-completion: Drop "have" checks |
98 | diff --git a/debian/patches/blacklist-1440x900x32.patch b/debian/patches/blacklist-1440x900x32.patch |
99 | index 5043cf4..58c1c97 100644 |
100 | --- a/debian/patches/blacklist-1440x900x32.patch |
101 | +++ b/debian/patches/blacklist-1440x900x32.patch |
102 | @@ -1,4 +1,4 @@ |
103 | -From a7d121953a5158ccd4e8789a475cd43b83c2b779 Mon Sep 17 00:00:00 2001 |
104 | +From 9633a0226ecad133582225d7d5decd7f344b376d Mon Sep 17 00:00:00 2001 |
105 | From: Colin Watson <cjwatson@ubuntu.com> |
106 | Date: Mon, 13 Jan 2014 12:13:11 +0000 |
107 | Subject: Blacklist 1440x900x32 from VBE preferred mode handling |
108 | diff --git a/debian/patches/bootp-new-net_bootp6-command.patch b/debian/patches/bootp-new-net_bootp6-command.patch |
109 | index d53a2f2..ca00eec 100644 |
110 | --- a/debian/patches/bootp-new-net_bootp6-command.patch |
111 | +++ b/debian/patches/bootp-new-net_bootp6-command.patch |
112 | @@ -1,4 +1,4 @@ |
113 | -From 8624974d81aaa8eabd6328c99ec5c7d204c80638 Mon Sep 17 00:00:00 2001 |
114 | +From 5376a44e70409088670de36d2ec82a1b48259cbd Mon Sep 17 00:00:00 2001 |
115 | From: Michael Chang <mchang@suse.com> |
116 | Date: Thu, 27 Oct 2016 17:41:04 -0400 |
117 | Subject: bootp: New net_bootp6 command |
118 | diff --git a/debian/patches/bootp-process-dhcpack-http-boot.patch b/debian/patches/bootp-process-dhcpack-http-boot.patch |
119 | index 74e9508..c4947ac 100644 |
120 | --- a/debian/patches/bootp-process-dhcpack-http-boot.patch |
121 | +++ b/debian/patches/bootp-process-dhcpack-http-boot.patch |
122 | @@ -1,4 +1,4 @@ |
123 | -From 3de9845e404a99dc3122efbf7c2570482097c412 Mon Sep 17 00:00:00 2001 |
124 | +From 583bf554edc8aae87c44e7c9f984835b246e2f0b Mon Sep 17 00:00:00 2001 |
125 | From: Michael Chang <mchang@suse.com> |
126 | Date: Thu, 27 Oct 2016 17:42:19 -0400 |
127 | Subject: bootp: Add processing DHCPACK packet from HTTP Boot |
128 | diff --git a/debian/patches/cherrypick-lsefisystab-define-smbios3.patch b/debian/patches/cherrypick-lsefisystab-define-smbios3.patch |
129 | index 612fc32..2fdd3f7 100644 |
130 | --- a/debian/patches/cherrypick-lsefisystab-define-smbios3.patch |
131 | +++ b/debian/patches/cherrypick-lsefisystab-define-smbios3.patch |
132 | @@ -1,4 +1,4 @@ |
133 | -From 0bc1e64554d9dfbcfaf5e384fcb772f861a548d8 Mon Sep 17 00:00:00 2001 |
134 | +From 7406e7234315d5bfeb70370437a4b50ba193ceac Mon Sep 17 00:00:00 2001 |
135 | From: David Michael <fedora.dm0@gmail.com> |
136 | Date: Fri, 5 Jul 2019 08:47:02 -0400 |
137 | Subject: lsefisystab: Define SMBIOS3 entry point structures for EFI |
138 | diff --git a/debian/patches/cherrypick-lsefisystab-show-dtb.patch b/debian/patches/cherrypick-lsefisystab-show-dtb.patch |
139 | index 6516840..fb801a2 100644 |
140 | --- a/debian/patches/cherrypick-lsefisystab-show-dtb.patch |
141 | +++ b/debian/patches/cherrypick-lsefisystab-show-dtb.patch |
142 | @@ -1,4 +1,4 @@ |
143 | -From b5a07214b83812f0b8b42dc576021e98237498e6 Mon Sep 17 00:00:00 2001 |
144 | +From 80960847b7b8b70a05dcaa9a09118077c385274e Mon Sep 17 00:00:00 2001 |
145 | From: Heinrich Schuchardt <xypron.glpk@gmx.de> |
146 | Date: Sat, 6 Jul 2019 11:11:02 +0200 |
147 | Subject: lsefisystab: Add support for device tree table |
148 | diff --git a/debian/patches/cherrypick-smbios-module.patch b/debian/patches/cherrypick-smbios-module.patch |
149 | index 8bbe12b..9bc57ef 100644 |
150 | --- a/debian/patches/cherrypick-smbios-module.patch |
151 | +++ b/debian/patches/cherrypick-smbios-module.patch |
152 | @@ -1,4 +1,4 @@ |
153 | -From 982cd5b597e964da666ebdab41c727823a50c776 Mon Sep 17 00:00:00 2001 |
154 | +From 3a782757a22088878e13cf4e014585a828991579 Mon Sep 17 00:00:00 2001 |
155 | From: David Michael <fedora.dm0@gmail.com> |
156 | Date: Fri, 5 Jul 2019 08:47:09 -0400 |
157 | Subject: smbios: Add a module for retrieving SMBIOS information |
158 | diff --git a/debian/patches/default-grub-d.patch b/debian/patches/default-grub-d.patch |
159 | index dc61a66..c7716b9 100644 |
160 | --- a/debian/patches/default-grub-d.patch |
161 | +++ b/debian/patches/default-grub-d.patch |
162 | @@ -1,4 +1,4 @@ |
163 | -From e1e966557a634500e95e2ec691a0cb8fca144aae Mon Sep 17 00:00:00 2001 |
164 | +From 43da93f26fcd81893edb2bbe10f87879a95dcbc5 Mon Sep 17 00:00:00 2001 |
165 | From: Colin Watson <cjwatson@ubuntu.com> |
166 | Date: Mon, 13 Jan 2014 12:13:10 +0000 |
167 | Subject: Read /etc/default/grub.d/*.cfg after /etc/default/grub |
168 | diff --git a/debian/patches/efi-variable-storage-minimise-writes.patch b/debian/patches/efi-variable-storage-minimise-writes.patch |
169 | index 5078aa3..02daac9 100644 |
170 | --- a/debian/patches/efi-variable-storage-minimise-writes.patch |
171 | +++ b/debian/patches/efi-variable-storage-minimise-writes.patch |
172 | @@ -1,4 +1,4 @@ |
173 | -From 20dd578ec8d17d92790121ce010de0e49eaf9cef Mon Sep 17 00:00:00 2001 |
174 | +From 5028184f2c8baf38d6849aa771c4d064fdcd0529 Mon Sep 17 00:00:00 2001 |
175 | From: Colin Watson <cjwatson@ubuntu.com> |
176 | Date: Mon, 11 Mar 2019 11:17:43 +0000 |
177 | Subject: Minimise writes to EFI variable storage |
178 | diff --git a/debian/patches/efinet-set-dns-from-uefi-proto.patch b/debian/patches/efinet-set-dns-from-uefi-proto.patch |
179 | index e500199..b0fe194 100644 |
180 | --- a/debian/patches/efinet-set-dns-from-uefi-proto.patch |
181 | +++ b/debian/patches/efinet-set-dns-from-uefi-proto.patch |
182 | @@ -1,4 +1,4 @@ |
183 | -From 6a014b8846142de23cb5254f653facc8f3456a8c Mon Sep 17 00:00:00 2001 |
184 | +From 747f4241696cf526d68ff7de1efac04e1871567b Mon Sep 17 00:00:00 2001 |
185 | From: Michael Chang <mchang@suse.com> |
186 | Date: Thu, 27 Oct 2016 17:43:21 -0400 |
187 | Subject: efinet: Setting DNS server from UEFI protocol |
188 | diff --git a/debian/patches/efinet-set-network-from-uefi-devpath.patch b/debian/patches/efinet-set-network-from-uefi-devpath.patch |
189 | index bba19a4..fee310a 100644 |
190 | --- a/debian/patches/efinet-set-network-from-uefi-devpath.patch |
191 | +++ b/debian/patches/efinet-set-network-from-uefi-devpath.patch |
192 | @@ -1,4 +1,4 @@ |
193 | -From 1bacee679cef6c6f56af81108288c6468d8f6295 Mon Sep 17 00:00:00 2001 |
194 | +From 36785761748dd2ba5a38ec8c7fc412c8f875b0e2 Mon Sep 17 00:00:00 2001 |
195 | From: Michael Chang <mchang@suse.com> |
196 | Date: Thu, 27 Oct 2016 17:43:05 -0400 |
197 | Subject: efinet: Setting network from UEFI device path |
198 | diff --git a/debian/patches/efinet-uefi-ipv6-pxe-support.patch b/debian/patches/efinet-uefi-ipv6-pxe-support.patch |
199 | index 531e73d..a3a46fe 100644 |
200 | --- a/debian/patches/efinet-uefi-ipv6-pxe-support.patch |
201 | +++ b/debian/patches/efinet-uefi-ipv6-pxe-support.patch |
202 | @@ -1,4 +1,4 @@ |
203 | -From 9afb0c174814d7235fc18623725cd037a76ff541 Mon Sep 17 00:00:00 2001 |
204 | +From aa6426e9b8ce15c152af7d20686b26caadb2f28a Mon Sep 17 00:00:00 2001 |
205 | From: Michael Chang <mchang@suse.com> |
206 | Date: Thu, 27 Oct 2016 17:41:21 -0400 |
207 | Subject: efinet: UEFI IPv6 PXE support |
208 | diff --git a/debian/patches/gettext-quiet.patch b/debian/patches/gettext-quiet.patch |
209 | index 11a7e6f..beac00a 100644 |
210 | --- a/debian/patches/gettext-quiet.patch |
211 | +++ b/debian/patches/gettext-quiet.patch |
212 | @@ -1,4 +1,4 @@ |
213 | -From 259b7fa08b66717709735370d05fc9eb64682484 Mon Sep 17 00:00:00 2001 |
214 | +From 510fb7381e095c4212907e6b45e58f24e1889acf Mon Sep 17 00:00:00 2001 |
215 | From: Colin Watson <cjwatson@ubuntu.com> |
216 | Date: Mon, 13 Jan 2014 12:13:02 +0000 |
217 | Subject: Silence error messages when translations are unavailable |
218 | diff --git a/debian/patches/gfxpayload-dynamic.patch b/debian/patches/gfxpayload-dynamic.patch |
219 | index 8545c4d..5139e21 100644 |
220 | --- a/debian/patches/gfxpayload-dynamic.patch |
221 | +++ b/debian/patches/gfxpayload-dynamic.patch |
222 | @@ -1,4 +1,4 @@ |
223 | -From 2e91d5ab9adfb6a86b82b89715d6d9a7b3b52005 Mon Sep 17 00:00:00 2001 |
224 | +From 66ef92ba8ac39f919415f8687b8d0d9032c4a079 Mon Sep 17 00:00:00 2001 |
225 | From: Evan Broder <evan@ebroder.net> |
226 | Date: Mon, 13 Jan 2014 12:13:29 +0000 |
227 | Subject: Add configure option to enable gfxpayload=keep dynamically |
228 | @@ -290,7 +290,7 @@ index 2be66c702..09393c28e 100644 |
229 | # yet, so it's empty. In a submenu it will be equal to '\t' (one tab). |
230 | submenu_indentation="" |
231 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
232 | -index 548e14856..fc99f16e7 100755 |
233 | +index ec4b49d9d..8cd7d1285 100755 |
234 | --- a/util/grub.d/10_linux_zfs.in |
235 | +++ b/util/grub.d/10_linux_zfs.in |
236 | @@ -22,6 +22,7 @@ datarootdir="@datarootdir@" |
237 | @@ -301,7 +301,7 @@ index 548e14856..fc99f16e7 100755 |
238 | |
239 | . "${pkgdatadir}/grub-mkconfig_lib" |
240 | |
241 | -@@ -713,6 +714,41 @@ generate_grub_menu_metadata() { |
242 | +@@ -716,6 +717,41 @@ generate_grub_menu_metadata() { |
243 | done |
244 | } |
245 | |
246 | @@ -343,7 +343,7 @@ index 548e14856..fc99f16e7 100755 |
247 | # Cache for prepare_grub_to_access_device call |
248 | # $1: boot_device |
249 | # $2: submenu_level |
250 | -@@ -773,9 +809,11 @@ zfs_linux_entry () { |
251 | +@@ -776,9 +812,11 @@ zfs_linux_entry () { |
252 | if [ "${GRUB_GFXPAYLOAD_LINUX}" != "text" ]; then |
253 | echo "${submenu_indentation} load_video" |
254 | fi |
255 | @@ -358,7 +358,7 @@ index 548e14856..fc99f16e7 100755 |
256 | fi |
257 | |
258 | echo "${submenu_indentation} insmod gzio" |
259 | -@@ -838,6 +876,8 @@ generate_grub_menu() { |
260 | +@@ -841,6 +879,8 @@ generate_grub_menu() { |
261 | GRUB_CMDLINE_LINUX_RECOVERY="${GRUB_CMDLINE_LINUX_RECOVERY} nomodeset" |
262 | fi |
263 | |
264 | diff --git a/debian/patches/gfxpayload-keep-default.patch b/debian/patches/gfxpayload-keep-default.patch |
265 | index 114ce62..1370b85 100644 |
266 | --- a/debian/patches/gfxpayload-keep-default.patch |
267 | +++ b/debian/patches/gfxpayload-keep-default.patch |
268 | @@ -1,4 +1,4 @@ |
269 | -From 6da735cfaac928da6dc1283a15a669b1ddd07979 Mon Sep 17 00:00:00 2001 |
270 | +From e848d8754210095660b229f4639a065e8d96a0d0 Mon Sep 17 00:00:00 2001 |
271 | From: Didier Roche <didrocks@ubuntu.com> |
272 | Date: Tue, 31 Mar 2020 15:09:45 +0200 |
273 | Subject: Disable gfxpayload=keep by default |
274 | @@ -39,10 +39,10 @@ index a75096609..f839b3b55 100644 |
275 | if [ "x$GRUB_GFXPAYLOAD_LINUX" != xtext ]; then |
276 | echo " load_video" | sed "s/^/$submenu_indentation/" |
277 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
278 | -index f50e1231a..d27634738 100755 |
279 | +index 5ec65fa94..b24587f0a 100755 |
280 | --- a/util/grub.d/10_linux_zfs.in |
281 | +++ b/util/grub.d/10_linux_zfs.in |
282 | -@@ -741,10 +741,6 @@ zfs_linux_entry () { |
283 | +@@ -744,10 +744,6 @@ zfs_linux_entry () { |
284 | # FIXME: We need an interface to select vesafb in case efifb can't be used. |
285 | if [ "${GRUB_GFXPAYLOAD_LINUX}" = "" ]; then |
286 | echo "${submenu_indentation} load_video" |
287 | diff --git a/debian/patches/grub-install-pvxen-paths.patch b/debian/patches/grub-install-pvxen-paths.patch |
288 | index a160a43..8970fcc 100644 |
289 | --- a/debian/patches/grub-install-pvxen-paths.patch |
290 | +++ b/debian/patches/grub-install-pvxen-paths.patch |
291 | @@ -1,4 +1,4 @@ |
292 | -From 4e813c89c93bba7da480824d617e87659295841b Mon Sep 17 00:00:00 2001 |
293 | +From 34f053ee85aaa87fd40682a0f9c4e8c5858eeb55 Mon Sep 17 00:00:00 2001 |
294 | From: Ian Campbell <ijc@hellion.org.uk> |
295 | Date: Sat, 6 Sep 2014 12:20:12 +0100 |
296 | Subject: grub-install: Install PV Xen binaries into the upstream specified |
297 | diff --git a/debian/patches/ieee1275-clear-reset.patch b/debian/patches/ieee1275-clear-reset.patch |
298 | index 1d082e6..c6f68fa 100644 |
299 | --- a/debian/patches/ieee1275-clear-reset.patch |
300 | +++ b/debian/patches/ieee1275-clear-reset.patch |
301 | @@ -1,4 +1,4 @@ |
302 | -From 07e29f9e7e317d74d41fed30c6a8ade4f301652c Mon Sep 17 00:00:00 2001 |
303 | +From 406f5fc7f97315af793414d9e0ca14972bf6de0f Mon Sep 17 00:00:00 2001 |
304 | From: Paulo Flabiano Smorigo <pfsmorigo@linux.vnet.ibm.com> |
305 | Date: Thu, 25 Sep 2014 18:41:29 -0300 |
306 | Subject: Include a text attribute reset in the clear command for ppc |
307 | diff --git a/debian/patches/ignore-grub_func_test-failures.patch b/debian/patches/ignore-grub_func_test-failures.patch |
308 | index cbbd3b2..e70ad7e 100644 |
309 | --- a/debian/patches/ignore-grub_func_test-failures.patch |
310 | +++ b/debian/patches/ignore-grub_func_test-failures.patch |
311 | @@ -1,4 +1,4 @@ |
312 | -From 11457a76c942775508953575e1b284f4c03ee192 Mon Sep 17 00:00:00 2001 |
313 | +From c944dea56be3cce4bf4895a9915d35e75099f420 Mon Sep 17 00:00:00 2001 |
314 | From: Colin Watson <cjwatson@debian.org> |
315 | Date: Mon, 13 Jan 2014 12:13:32 +0000 |
316 | Subject: Ignore functional test failures for now as they are broken |
317 | diff --git a/debian/patches/insmod-xzio-and-lzopio-on-xen.patch b/debian/patches/insmod-xzio-and-lzopio-on-xen.patch |
318 | index b16f128..9f9f5c4 100644 |
319 | --- a/debian/patches/insmod-xzio-and-lzopio-on-xen.patch |
320 | +++ b/debian/patches/insmod-xzio-and-lzopio-on-xen.patch |
321 | @@ -1,4 +1,4 @@ |
322 | -From 125b4317bafb66a6e9381041102c7d789c296ea4 Mon Sep 17 00:00:00 2001 |
323 | +From d6fd02df51bc1b062fe70b2c4f6d33728d4219ee Mon Sep 17 00:00:00 2001 |
324 | From: Ian Campbell <ijc@debian.org> |
325 | Date: Sun, 30 Nov 2014 12:12:52 +0000 |
326 | Subject: Arrange to insmod xzio and lzopio when booting a kernel as a Xen |
327 | @@ -33,10 +33,10 @@ index 2c418c5ec..85b30084a 100644 |
328 | if [ x$dirname = x/ ]; then |
329 | if [ -z "${prepare_root_cache}" ]; then |
330 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
331 | -index b068f0e96..efdb8afae 100755 |
332 | +index 4477fa606..4c48abef0 100755 |
333 | --- a/util/grub.d/10_linux_zfs.in |
334 | +++ b/util/grub.d/10_linux_zfs.in |
335 | -@@ -835,6 +835,7 @@ zfs_linux_entry () { |
336 | +@@ -838,6 +838,7 @@ zfs_linux_entry () { |
337 | fi |
338 | |
339 | echo "${submenu_indentation} insmod gzio" |
340 | diff --git a/debian/patches/install-efi-fallback.patch b/debian/patches/install-efi-fallback.patch |
341 | index 6c0f0cf..7c5d496 100644 |
342 | --- a/debian/patches/install-efi-fallback.patch |
343 | +++ b/debian/patches/install-efi-fallback.patch |
344 | @@ -1,4 +1,4 @@ |
345 | -From 342cbb4b33a6d47e7c1b645ace365203f31165e2 Mon Sep 17 00:00:00 2001 |
346 | +From 70a2610a5392e09978ff7ccd9d69c942f60c522d Mon Sep 17 00:00:00 2001 |
347 | From: Colin Watson <cjwatson@ubuntu.com> |
348 | Date: Mon, 13 Jan 2014 12:13:05 +0000 |
349 | Subject: Fall back to non-EFI if booted using EFI but -efi is missing |
350 | diff --git a/debian/patches/install-efi-ubuntu-flavours.patch b/debian/patches/install-efi-ubuntu-flavours.patch |
351 | index 31a74c8..17fb7dd 100644 |
352 | --- a/debian/patches/install-efi-ubuntu-flavours.patch |
353 | +++ b/debian/patches/install-efi-ubuntu-flavours.patch |
354 | @@ -1,4 +1,4 @@ |
355 | -From 6def03933e04c3f0d3bbcb37b96dc08d1ba67d74 Mon Sep 17 00:00:00 2001 |
356 | +From dc18a17ef4f437fe9edfcf58747b70690e4ad32e Mon Sep 17 00:00:00 2001 |
357 | From: Colin Watson <cjwatson@ubuntu.com> |
358 | Date: Mon, 13 Jan 2014 12:13:27 +0000 |
359 | Subject: Cope with Kubuntu setting GRUB_DISTRIBUTOR |
360 | diff --git a/debian/patches/install-locale-langpack.patch b/debian/patches/install-locale-langpack.patch |
361 | index 4537170..2fc2972 100644 |
362 | --- a/debian/patches/install-locale-langpack.patch |
363 | +++ b/debian/patches/install-locale-langpack.patch |
364 | @@ -1,4 +1,4 @@ |
365 | -From 4f4b15148b61872395936b083eae7b843ac7d373 Mon Sep 17 00:00:00 2001 |
366 | +From 7b60caf762c21f914b0d55b1d1b05dd54106e040 Mon Sep 17 00:00:00 2001 |
367 | From: Colin Watson <cjwatson@ubuntu.com> |
368 | Date: Mon, 13 Jan 2014 12:13:07 +0000 |
369 | Subject: Prefer translations from Ubuntu language packs if available |
370 | diff --git a/debian/patches/install-powerpc-machtypes.patch b/debian/patches/install-powerpc-machtypes.patch |
371 | index bbc8d71..5cc9264 100644 |
372 | --- a/debian/patches/install-powerpc-machtypes.patch |
373 | +++ b/debian/patches/install-powerpc-machtypes.patch |
374 | @@ -1,4 +1,4 @@ |
375 | -From 6468fe3eb25e597acd0c80e3f7b5930472328d89 Mon Sep 17 00:00:00 2001 |
376 | +From 15fb6fc1774a74152ad3070d2f14b88c00759577 Mon Sep 17 00:00:00 2001 |
377 | From: Colin Watson <cjwatson@debian.org> |
378 | Date: Tue, 28 Jan 2014 14:40:02 +0000 |
379 | Subject: Port yaboot logic for various powerpc machine types |
380 | diff --git a/debian/patches/install-stage2-confusion.patch b/debian/patches/install-stage2-confusion.patch |
381 | index a803a68..92211df 100644 |
382 | --- a/debian/patches/install-stage2-confusion.patch |
383 | +++ b/debian/patches/install-stage2-confusion.patch |
384 | @@ -1,4 +1,4 @@ |
385 | -From d9969cb0267a40684bf7a60d70bfc3fc8a962a90 Mon Sep 17 00:00:00 2001 |
386 | +From 65b6b662d6379652ca1bef129a686494669997a1 Mon Sep 17 00:00:00 2001 |
387 | From: Colin Watson <cjwatson@debian.org> |
388 | Date: Mon, 13 Jan 2014 12:12:58 +0000 |
389 | Subject: If GRUB Legacy is still around, tell packaging to ignore it |
390 | diff --git a/debian/patches/maybe-quiet.patch b/debian/patches/maybe-quiet.patch |
391 | index 64e8d68..9c2ac34 100644 |
392 | --- a/debian/patches/maybe-quiet.patch |
393 | +++ b/debian/patches/maybe-quiet.patch |
394 | @@ -1,4 +1,4 @@ |
395 | -From f93cd4fda2916af2b70228878f97cb7bbdeb234d Mon Sep 17 00:00:00 2001 |
396 | +From e5e64092c5dfeab61f1de2ef270827ba84f88c0e Mon Sep 17 00:00:00 2001 |
397 | From: Didier Roche <didrocks@ubuntu.com> |
398 | Date: Tue, 31 Mar 2020 15:20:15 +0200 |
399 | Subject: Add configure option to reduce visual clutter at boot time |
400 | @@ -386,7 +386,7 @@ index cb1cc200e..479a8bf4e 100644 |
401 | EOF |
402 | fi |
403 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
404 | -index c1dfe8ae8..1a656b2dd 100755 |
405 | +index bd4f1a212..3a0e6d103 100755 |
406 | --- a/util/grub.d/10_linux_zfs.in |
407 | +++ b/util/grub.d/10_linux_zfs.in |
408 | @@ -20,6 +20,7 @@ set -e |
409 | @@ -397,7 +397,7 @@ index c1dfe8ae8..1a656b2dd 100755 |
410 | |
411 | . "${pkgdatadir}/grub-mkconfig_lib" |
412 | |
413 | -@@ -776,7 +777,9 @@ zfs_linux_entry () { |
414 | +@@ -779,7 +780,9 @@ zfs_linux_entry () { |
415 | |
416 | echo "$(prepare_grub_to_access_device_cached "${boot_device}" "${submenu_level}")" |
417 | |
418 | @@ -408,7 +408,7 @@ index c1dfe8ae8..1a656b2dd 100755 |
419 | |
420 | linux_default_args="${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" |
421 | if [ ${type} = "recovery" ]; then |
422 | -@@ -785,7 +788,9 @@ zfs_linux_entry () { |
423 | +@@ -788,7 +791,9 @@ zfs_linux_entry () { |
424 | |
425 | echo "${submenu_indentation} linux ${kernel} root=ZFS=${dataset} ro ${linux_default_args} ${kernel_additional_args}" |
426 | |
427 | diff --git a/debian/patches/mkconfig-loopback.patch b/debian/patches/mkconfig-loopback.patch |
428 | index 0c7498b..fee02df 100644 |
429 | --- a/debian/patches/mkconfig-loopback.patch |
430 | +++ b/debian/patches/mkconfig-loopback.patch |
431 | @@ -1,4 +1,4 @@ |
432 | -From 4750b94c28b61e29d3f1bfce6bc7fa8f48c45526 Mon Sep 17 00:00:00 2001 |
433 | +From 797776285ad55df88f81c3c17656e03a187e7140 Mon Sep 17 00:00:00 2001 |
434 | From: Colin Watson <cjwatson@debian.org> |
435 | Date: Mon, 13 Jan 2014 12:13:00 +0000 |
436 | Subject: Handle filesystems loop-mounted on file images |
437 | diff --git a/debian/patches/mkconfig-mid-upgrade.patch b/debian/patches/mkconfig-mid-upgrade.patch |
438 | index 248f6c3..5740e25 100644 |
439 | --- a/debian/patches/mkconfig-mid-upgrade.patch |
440 | +++ b/debian/patches/mkconfig-mid-upgrade.patch |
441 | @@ -1,4 +1,4 @@ |
442 | -From 8ce50d6419c04a49070868a4245664419e0901fa Mon Sep 17 00:00:00 2001 |
443 | +From 1033aefcd66f55eb12dedee2311b217beb1d9349 Mon Sep 17 00:00:00 2001 |
444 | From: Colin Watson <cjwatson@ubuntu.com> |
445 | Date: Mon, 13 Jan 2014 12:13:03 +0000 |
446 | Subject: Bail out if trying to run grub-mkconfig during upgrade to 2.00 |
447 | diff --git a/debian/patches/mkconfig-nonexistent-loopback.patch b/debian/patches/mkconfig-nonexistent-loopback.patch |
448 | index 9b8b848..dd84206 100644 |
449 | --- a/debian/patches/mkconfig-nonexistent-loopback.patch |
450 | +++ b/debian/patches/mkconfig-nonexistent-loopback.patch |
451 | @@ -1,4 +1,4 @@ |
452 | -From c754f6529f31d14b1110f457e9244f6454a2ed4e Mon Sep 17 00:00:00 2001 |
453 | +From 615a0ad44bd41bf58f71ac391416ce9be1b4b7ae Mon Sep 17 00:00:00 2001 |
454 | From: Colin Watson <cjwatson@ubuntu.com> |
455 | Date: Mon, 13 Jan 2014 12:13:08 +0000 |
456 | Subject: Avoid getting confused by inaccessible loop device backing paths |
457 | diff --git a/debian/patches/mkconfig-other-inits.patch b/debian/patches/mkconfig-other-inits.patch |
458 | index e7dd0b6..4f51332 100644 |
459 | --- a/debian/patches/mkconfig-other-inits.patch |
460 | +++ b/debian/patches/mkconfig-other-inits.patch |
461 | @@ -1,4 +1,4 @@ |
462 | -From 0564e92b1f182280d433e829406bdf91dd19a357 Mon Sep 17 00:00:00 2001 |
463 | +From 2015389b99c6a5eda55aa56a14dd4c65cf2a0d59 Mon Sep 17 00:00:00 2001 |
464 | From: Colin Watson <cjwatson@debian.org> |
465 | Date: Sat, 3 Jan 2015 12:04:59 +0000 |
466 | Subject: Generate alternative init entries in advanced menu |
467 | diff --git a/debian/patches/mkconfig-recovery-title.patch b/debian/patches/mkconfig-recovery-title.patch |
468 | index 869fc30..510299c 100644 |
469 | --- a/debian/patches/mkconfig-recovery-title.patch |
470 | +++ b/debian/patches/mkconfig-recovery-title.patch |
471 | @@ -1,4 +1,4 @@ |
472 | -From 0636b004bd56946dd24ce0afff820f9ed76da34b Mon Sep 17 00:00:00 2001 |
473 | +From d8fd4cbf012ffc87a49de8cc28ed27c82f2eec1b Mon Sep 17 00:00:00 2001 |
474 | From: Colin Watson <cjwatson@ubuntu.com> |
475 | Date: Mon, 13 Jan 2014 12:13:33 +0000 |
476 | Subject: Add GRUB_RECOVERY_TITLE option |
477 | @@ -104,10 +104,10 @@ index cc2dd855a..2c418c5ec 100644 |
478 | title="$(gettext_printf "%s, with Linux %s" "${os}" "${version}")" ;; |
479 | esac |
480 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
481 | -index b636dc7bb..b068f0e96 100755 |
482 | +index 48a4e6897..4477fa606 100755 |
483 | --- a/util/grub.d/10_linux_zfs.in |
484 | +++ b/util/grub.d/10_linux_zfs.in |
485 | -@@ -954,7 +954,7 @@ generate_grub_menu() { |
486 | +@@ -957,7 +957,7 @@ generate_grub_menu() { |
487 | |
488 | GRUB_DISABLE_RECOVERY=${GRUB_DISABLE_RECOVERY:-} |
489 | if [ "${GRUB_DISABLE_RECOVERY}" != "true" ]; then |
490 | @@ -116,7 +116,7 @@ index b636dc7bb..b068f0e96 100755 |
491 | zfs_linux_entry 1 "${title}" "recovery" "${dataset}" "${device}" "${initrd}" "${kernel}" |
492 | fi |
493 | at_least_one_entry=1 |
494 | -@@ -982,9 +982,9 @@ generate_grub_menu() { |
495 | +@@ -985,9 +985,9 @@ generate_grub_menu() { |
496 | |
497 | GRUB_DISABLE_RECOVERY="${GRUB_DISABLE_RECOVERY:-}" |
498 | if [ "${GRUB_DISABLE_RECOVERY}" != "true" ]; then |
499 | @@ -128,7 +128,7 @@ index b636dc7bb..b068f0e96 100755 |
500 | zfs_linux_entry 2 "${title}" "recovery" "${dataset}" "${device}" "${initrd}" "${kernel}" "zsys-revert=userdata" |
501 | fi |
502 | # Non-zsys: boot temporarly on snapshots or rollback (destroying intermediate snapshots) |
503 | -@@ -994,7 +994,7 @@ generate_grub_menu() { |
504 | +@@ -997,7 +997,7 @@ generate_grub_menu() { |
505 | |
506 | GRUB_DISABLE_RECOVERY="${GRUB_DISABLE_RECOVERY:-}" |
507 | if [ "${GRUB_DISABLE_RECOVERY}" != "true" ]; then |
508 | diff --git a/debian/patches/mkconfig-signed-kernel.patch b/debian/patches/mkconfig-signed-kernel.patch |
509 | index ea7cdb0..dadecb5 100644 |
510 | --- a/debian/patches/mkconfig-signed-kernel.patch |
511 | +++ b/debian/patches/mkconfig-signed-kernel.patch |
512 | @@ -1,4 +1,4 @@ |
513 | -From 956c3d193e7c756f52fc0cfda463eb17ed58b4ce Mon Sep 17 00:00:00 2001 |
514 | +From 72835133813a3e59c58d6908a82cbc3f36adf34a Mon Sep 17 00:00:00 2001 |
515 | From: Didier Roche <didrocks@ubuntu.com> |
516 | Date: Tue, 31 Mar 2020 15:17:45 +0200 |
517 | Subject: Generate configuration for signed UEFI kernels if available |
518 | @@ -48,7 +48,7 @@ index 19e4df4ad..cb1cc200e 100644 |
519 | basename=`basename $linux` |
520 | dirname=`dirname $linux` |
521 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
522 | -index bd5b963b6..c1dfe8ae8 100755 |
523 | +index 7f88e771e..bd4f1a212 100755 |
524 | --- a/util/grub.d/10_linux_zfs.in |
525 | +++ b/util/grub.d/10_linux_zfs.in |
526 | @@ -339,6 +339,16 @@ try_default_layout_bpool() { |
527 | @@ -68,7 +68,7 @@ index bd5b963b6..c1dfe8ae8 100755 |
528 | # Given a filesystem or snapshot dataset, returns dataset|machine id|pretty name|last used |
529 | # $1 is dataset we want information from |
530 | # $2 is the temporary mount directory to use |
531 | -@@ -409,6 +419,17 @@ get_dataset_info() { |
532 | +@@ -412,6 +422,17 @@ get_dataset_info() { |
533 | continue |
534 | fi |
535 | |
536 | diff --git a/debian/patches/mkconfig-ubuntu-distributor.patch b/debian/patches/mkconfig-ubuntu-distributor.patch |
537 | index 6ae0bef..e6fed48 100644 |
538 | --- a/debian/patches/mkconfig-ubuntu-distributor.patch |
539 | +++ b/debian/patches/mkconfig-ubuntu-distributor.patch |
540 | @@ -1,4 +1,4 @@ |
541 | -From 5cddc9390afad242b31604806e8fb46ca92bf891 Mon Sep 17 00:00:00 2001 |
542 | +From 01c7c86b01698ebf65fe99c34d2d79a39b76b4c1 Mon Sep 17 00:00:00 2001 |
543 | From: Mario Limonciello <Mario_Limonciello@dell.com> |
544 | Date: Mon, 13 Jan 2014 12:13:14 +0000 |
545 | Subject: Remove GNU/Linux from default distributor string for Ubuntu |
546 | @@ -37,10 +37,10 @@ index fcd303387..19e4df4ad 100644 |
547 | fi |
548 | |
549 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
550 | -index 5db1f6682..bd5b963b6 100755 |
551 | +index de4d21590..7f88e771e 100755 |
552 | --- a/util/grub.d/10_linux_zfs.in |
553 | +++ b/util/grub.d/10_linux_zfs.in |
554 | -@@ -787,7 +787,14 @@ generate_grub_menu() { |
555 | +@@ -790,7 +790,14 @@ generate_grub_menu() { |
556 | if [ "${GRUB_DISTRIBUTOR}" = "" ] ; then |
557 | OS=GNU/Linux |
558 | else |
559 | diff --git a/debian/patches/mkconfig-ubuntu-recovery.patch b/debian/patches/mkconfig-ubuntu-recovery.patch |
560 | index f81ab40..473f18c 100644 |
561 | --- a/debian/patches/mkconfig-ubuntu-recovery.patch |
562 | +++ b/debian/patches/mkconfig-ubuntu-recovery.patch |
563 | @@ -1,4 +1,4 @@ |
564 | -From fb4d204572ca4dec63b3d3f25a3b69da97815726 Mon Sep 17 00:00:00 2001 |
565 | +From 3699711858d0aead05bc9a8e057022a90644cda6 Mon Sep 17 00:00:00 2001 |
566 | From: Didier Roche <didrocks@ubuntu.com> |
567 | Date: Tue, 31 Mar 2020 15:16:36 +0200 |
568 | Subject: "single" -> "recovery" when friendly-recovery is installed |
569 | @@ -94,7 +94,7 @@ index d927b60ae..fcd303387 100644 |
570 | |
571 | list=`echo $list | tr ' ' '\n' | fgrep -vx "$linux" | tr '\n' ' '` |
572 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
573 | -index d27634738..5db1f6682 100755 |
574 | +index b24587f0a..de4d21590 100755 |
575 | --- a/util/grub.d/10_linux_zfs.in |
576 | +++ b/util/grub.d/10_linux_zfs.in |
577 | @@ -19,6 +19,7 @@ set -e |
578 | @@ -105,7 +105,7 @@ index d27634738..5db1f6682 100755 |
579 | |
580 | . "${pkgdatadir}/grub-mkconfig_lib" |
581 | |
582 | -@@ -745,7 +746,9 @@ zfs_linux_entry () { |
583 | +@@ -748,7 +749,9 @@ zfs_linux_entry () { |
584 | if [ "${GRUB_GFXPAYLOAD_LINUX}" != "text" ]; then |
585 | echo "${submenu_indentation} load_video" |
586 | fi |
587 | @@ -116,7 +116,7 @@ index d27634738..5db1f6682 100755 |
588 | fi |
589 | |
590 | echo "${submenu_indentation} insmod gzio" |
591 | -@@ -756,7 +759,7 @@ zfs_linux_entry () { |
592 | +@@ -759,7 +762,7 @@ zfs_linux_entry () { |
593 | |
594 | linux_default_args="${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" |
595 | if [ ${type} = "recovery" ]; then |
596 | @@ -125,7 +125,7 @@ index d27634738..5db1f6682 100755 |
597 | fi |
598 | |
599 | echo "${submenu_indentation} linux ${kernel} root=ZFS=${dataset} ro ${linux_default_args} ${kernel_additional_args}" |
600 | -@@ -788,6 +791,14 @@ generate_grub_menu() { |
601 | +@@ -791,6 +794,14 @@ generate_grub_menu() { |
602 | CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1 | LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}" |
603 | fi |
604 | |
605 | diff --git a/debian/patches/mkrescue-efi-modules.patch b/debian/patches/mkrescue-efi-modules.patch |
606 | index d0e0688..9131845 100644 |
607 | --- a/debian/patches/mkrescue-efi-modules.patch |
608 | +++ b/debian/patches/mkrescue-efi-modules.patch |
609 | @@ -1,4 +1,4 @@ |
610 | -From 40df0707380bf528d9f849b065c3a5e4e96113ac Mon Sep 17 00:00:00 2001 |
611 | +From 73f95865a1ffacb1e10e431e114baa67d36a27e1 Mon Sep 17 00:00:00 2001 |
612 | From: Mario Limonciello <Mario_Limonciello@dell.com> |
613 | Date: Mon, 13 Jan 2014 12:12:59 +0000 |
614 | Subject: Build vfat into EFI boot images |
615 | diff --git a/debian/patches/net-read-bracketed-ipv6-addr.patch b/debian/patches/net-read-bracketed-ipv6-addr.patch |
616 | index 9afab37..d41ae71 100644 |
617 | --- a/debian/patches/net-read-bracketed-ipv6-addr.patch |
618 | +++ b/debian/patches/net-read-bracketed-ipv6-addr.patch |
619 | @@ -1,4 +1,4 @@ |
620 | -From 5b535ee06d2b6e98a6b9c7d1a79ff611e10e1b0a Mon Sep 17 00:00:00 2001 |
621 | +From b16ad7afe148eb58e1443bc6c20cd017cee3d7aa Mon Sep 17 00:00:00 2001 |
622 | From: Aaron Miller <aaronmiller@fb.com> |
623 | Date: Thu, 27 Oct 2016 17:39:49 -0400 |
624 | Subject: net: read bracketed ipv6 addrs and port numbers |
625 | diff --git a/debian/patches/no-devicetree-if-secure-boot.patch b/debian/patches/no-devicetree-if-secure-boot.patch |
626 | index 2c20d15..de4bc73 100644 |
627 | --- a/debian/patches/no-devicetree-if-secure-boot.patch |
628 | +++ b/debian/patches/no-devicetree-if-secure-boot.patch |
629 | @@ -1,4 +1,4 @@ |
630 | -From e7c4e6c655bc9eebdd22fb6f3d9b2aafabffa1b4 Mon Sep 17 00:00:00 2001 |
631 | +From 107663390a84f31f304094df29dd31a5584fa0b9 Mon Sep 17 00:00:00 2001 |
632 | From: Peter Jones <pjones@redhat.com> |
633 | Date: Wed, 24 Apr 2019 10:03:04 -0400 |
634 | Subject: Forbid the "devicetree" command when Secure Boot is enabled. |
635 | diff --git a/debian/patches/no-insmod-on-sb.patch b/debian/patches/no-insmod-on-sb.patch |
636 | index 95a34cd..0f1c334 100644 |
637 | --- a/debian/patches/no-insmod-on-sb.patch |
638 | +++ b/debian/patches/no-insmod-on-sb.patch |
639 | @@ -1,4 +1,4 @@ |
640 | -From 98ac694bdd7938cdfcd5615cc78e3211a0bcba93 Mon Sep 17 00:00:00 2001 |
641 | +From f80581266f3dc0cfa3be1e8cf2097f6cb880cfa4 Mon Sep 17 00:00:00 2001 |
642 | From: Matthew Garrett <mjg@redhat.com> |
643 | Date: Mon, 13 Jan 2014 12:13:09 +0000 |
644 | Subject: Don't permit loading modules on UEFI secure boot |
645 | diff --git a/debian/patches/ppc64el-disable-vsx.patch b/debian/patches/ppc64el-disable-vsx.patch |
646 | index ab96b1d..1bb2774 100644 |
647 | --- a/debian/patches/ppc64el-disable-vsx.patch |
648 | +++ b/debian/patches/ppc64el-disable-vsx.patch |
649 | @@ -1,4 +1,4 @@ |
650 | -From 0bdaf481feca277ee87f42052fad4a59ede0c8e4 Mon Sep 17 00:00:00 2001 |
651 | +From 156930a8fe9525c51ec9608b8aff8c561dd6cc40 Mon Sep 17 00:00:00 2001 |
652 | From: Paulo Flabiano Smorigo <pfsmorigo@linux.vnet.ibm.com> |
653 | Date: Thu, 25 Sep 2014 19:33:39 -0300 |
654 | Subject: Disable VSX instruction |
655 | diff --git a/debian/patches/probe-fusionio.patch b/debian/patches/probe-fusionio.patch |
656 | index 7756341..9fa19bb 100644 |
657 | --- a/debian/patches/probe-fusionio.patch |
658 | +++ b/debian/patches/probe-fusionio.patch |
659 | @@ -1,4 +1,4 @@ |
660 | -From 738369f06f930cedd51f22f9d519a09aa7e73176 Mon Sep 17 00:00:00 2001 |
661 | +From 81099f3b80801da7d591ab4ae14a568345c79119 Mon Sep 17 00:00:00 2001 |
662 | From: Colin Watson <cjwatson@ubuntu.com> |
663 | Date: Mon, 13 Jan 2014 12:13:31 +0000 |
664 | Subject: Probe FusionIO devices |
665 | diff --git a/debian/patches/quick-boot-lvm.patch b/debian/patches/quick-boot-lvm.patch |
666 | index 23a9989..62748fd 100644 |
667 | --- a/debian/patches/quick-boot-lvm.patch |
668 | +++ b/debian/patches/quick-boot-lvm.patch |
669 | @@ -1,4 +1,4 @@ |
670 | -From ff47caaf5a89c61bb85e7ed22570b24481b9ff15 Mon Sep 17 00:00:00 2001 |
671 | +From ac0a158a4841bbc10112fa398d8ad65221792107 Mon Sep 17 00:00:00 2001 |
672 | From: Steve Langasek <steve.langasek@ubuntu.com> |
673 | Date: Tue, 30 Oct 2018 15:04:16 -0700 |
674 | Subject: If we don't have writable grubenv and we're on EFI, always show the |
675 | diff --git a/debian/patches/quick-boot.patch b/debian/patches/quick-boot.patch |
676 | index 01fc3c9..96d5915 100644 |
677 | --- a/debian/patches/quick-boot.patch |
678 | +++ b/debian/patches/quick-boot.patch |
679 | @@ -1,4 +1,4 @@ |
680 | -From a62555d9b0bc27ecf2c018018d61589ebdf15321 Mon Sep 17 00:00:00 2001 |
681 | +From f8150f56df7110d17b71cdacc79b451593f17feb Mon Sep 17 00:00:00 2001 |
682 | From: Colin Watson <cjwatson@ubuntu.com> |
683 | Date: Mon, 13 Jan 2014 12:13:28 +0000 |
684 | Subject: Add configure option to bypass boot menu if possible |
685 | @@ -281,7 +281,7 @@ index 479a8bf4e..2be66c702 100644 |
686 | save_default_entry | grub_add_tab |
687 | fi |
688 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
689 | -index 1a656b2dd..548e14856 100755 |
690 | +index 3a0e6d103..ec4b49d9d 100755 |
691 | --- a/util/grub.d/10_linux_zfs.in |
692 | +++ b/util/grub.d/10_linux_zfs.in |
693 | @@ -21,6 +21,7 @@ prefix="@prefix@" |
694 | @@ -292,7 +292,7 @@ index 1a656b2dd..548e14856 100755 |
695 | |
696 | . "${pkgdatadir}/grub-mkconfig_lib" |
697 | |
698 | -@@ -752,6 +753,10 @@ zfs_linux_entry () { |
699 | +@@ -755,6 +756,10 @@ zfs_linux_entry () { |
700 | |
701 | echo "${submenu_indentation}menuentry '$(echo "${title}" | grub_quote)' ${CLASS} \${menuentry_id_option} 'gnulinux-${dataset}-${kernel_version}' {" |
702 | |
703 | diff --git a/debian/patches/restore-mkdevicemap.patch b/debian/patches/restore-mkdevicemap.patch |
704 | index 267b972..62e20f5 100644 |
705 | --- a/debian/patches/restore-mkdevicemap.patch |
706 | +++ b/debian/patches/restore-mkdevicemap.patch |
707 | @@ -1,4 +1,4 @@ |
708 | -From 6db8234a46f194578fb414730dd3ea80a60b13d4 Mon Sep 17 00:00:00 2001 |
709 | +From 660f98d4548f4327954fba9410041a75893ad338 Mon Sep 17 00:00:00 2001 |
710 | From: Colin Watson <cjwatson@debian.org> |
711 | Date: Mon, 13 Jan 2014 12:13:01 +0000 |
712 | Subject: Restore grub-mkdevicemap |
713 | diff --git a/debian/patches/series b/debian/patches/series |
714 | index ff96a5c..8ebde51 100644 |
715 | --- a/debian/patches/series |
716 | +++ b/debian/patches/series |
717 | @@ -79,3 +79,5 @@ cherrypick-lsefisystab-show-dtb.patch |
718 | ubuntu-resilient-boot-ignore-alternative-esps.patch |
719 | ubuntu-resilient-boot-boot-order.patch |
720 | ubuntu-speed-zsys-history.patch |
721 | +ubuntu-flavour-order.patch |
722 | +ubuntu-dont-verify-loopback-images.patch |
723 | diff --git a/debian/patches/skip-grub_cmd_set_date.patch b/debian/patches/skip-grub_cmd_set_date.patch |
724 | index 08e663b..d8cd06d 100644 |
725 | --- a/debian/patches/skip-grub_cmd_set_date.patch |
726 | +++ b/debian/patches/skip-grub_cmd_set_date.patch |
727 | @@ -1,4 +1,4 @@ |
728 | -From e37f5abdb9057be5d79ec34bab535ff059fa6b7f Mon Sep 17 00:00:00 2001 |
729 | +From 7dfe0ce472f7f0bdbe07cbe67958f06951c88f59 Mon Sep 17 00:00:00 2001 |
730 | From: Colin Watson <cjwatson@debian.org> |
731 | Date: Sun, 28 Oct 2018 19:45:56 +0000 |
732 | Subject: Skip flaky grub_cmd_set_date test |
733 | diff --git a/debian/patches/sleep-shift.patch b/debian/patches/sleep-shift.patch |
734 | index b739b45..c84df1e 100644 |
735 | --- a/debian/patches/sleep-shift.patch |
736 | +++ b/debian/patches/sleep-shift.patch |
737 | @@ -1,4 +1,4 @@ |
738 | -From 8ff02f24d30da862a7ffe530aa2ff692ad8f1b06 Mon Sep 17 00:00:00 2001 |
739 | +From dd350028f89cd033b832511d1888b49538ad2fd4 Mon Sep 17 00:00:00 2001 |
740 | From: Colin Watson <cjwatson@ubuntu.com> |
741 | Date: Mon, 13 Jan 2014 12:13:23 +0000 |
742 | Subject: Allow Shift to interrupt 'sleep --interruptible' |
743 | diff --git a/debian/patches/ubuntu-add-devicetree-command-support.patch b/debian/patches/ubuntu-add-devicetree-command-support.patch |
744 | index 316ed31..b87b4c7 100644 |
745 | --- a/debian/patches/ubuntu-add-devicetree-command-support.patch |
746 | +++ b/debian/patches/ubuntu-add-devicetree-command-support.patch |
747 | @@ -1,4 +1,4 @@ |
748 | -From a30c330fb776934ef1dbaa9784960172650ecdfa Mon Sep 17 00:00:00 2001 |
749 | +From 9410abc98d9b5f6bed3d7dee1872b254fee9a532 Mon Sep 17 00:00:00 2001 |
750 | From: Dimitri John Ledkov <xnox@ubuntu.com> |
751 | Date: Wed, 22 May 2019 19:57:29 +0100 |
752 | Subject: Add devicetree command, if a dtb is present. |
753 | diff --git a/debian/patches/ubuntu-add-initrd-less-boot-fallback.patch b/debian/patches/ubuntu-add-initrd-less-boot-fallback.patch |
754 | index 8778d34..1c7fe0c 100644 |
755 | --- a/debian/patches/ubuntu-add-initrd-less-boot-fallback.patch |
756 | +++ b/debian/patches/ubuntu-add-initrd-less-boot-fallback.patch |
757 | @@ -1,4 +1,4 @@ |
758 | -From f44b20b94883a77b5f8ef8370bedb8457456907d Mon Sep 17 00:00:00 2001 |
759 | +From 29e19fc57024367d310d7efe8f5d1d0a14791960 Mon Sep 17 00:00:00 2001 |
760 | From: Chris Glass <chris.glass@canonical.com> |
761 | Date: Fri, 9 Mar 2018 13:47:07 +0100 |
762 | Subject: UBUNTU: Added initrd-less boot capabilities. |
763 | diff --git a/debian/patches/ubuntu-boot-from-multipath-dependent-symlink.patch b/debian/patches/ubuntu-boot-from-multipath-dependent-symlink.patch |
764 | index d8b8810..f25028b 100644 |
765 | --- a/debian/patches/ubuntu-boot-from-multipath-dependent-symlink.patch |
766 | +++ b/debian/patches/ubuntu-boot-from-multipath-dependent-symlink.patch |
767 | @@ -1,4 +1,4 @@ |
768 | -From 4f4f4b1ce88642c1c13f12b425484906098590b5 Mon Sep 17 00:00:00 2001 |
769 | +From 1a8e3f4732ee883512333ae67eb773161f7e8e50 Mon Sep 17 00:00:00 2001 |
770 | From: Michael Hudson-Doyle <michael.hudson@canonical.com> |
771 | Date: Tue, 6 Aug 2019 12:31:47 +1200 |
772 | Subject: UBUNTU: Boot from multipath-dependent symlink when / is multipathed. |
773 | diff --git a/debian/patches/ubuntu-clear-invalid-initrd-spacing.patch b/debian/patches/ubuntu-clear-invalid-initrd-spacing.patch |
774 | index 14951f6..49e287e 100644 |
775 | --- a/debian/patches/ubuntu-clear-invalid-initrd-spacing.patch |
776 | +++ b/debian/patches/ubuntu-clear-invalid-initrd-spacing.patch |
777 | @@ -1,4 +1,4 @@ |
778 | -From a5307d00cee7f22074b89f393cb99c968f657ddb Mon Sep 17 00:00:00 2001 |
779 | +From 0791ce3b6a862e3e714a1bf226b81a21862d9b5b Mon Sep 17 00:00:00 2001 |
780 | From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> |
781 | Date: Thu, 11 Jul 2019 09:07:47 -0400 |
782 | Subject: UBUNTU: Clear up incorrect spacing when not using early initrds |
783 | diff --git a/debian/patches/ubuntu-dont-verify-loopback-images.patch b/debian/patches/ubuntu-dont-verify-loopback-images.patch |
784 | new file mode 100644 |
785 | index 0000000..2a5adee |
786 | --- /dev/null |
787 | +++ b/debian/patches/ubuntu-dont-verify-loopback-images.patch |
788 | @@ -0,0 +1,37 @@ |
789 | +From 0fb88755986ad4c14500e769b8543a9a72e718ef Mon Sep 17 00:00:00 2001 |
790 | +From: Chris Coulson <chris.coulson@canonical.com> |
791 | +Date: Mon, 1 Jun 2020 14:03:37 +0100 |
792 | +Subject: UBUNTU: disk/loopback: Don't verify loopback images |
793 | + |
794 | +When a file is verified, the entire contents of the verified file are |
795 | +loaded in to memory and retained until the file handle is closed. A |
796 | +consequence of this is that opening a loopback image can incur a |
797 | +significant memory cost. |
798 | + |
799 | +As loopback devices are just another disk implementation, don't treat |
800 | +loopback images any differently to physical disk images, and skip |
801 | +verification of them. Files opened from the filesystem within a loopback |
802 | +image will still be passed to verifier modules where required. |
803 | + |
804 | +Signed-off-by: Chris Coulson <chris.coulson@canonical.com> |
805 | +LP: #1878541 |
806 | +Forwarded: yes, https://lists.gnu.org/archive/html/grub-devel/2020-06/msg00002.html |
807 | +Patch-Name: ubuntu-dont-verify-loopback-images.patch |
808 | +--- |
809 | + grub-core/disk/loopback.c | 3 ++- |
810 | + 1 file changed, 2 insertions(+), 1 deletion(-) |
811 | + |
812 | +diff --git a/grub-core/disk/loopback.c b/grub-core/disk/loopback.c |
813 | +index ccb4b167c..210201d22 100644 |
814 | +--- a/grub-core/disk/loopback.c |
815 | ++++ b/grub-core/disk/loopback.c |
816 | +@@ -86,7 +86,8 @@ grub_cmd_loopback (grub_extcmd_context_t ctxt, int argc, char **args) |
817 | + return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("filename expected")); |
818 | + |
819 | + file = grub_file_open (args[1], GRUB_FILE_TYPE_LOOPBACK |
820 | +- | GRUB_FILE_TYPE_NO_DECOMPRESS); |
821 | ++ | GRUB_FILE_TYPE_NO_DECOMPRESS | |
822 | ++ GRUB_FILE_TYPE_SKIP_SIGNATURE); |
823 | + if (! file) |
824 | + return grub_errno; |
825 | + |
826 | diff --git a/debian/patches/ubuntu-efi-allow-loopmount-chainload.patch b/debian/patches/ubuntu-efi-allow-loopmount-chainload.patch |
827 | index 94cd6db..ae46eb8 100644 |
828 | --- a/debian/patches/ubuntu-efi-allow-loopmount-chainload.patch |
829 | +++ b/debian/patches/ubuntu-efi-allow-loopmount-chainload.patch |
830 | @@ -1,4 +1,4 @@ |
831 | -From fdcce3de9327b0c8009054baa1ed13fb8572e1ac Mon Sep 17 00:00:00 2001 |
832 | +From 21aee738cf34184cc8546eafb31fac79b90f7409 Mon Sep 17 00:00:00 2001 |
833 | From: Dimitri John Ledkov <xnox@ubuntu.com> |
834 | Date: Wed, 27 Nov 2019 23:12:35 +0000 |
835 | Subject: UBUNTU: Allow chainloading EFI apps from loop mounts. |
836 | 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 |
837 | index b1efc2e..088e793 100644 |
838 | --- a/debian/patches/ubuntu-efi-console-set-text-mode-as-needed.patch |
839 | +++ b/debian/patches/ubuntu-efi-console-set-text-mode-as-needed.patch |
840 | @@ -1,4 +1,4 @@ |
841 | -From ab83d387cda5158fd4a3940dc067c55a6ee7f9f4 Mon Sep 17 00:00:00 2001 |
842 | +From a7f1a5663f165025c279dd0a13cdec06d27f03e8 Mon Sep 17 00:00:00 2001 |
843 | From: Hans de Goede <hdegoede@redhat.com> |
844 | Date: Tue, 6 Mar 2018 17:11:15 +0100 |
845 | Subject: UBUNTU: EFI: Do not set text-mode until we actually need it |
846 | diff --git a/debian/patches/ubuntu-fix-lzma-decompressor-objcopy.patch b/debian/patches/ubuntu-fix-lzma-decompressor-objcopy.patch |
847 | index ff9a6b1..838d069 100644 |
848 | --- a/debian/patches/ubuntu-fix-lzma-decompressor-objcopy.patch |
849 | +++ b/debian/patches/ubuntu-fix-lzma-decompressor-objcopy.patch |
850 | @@ -1,4 +1,4 @@ |
851 | -From 56715cae7b821ff8395078ff79a4a2ee937cb4db Mon Sep 17 00:00:00 2001 |
852 | +From 07c82b2e9d096aed1e826f4ae821ecad7029f0b3 Mon Sep 17 00:00:00 2001 |
853 | From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> |
854 | Date: Wed, 3 Jul 2019 15:21:16 -0400 |
855 | Subject: UBUNTU: Have the lzma decompressor image only contain the .text |
856 | diff --git a/debian/patches/ubuntu-flavour-order.patch b/debian/patches/ubuntu-flavour-order.patch |
857 | new file mode 100644 |
858 | index 0000000..5c894a4 |
859 | --- /dev/null |
860 | +++ b/debian/patches/ubuntu-flavour-order.patch |
861 | @@ -0,0 +1,47 @@ |
862 | +From 10e2a52f5516dafa5332d29aa1015d24b0db972d Mon Sep 17 00:00:00 2001 |
863 | +From: Julian Andres Klode <julian.klode@canonical.com> |
864 | +Date: Tue, 9 Jun 2020 11:50:23 +0200 |
865 | +Subject: UBUNTU: Add GRUB_FLAVOUR_ORDER configuration item |
866 | + |
867 | +This allows you to specify flavours that will be preferred |
868 | +over other ones, and the order in which they are preferred |
869 | +- items in the list win over items not in the list, and items |
870 | +earlier in the list win over later ones. |
871 | + |
872 | +We still have to sort out storage of this, as we need to |
873 | +inject that from packages or the UA client and similar, |
874 | +and we can't just modify /etc/default/grub for that. |
875 | + |
876 | +LP: #1882663 |
877 | +Patch-Name: ubuntu-flavour-order.patch |
878 | +--- |
879 | + util/grub-mkconfig_lib.in | 16 ++++++++++++++++ |
880 | + 1 file changed, 16 insertions(+) |
881 | + |
882 | +diff --git a/util/grub-mkconfig_lib.in b/util/grub-mkconfig_lib.in |
883 | +index fe6319abe..4a6614940 100644 |
884 | +--- a/util/grub-mkconfig_lib.in |
885 | ++++ b/util/grub-mkconfig_lib.in |
886 | +@@ -270,6 +270,22 @@ version_test_gt () |
887 | + if [ "x$version_test_gt_b" = "x" ] ; then |
888 | + return 0 |
889 | + fi |
890 | ++ |
891 | ++ # GRUB_FLAVOUR_ORDER is an ordered list of kernels, in decreasing |
892 | ++ # priority. Any items in the list take precedence over other kernels, |
893 | ++ # and earlier flavours are preferred over later ones. |
894 | ++ for flavour in ${GRUB_FLAVOUR_ORDER:-}; do |
895 | ++ echo "Checking flavour $flavour" >&2 |
896 | ++ version_test_gt_a_preferred=$(echo "$version_test_gt_a" | grep -- "-[0-9]*-$flavour\$") |
897 | ++ version_test_gt_b_preferred=$(echo "$version_test_gt_b" | grep -- "-[0-9]*-$flavour\$") |
898 | ++ |
899 | ++ if [ -n "$version_test_gt_a_preferred" -a -z "$version_test_gt_b_preferred" ] ; then |
900 | ++ return 0 |
901 | ++ elif [ -z "$version_test_gt_a_preferred" -a -n "$version_test_gt_b_preferred" ] ; then |
902 | ++ return 1 |
903 | ++ fi |
904 | ++ done |
905 | ++ |
906 | + case "$version_test_gt_a:$version_test_gt_b" in |
907 | + *.old:*.old) ;; |
908 | + *.old:*) version_test_gt_a="`echo "$version_test_gt_a" | sed -e 's/\.old$//'`" ; version_test_gt_cmp=gt ;; |
909 | diff --git a/debian/patches/ubuntu-grub-install-extra-removable.patch b/debian/patches/ubuntu-grub-install-extra-removable.patch |
910 | index 653d6db..c28149a 100644 |
911 | --- a/debian/patches/ubuntu-grub-install-extra-removable.patch |
912 | +++ b/debian/patches/ubuntu-grub-install-extra-removable.patch |
913 | @@ -1,4 +1,4 @@ |
914 | -From a2c29740e83520a037e3aa6e88c874ca0b5b991a Mon Sep 17 00:00:00 2001 |
915 | +From b87f13adb4998b9f68981636533b1d186030ac83 Mon Sep 17 00:00:00 2001 |
916 | From: Steve McIntyre <93sam@debian.org> |
917 | Date: Wed, 3 Dec 2014 01:25:12 +0000 |
918 | Subject: UBUNTU: Add support for forcing EFI installation to the removable |
919 | diff --git a/debian/patches/ubuntu-install-signed.patch b/debian/patches/ubuntu-install-signed.patch |
920 | index 688b5ab..2727829 100644 |
921 | --- a/debian/patches/ubuntu-install-signed.patch |
922 | +++ b/debian/patches/ubuntu-install-signed.patch |
923 | @@ -1,4 +1,4 @@ |
924 | -From e66b6951c463ed36d7c3a8cff50c5dbdfa29e99a Mon Sep 17 00:00:00 2001 |
925 | +From 4d418a4d382eeb84eb67c8581819dd10894ed048 Mon Sep 17 00:00:00 2001 |
926 | From: Colin Watson <cjwatson@ubuntu.com> |
927 | Date: Mon, 13 Jan 2014 12:13:22 +0000 |
928 | Subject: UBUNTU: Install signed images if UEFI Secure Boot is enabled |
929 | diff --git a/debian/patches/ubuntu-linuxefi.patch b/debian/patches/ubuntu-linuxefi.patch |
930 | index 74fec04..4e7c912 100644 |
931 | --- a/debian/patches/ubuntu-linuxefi.patch |
932 | +++ b/debian/patches/ubuntu-linuxefi.patch |
933 | @@ -1,4 +1,4 @@ |
934 | -From 3451d405d55fd342aa581ecc23ee535ad533c61d Mon Sep 17 00:00:00 2001 |
935 | +From 0e2ddafb154df1708801faef74aa4f2d40d55d35 Mon Sep 17 00:00:00 2001 |
936 | From: Matthew Garrett <mjg@redhat.com> |
937 | Date: Wed, 27 Feb 2019 12:20:48 -0500 |
938 | Subject: UBUNTU: Add support for linuxefi |
939 | diff --git a/debian/patches/ubuntu-mkconfig-leave-breadcrumbs.patch b/debian/patches/ubuntu-mkconfig-leave-breadcrumbs.patch |
940 | index 0f51703..488766d 100644 |
941 | --- a/debian/patches/ubuntu-mkconfig-leave-breadcrumbs.patch |
942 | +++ b/debian/patches/ubuntu-mkconfig-leave-breadcrumbs.patch |
943 | @@ -1,4 +1,4 @@ |
944 | -From 7d3dea454253718d765c5dea62b893c5d5ef10ec Mon Sep 17 00:00:00 2001 |
945 | +From 4026f38f37e0ece7c8c6d0996c7fd181241010da Mon Sep 17 00:00:00 2001 |
946 | From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> |
947 | Date: Fri, 14 Dec 2018 13:46:14 -0500 |
948 | Subject: UBUNTU: grub-mkconfig: leave a trace of what files were sourced to |
949 | diff --git a/debian/patches/ubuntu-resilient-boot-boot-order.patch b/debian/patches/ubuntu-resilient-boot-boot-order.patch |
950 | index 89de3c2..c63016c 100644 |
951 | --- a/debian/patches/ubuntu-resilient-boot-boot-order.patch |
952 | +++ b/debian/patches/ubuntu-resilient-boot-boot-order.patch |
953 | @@ -1,4 +1,4 @@ |
954 | -From dcd35364b7789ebb00a645b4fe35e0605ec141ef Mon Sep 17 00:00:00 2001 |
955 | +From 2d5c142c62c97d5934eababfb924882d4fe100ba Mon Sep 17 00:00:00 2001 |
956 | From: Julian Andres Klode <julian.klode@canonical.com> |
957 | Date: Wed, 8 Apr 2020 11:05:25 +0200 |
958 | Subject: UBUNTU: efivar: Correctly handle boot order of multiple ESPs |
959 | diff --git a/debian/patches/ubuntu-resilient-boot-ignore-alternative-esps.patch b/debian/patches/ubuntu-resilient-boot-ignore-alternative-esps.patch |
960 | index 7468ab0..773f806 100644 |
961 | --- a/debian/patches/ubuntu-resilient-boot-ignore-alternative-esps.patch |
962 | +++ b/debian/patches/ubuntu-resilient-boot-ignore-alternative-esps.patch |
963 | @@ -1,4 +1,4 @@ |
964 | -From 94189259ac860128abfc465fb3a920d60c63a85a Mon Sep 17 00:00:00 2001 |
965 | +From f7e8057f7028b7f81e4d14d99bcd36583d9a419f Mon Sep 17 00:00:00 2001 |
966 | From: Julian Andres Klode <julian.klode@canonical.com> |
967 | Date: Fri, 3 Apr 2020 13:43:49 +0200 |
968 | Subject: UBUNTU: efivar: Ignore alternative ESPs |
969 | diff --git a/debian/patches/ubuntu-shorter-version-info.patch b/debian/patches/ubuntu-shorter-version-info.patch |
970 | index 085b012..1e40312 100644 |
971 | --- a/debian/patches/ubuntu-shorter-version-info.patch |
972 | +++ b/debian/patches/ubuntu-shorter-version-info.patch |
973 | @@ -1,4 +1,4 @@ |
974 | -From 5fab34cd20e9617b29ed9b632b30cbdedc287e77 Mon Sep 17 00:00:00 2001 |
975 | +From 91fe1e957877a6312ebb52d1d8f0f41ccc49cec9 Mon Sep 17 00:00:00 2001 |
976 | From: Julian Andres Klode <julian.klode@canonical.com> |
977 | Date: Thu, 8 Feb 2018 10:48:37 +0100 |
978 | Subject: UBUNTU: Show only upstream version, hide rest in package_version |
979 | 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 |
980 | index ea91c04..44c6f96 100644 |
981 | --- a/debian/patches/ubuntu-skip-disk-by-id-lvm-pvm-uuid-entries.patch |
982 | +++ b/debian/patches/ubuntu-skip-disk-by-id-lvm-pvm-uuid-entries.patch |
983 | @@ -1,4 +1,4 @@ |
984 | -From c9bacc366d2c480e5185a2a71eff51d25b71e155 Mon Sep 17 00:00:00 2001 |
985 | +From a6637aee3e6de2b2582a154f040b299ee66ba4fe Mon Sep 17 00:00:00 2001 |
986 | From: Rafael David Tinoco <rafaeldtinoco@ubuntu.com> |
987 | Date: Mon, 7 Oct 2019 22:53:32 -0300 |
988 | Subject: Skip /dev/disk/by-id/lvm-pvm-uuid entries from device iteration |
989 | diff --git a/debian/patches/ubuntu-speed-zsys-history.patch b/debian/patches/ubuntu-speed-zsys-history.patch |
990 | index 9d66b55..052e09c 100644 |
991 | --- a/debian/patches/ubuntu-speed-zsys-history.patch |
992 | +++ b/debian/patches/ubuntu-speed-zsys-history.patch |
993 | @@ -1,4 +1,4 @@ |
994 | -From 4c7457bc4f7cd1a516a7e255476a086270a4dbe4 Mon Sep 17 00:00:00 2001 |
995 | +From 8ccf766784ffb18bc9d4d6f25e07c733dc96e281 Mon Sep 17 00:00:00 2001 |
996 | From: Didier Roche <didrocks@ubuntu.com> |
997 | Date: Mon, 13 Apr 2020 15:12:21 +0200 |
998 | Subject: UBUNTU: Improve performance in bootmenu for zsys |
999 | @@ -17,10 +17,10 @@ Patch-Name: ubuntu-speed-zsys-history.patch |
1000 | 1 file changed, 56 insertions(+), 21 deletions(-) |
1001 | |
1002 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
1003 | -index efdb8afae..d748f6a20 100755 |
1004 | +index 4c48abef0..712d83280 100755 |
1005 | --- a/util/grub.d/10_linux_zfs.in |
1006 | +++ b/util/grub.d/10_linux_zfs.in |
1007 | -@@ -800,9 +800,10 @@ zfs_linux_entry () { |
1008 | +@@ -803,9 +803,10 @@ zfs_linux_entry () { |
1009 | boot_device="$5" |
1010 | initrd="$6" |
1011 | kernel="$7" |
1012 | @@ -33,7 +33,7 @@ index efdb8afae..d748f6a20 100755 |
1013 | submenu_indentation="$(printf %${submenu_level}s | tr " " "${grub_tab}")" |
1014 | |
1015 | echo "${submenu_indentation}menuentry '$(echo "${title}" | grub_quote)' ${CLASS} \${menuentry_id_option} 'gnulinux-${dataset}-${kernel_version}' {" |
1016 | -@@ -837,7 +838,15 @@ zfs_linux_entry () { |
1017 | +@@ -840,7 +841,15 @@ zfs_linux_entry () { |
1018 | echo "${submenu_indentation} insmod gzio" |
1019 | echo "${submenu_indentation} if [ \"\${grub_platform}\" = xen ]; then insmod xzio; insmod lzopio; fi" |
1020 | |
1021 | @@ -50,7 +50,7 @@ index efdb8afae..d748f6a20 100755 |
1022 | |
1023 | if [ "${quiet_boot}" = 0 ] || [ "${type}" != simple ]; then |
1024 | echo "${submenu_indentation} echo $(gettext_printf "Loading Linux %s ..." ${kernel_version} | grub_quote)" |
1025 | -@@ -905,6 +914,40 @@ generate_grub_menu() { |
1026 | +@@ -908,6 +917,40 @@ generate_grub_menu() { |
1027 | |
1028 | print_menu_prologue |
1029 | |
1030 | @@ -91,7 +91,7 @@ index efdb8afae..d748f6a20 100755 |
1031 | # IFS is set to TAB (ASCII 0x09) |
1032 | echo "${menu_metadata}" | |
1033 | { |
1034 | -@@ -935,7 +978,8 @@ generate_grub_menu() { |
1035 | +@@ -938,7 +981,8 @@ generate_grub_menu() { |
1036 | main_dataset_name="${name}" |
1037 | main_dataset="${dataset}" |
1038 | |
1039 | @@ -101,7 +101,7 @@ index efdb8afae..d748f6a20 100755 |
1040 | at_least_one_entry=1 |
1041 | ;; |
1042 | advanced) |
1043 | -@@ -951,12 +995,12 @@ generate_grub_menu() { |
1044 | +@@ -954,12 +998,12 @@ generate_grub_menu() { |
1045 | |
1046 | kernel_version=$(basename "${kernel}" | sed -e "s,^[^0-9]*-,,g") |
1047 | title="$(gettext_printf "%s%s, with Linux %s" "${last_booted_kernel_marker}" "${name}" "${kernel_version}")" |
1048 | @@ -116,7 +116,7 @@ index efdb8afae..d748f6a20 100755 |
1049 | fi |
1050 | at_least_one_entry=1 |
1051 | ;; |
1052 | -@@ -974,33 +1018,24 @@ generate_grub_menu() { |
1053 | +@@ -977,33 +1021,24 @@ generate_grub_menu() { |
1054 | fi |
1055 | echo " submenu '${title}' \${menuentry_id_option} 'gnulinux-history-${dataset}' {" |
1056 | |
1057 | diff --git a/debian/patches/ubuntu-support-initrd-less-boot.patch b/debian/patches/ubuntu-support-initrd-less-boot.patch |
1058 | index 7fad44d..894f0ac 100644 |
1059 | --- a/debian/patches/ubuntu-support-initrd-less-boot.patch |
1060 | +++ b/debian/patches/ubuntu-support-initrd-less-boot.patch |
1061 | @@ -1,4 +1,4 @@ |
1062 | -From f4cacdb13661017c82bf3414833ad351146dded2 Mon Sep 17 00:00:00 2001 |
1063 | +From 102bdde2eae083973dfa11de9f6289680bb03594 Mon Sep 17 00:00:00 2001 |
1064 | From: Chris Glass <chris.glass@canonical.com> |
1065 | Date: Thu, 10 Nov 2016 13:44:25 -0500 |
1066 | Subject: UBUNTU: Added knobs to allow non-initrd boot config |
1067 | diff --git a/debian/patches/ubuntu-temp-keep-auto-nvram.patch b/debian/patches/ubuntu-temp-keep-auto-nvram.patch |
1068 | index 03cf74c..15a2895 100644 |
1069 | --- a/debian/patches/ubuntu-temp-keep-auto-nvram.patch |
1070 | +++ b/debian/patches/ubuntu-temp-keep-auto-nvram.patch |
1071 | @@ -1,4 +1,4 @@ |
1072 | -From b2c200320645a00cfcb98017c9564716429723bc Mon Sep 17 00:00:00 2001 |
1073 | +From 1055f320d63fac13d951b6b26630b356b65c199c Mon Sep 17 00:00:00 2001 |
1074 | From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> |
1075 | Date: Tue, 16 Jul 2019 09:52:10 -0400 |
1076 | Subject: UBUNTU: Temporarily keep grub-install's --auto-nvram. |
1077 | diff --git a/debian/patches/ubuntu-tpm-unknown-error-non-fatal.patch b/debian/patches/ubuntu-tpm-unknown-error-non-fatal.patch |
1078 | index 3174186..62fb91a 100644 |
1079 | --- a/debian/patches/ubuntu-tpm-unknown-error-non-fatal.patch |
1080 | +++ b/debian/patches/ubuntu-tpm-unknown-error-non-fatal.patch |
1081 | @@ -1,4 +1,4 @@ |
1082 | -From ec6589e2746dd882cc10122bad74b0e41074e23b Mon Sep 17 00:00:00 2001 |
1083 | +From 232b4916c31086f2fac3ba02379c82633c52f25f Mon Sep 17 00:00:00 2001 |
1084 | From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> |
1085 | Date: Fri, 25 Oct 2019 10:25:04 -0400 |
1086 | Subject: tpm: Pass unknown error as non-fatal, but debug print the error we |
1087 | diff --git a/debian/patches/ubuntu-zfs-enhance-support.patch b/debian/patches/ubuntu-zfs-enhance-support.patch |
1088 | index fc0ece7..a1d8a9e 100644 |
1089 | --- a/debian/patches/ubuntu-zfs-enhance-support.patch |
1090 | +++ b/debian/patches/ubuntu-zfs-enhance-support.patch |
1091 | @@ -1,4 +1,4 @@ |
1092 | -From daa4db81742e0363c2b8c85b6a88ec3eca1efc19 Mon Sep 17 00:00:00 2001 |
1093 | +From 0f3f67aa23be0fa1ad5e0b4cda1c4a50225b8272 Mon Sep 17 00:00:00 2001 |
1094 | From: Didier Roche <didrocks@ubuntu.com> |
1095 | Date: Fri, 12 Jul 2019 11:06:06 -0400 |
1096 | Subject: UBUNTU: Enhance ZFS grub support |
1097 | @@ -22,8 +22,8 @@ Signed-off-by: Didier Roche <didier.roche@canonical.com> |
1098 | --- |
1099 | Makefile.util.def | 7 + |
1100 | util/grub.d/10_linux.in | 4 + |
1101 | - util/grub.d/10_linux_zfs.in | 961 ++++++++++++++++++++++++++++++++++++ |
1102 | - 3 files changed, 972 insertions(+) |
1103 | + util/grub.d/10_linux_zfs.in | 964 ++++++++++++++++++++++++++++++++++++ |
1104 | + 3 files changed, 975 insertions(+) |
1105 | create mode 100755 util/grub.d/10_linux_zfs.in |
1106 | |
1107 | diff --git a/Makefile.util.def b/Makefile.util.def |
1108 | @@ -61,10 +61,10 @@ index 4532266be..a75096609 100644 |
1109 | LINUX_ROOT_DEVICE="ZFS=${rpool}${bootfs%/}" |
1110 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
1111 | new file mode 100755 |
1112 | -index 000000000..f50e1231a |
1113 | +index 000000000..5ec65fa94 |
1114 | --- /dev/null |
1115 | +++ b/util/grub.d/10_linux_zfs.in |
1116 | -@@ -0,0 +1,961 @@ |
1117 | +@@ -0,0 +1,964 @@ |
1118 | +#! /bin/sh |
1119 | +set -e |
1120 | + |
1121 | @@ -470,7 +470,10 @@ index 000000000..f50e1231a |
1122 | + |
1123 | + initrd_list="" |
1124 | + kernel_list="" |
1125 | -+ for linux in $(find "${boot_dir}" -maxdepth 1 -type f -regex '.*/\(vmlinuz\|vmlinux\|kernel\)-.*'|sort -V); do |
1126 | ++ list=$(find "${boot_dir}" -maxdepth 1 -type f -regex '.*/\(vmlinuz\|vmlinux\|kernel\)-.*') |
1127 | ++ while [ "x$list" != "x" ] ; do |
1128 | ++ linux=`version_find_latest $list` |
1129 | ++ list=`echo $list | tr ' ' '\n' | fgrep -vx "$linux" | tr '\n' ' '` |
1130 | + if ! grub_file_is_not_garbage "${linux}" ; then |
1131 | + continue |
1132 | + fi |
1133 | @@ -506,12 +509,12 @@ index 000000000..f50e1231a |
1134 | + |
1135 | + rel_linux_dirname=$(make_system_path_relative_to_its_root "${linux_dirname}") |
1136 | + |
1137 | -+ initrd_list="${rel_linux_dirname}/${initrd}|${initrd_list}" |
1138 | -+ kernel_list="${rel_linux_dirname}/${linux_basename}|${kernel_list}" |
1139 | ++ initrd_list="${initrd_list}|${rel_linux_dirname}/${initrd}" |
1140 | ++ kernel_list="${kernel_list}|${rel_linux_dirname}/${linux_basename}" |
1141 | + done |
1142 | + |
1143 | -+ initrd_list="${initrd_list%|}" |
1144 | -+ kernel_list="${kernel_list%|}" |
1145 | ++ initrd_list="${initrd_list#|}" |
1146 | ++ kernel_list="${kernel_list#|}" |
1147 | + |
1148 | + initrd_device=$(${grub_probe} --target=device "${boot_dir}" | head -1) |
1149 | + |
1150 | diff --git a/debian/patches/uefi-firmware-setup.patch b/debian/patches/uefi-firmware-setup.patch |
1151 | index d6da9a6..1f8f7c2 100644 |
1152 | --- a/debian/patches/uefi-firmware-setup.patch |
1153 | +++ b/debian/patches/uefi-firmware-setup.patch |
1154 | @@ -1,4 +1,4 @@ |
1155 | -From 460169bfbef18f982e6bc0ad586c33aa0e14a316 Mon Sep 17 00:00:00 2001 |
1156 | +From e7b118f6f16c5c0b78d4963d8643d6afa72611f7 Mon Sep 17 00:00:00 2001 |
1157 | From: Steve Langasek <steve.langasek@ubuntu.com> |
1158 | Date: Mon, 13 Jan 2014 12:13:12 +0000 |
1159 | Subject: Output a menu entry for firmware setup on UEFI FastBoot systems |
1160 | diff --git a/debian/patches/uefi-secure-boot-cryptomount.patch b/debian/patches/uefi-secure-boot-cryptomount.patch |
1161 | index 8478d5d..3359006 100644 |
1162 | --- a/debian/patches/uefi-secure-boot-cryptomount.patch |
1163 | +++ b/debian/patches/uefi-secure-boot-cryptomount.patch |
1164 | @@ -1,4 +1,4 @@ |
1165 | -From ed1f06e92f0a40b338d11723e0f4008c544ef712 Mon Sep 17 00:00:00 2001 |
1166 | +From 237dfe21cf3ec834fd96b65c4691f6386dd49680 Mon Sep 17 00:00:00 2001 |
1167 | From: =?UTF-8?q?Herv=C3=A9=20Werner?= <dud225@hotmail.com> |
1168 | Date: Mon, 28 Jan 2019 17:24:23 +0100 |
1169 | Subject: Fix setup on Secure Boot systems where cryptodisk is in use |
1170 | diff --git a/debian/patches/vsnprintf-upper-case-hex.patch b/debian/patches/vsnprintf-upper-case-hex.patch |
1171 | index 4917b71..2fdd255 100644 |
1172 | --- a/debian/patches/vsnprintf-upper-case-hex.patch |
1173 | +++ b/debian/patches/vsnprintf-upper-case-hex.patch |
1174 | @@ -1,4 +1,4 @@ |
1175 | -From 9ec15b6602d6505bfc04dd1cd651a6c760ef4fe2 Mon Sep 17 00:00:00 2001 |
1176 | +From 03f49a87ffe7cbcf3737170935772818875ccbdb Mon Sep 17 00:00:00 2001 |
1177 | From: Colin Watson <cjwatson@ubuntu.com> |
1178 | Date: Mon, 11 Mar 2019 11:15:12 +0000 |
1179 | Subject: Add %X to grub_vsnprintf_real and friends |
1180 | diff --git a/debian/patches/vt-handoff.patch b/debian/patches/vt-handoff.patch |
1181 | index 4db1344..ed64a62 100644 |
1182 | --- a/debian/patches/vt-handoff.patch |
1183 | +++ b/debian/patches/vt-handoff.patch |
1184 | @@ -1,4 +1,4 @@ |
1185 | -From 378d93f9c2491ef7df49ed7ce3f413025998a0c0 Mon Sep 17 00:00:00 2001 |
1186 | +From 37413be89bbd62718b9a5f5295aa83ab6f7616b1 Mon Sep 17 00:00:00 2001 |
1187 | From: Colin Watson <cjwatson@ubuntu.com> |
1188 | Date: Mon, 13 Jan 2014 12:13:30 +0000 |
1189 | Subject: Add configure option to use vt.handoff=7 |
1190 | @@ -101,7 +101,7 @@ index 09393c28e..cc2dd855a 100644 |
1191 | # FIXME: We need an interface to select vesafb in case efifb can't be used. |
1192 | if [ "x$GRUB_GFXPAYLOAD_LINUX" != x ] || [ "$gfxpayload_dynamic" = 0 ]; then |
1193 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
1194 | -index fc99f16e7..b636dc7bb 100755 |
1195 | +index 8cd7d1285..48a4e6897 100755 |
1196 | --- a/util/grub.d/10_linux_zfs.in |
1197 | +++ b/util/grub.d/10_linux_zfs.in |
1198 | @@ -23,6 +23,7 @@ ubuntu_recovery="@UBUNTU_RECOVERY@" |
1199 | @@ -112,7 +112,7 @@ index fc99f16e7..b636dc7bb 100755 |
1200 | |
1201 | . "${pkgdatadir}/grub-mkconfig_lib" |
1202 | |
1203 | -@@ -718,6 +719,23 @@ generate_grub_menu_metadata() { |
1204 | +@@ -721,6 +722,23 @@ generate_grub_menu_metadata() { |
1205 | # Note: |
1206 | # If 10_linux runs these part will be defined twice in grub configuration |
1207 | print_menu_prologue() { |
1208 | @@ -136,7 +136,7 @@ index fc99f16e7..b636dc7bb 100755 |
1209 | # Use ELILO's generic "efifb" when it's known to be available. |
1210 | # FIXME: We need an interface to select vesafb in case efifb can't be used. |
1211 | GRUB_GFXPAYLOAD_LINUX="${GRUB_GFXPAYLOAD_LINUX:-}" |
1212 | -@@ -813,7 +831,7 @@ zfs_linux_entry () { |
1213 | +@@ -816,7 +834,7 @@ zfs_linux_entry () { |
1214 | |
1215 | if ([ "${ubuntu_recovery}" = 0 ] || [ "${type}" != "recovery" ]) && \ |
1216 | ([ "${GRUB_GFXPAYLOAD_LINUX}" != "" ] || [ "${gfxpayload_dynamic}" = 1 ]); then |
1217 | @@ -145,7 +145,7 @@ index fc99f16e7..b636dc7bb 100755 |
1218 | fi |
1219 | |
1220 | echo "${submenu_indentation} insmod gzio" |
1221 | -@@ -876,6 +894,14 @@ generate_grub_menu() { |
1222 | +@@ -879,6 +897,14 @@ generate_grub_menu() { |
1223 | GRUB_CMDLINE_LINUX_RECOVERY="${GRUB_CMDLINE_LINUX_RECOVERY} nomodeset" |
1224 | fi |
1225 | |
1226 | diff --git a/debian/patches/wubi-no-windows.patch b/debian/patches/wubi-no-windows.patch |
1227 | index 29350c5..239d641 100644 |
1228 | --- a/debian/patches/wubi-no-windows.patch |
1229 | +++ b/debian/patches/wubi-no-windows.patch |
1230 | @@ -1,4 +1,4 @@ |
1231 | -From e683b76e9278216d50c327b71dfbb7b722385503 Mon Sep 17 00:00:00 2001 |
1232 | +From 5d7c681c059de5af7dda174c8375c0cbfaa2d45a Mon Sep 17 00:00:00 2001 |
1233 | From: Colin Watson <cjwatson@ubuntu.com> |
1234 | Date: Mon, 13 Jan 2014 12:13:24 +0000 |
1235 | Subject: Skip Windows os-prober entries on Wubi systems |
1236 | diff --git a/debian/patches/zpool-full-device-name.patch b/debian/patches/zpool-full-device-name.patch |
1237 | index 09e00fc..6fe86f7 100644 |
1238 | --- a/debian/patches/zpool-full-device-name.patch |
1239 | +++ b/debian/patches/zpool-full-device-name.patch |
1240 | @@ -1,4 +1,4 @@ |
1241 | -From 5bea13466c5d9048cf20139498dcba94f5500477 Mon Sep 17 00:00:00 2001 |
1242 | +From 45859b7aff8eb963b8dcb4b83c19579f8687a637 Mon Sep 17 00:00:00 2001 |
1243 | From: Chad MILLER <chad.miller@canonical.com> |
1244 | Date: Thu, 27 Oct 2016 17:15:07 -0400 |
1245 | Subject: Tell zpool to emit full device names |
1246 | diff --git a/grub-core/disk/loopback.c b/grub-core/disk/loopback.c |
1247 | index ccb4b16..210201d 100644 |
1248 | --- a/grub-core/disk/loopback.c |
1249 | +++ b/grub-core/disk/loopback.c |
1250 | @@ -86,7 +86,8 @@ grub_cmd_loopback (grub_extcmd_context_t ctxt, int argc, char **args) |
1251 | return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("filename expected")); |
1252 | |
1253 | file = grub_file_open (args[1], GRUB_FILE_TYPE_LOOPBACK |
1254 | - | GRUB_FILE_TYPE_NO_DECOMPRESS); |
1255 | + | GRUB_FILE_TYPE_NO_DECOMPRESS | |
1256 | + GRUB_FILE_TYPE_SKIP_SIGNATURE); |
1257 | if (! file) |
1258 | return grub_errno; |
1259 | |
1260 | diff --git a/util/grub-mkconfig_lib.in b/util/grub-mkconfig_lib.in |
1261 | index fe6319a..4a66149 100644 |
1262 | --- a/util/grub-mkconfig_lib.in |
1263 | +++ b/util/grub-mkconfig_lib.in |
1264 | @@ -270,6 +270,22 @@ version_test_gt () |
1265 | if [ "x$version_test_gt_b" = "x" ] ; then |
1266 | return 0 |
1267 | fi |
1268 | + |
1269 | + # GRUB_FLAVOUR_ORDER is an ordered list of kernels, in decreasing |
1270 | + # priority. Any items in the list take precedence over other kernels, |
1271 | + # and earlier flavours are preferred over later ones. |
1272 | + for flavour in ${GRUB_FLAVOUR_ORDER:-}; do |
1273 | + echo "Checking flavour $flavour" >&2 |
1274 | + version_test_gt_a_preferred=$(echo "$version_test_gt_a" | grep -- "-[0-9]*-$flavour\$") |
1275 | + version_test_gt_b_preferred=$(echo "$version_test_gt_b" | grep -- "-[0-9]*-$flavour\$") |
1276 | + |
1277 | + if [ -n "$version_test_gt_a_preferred" -a -z "$version_test_gt_b_preferred" ] ; then |
1278 | + return 0 |
1279 | + elif [ -z "$version_test_gt_a_preferred" -a -n "$version_test_gt_b_preferred" ] ; then |
1280 | + return 1 |
1281 | + fi |
1282 | + done |
1283 | + |
1284 | case "$version_test_gt_a:$version_test_gt_b" in |
1285 | *.old:*.old) ;; |
1286 | *.old:*) version_test_gt_a="`echo "$version_test_gt_a" | sed -e 's/\.old$//'`" ; version_test_gt_cmp=gt ;; |
1287 | diff --git a/util/grub.d/10_linux_zfs.in b/util/grub.d/10_linux_zfs.in |
1288 | index d748f6a..712d832 100755 |
1289 | --- a/util/grub.d/10_linux_zfs.in |
1290 | +++ b/util/grub.d/10_linux_zfs.in |
1291 | @@ -418,7 +418,10 @@ get_dataset_info() { |
1292 | |
1293 | initrd_list="" |
1294 | kernel_list="" |
1295 | - for linux in $(find "${boot_dir}" -maxdepth 1 -type f -regex '.*/\(vmlinuz\|vmlinux\|kernel\)-.*'|sort -V); do |
1296 | + list=$(find "${boot_dir}" -maxdepth 1 -type f -regex '.*/\(vmlinuz\|vmlinux\|kernel\)-.*') |
1297 | + while [ "x$list" != "x" ] ; do |
1298 | + linux=`version_find_latest $list` |
1299 | + list=`echo $list | tr ' ' '\n' | fgrep -vx "$linux" | tr '\n' ' '` |
1300 | if ! grub_file_is_not_garbage "${linux}" ; then |
1301 | continue |
1302 | fi |
1303 | @@ -465,12 +468,12 @@ get_dataset_info() { |
1304 | |
1305 | rel_linux_dirname=$(make_system_path_relative_to_its_root "${linux_dirname}") |
1306 | |
1307 | - initrd_list="${rel_linux_dirname}/${initrd}|${initrd_list}" |
1308 | - kernel_list="${rel_linux_dirname}/${linux_basename}|${kernel_list}" |
1309 | + initrd_list="${initrd_list}|${rel_linux_dirname}/${initrd}" |
1310 | + kernel_list="${kernel_list}|${rel_linux_dirname}/${linux_basename}" |
1311 | done |
1312 | |
1313 | - initrd_list="${initrd_list%|}" |
1314 | - kernel_list="${kernel_list%|}" |
1315 | + initrd_list="${initrd_list#|}" |
1316 | + kernel_list="${kernel_list#|}" |
1317 | |
1318 | initrd_device=$(${grub_probe} --target=device "${boot_dir}" | head -1) |
1319 |
It's not clear to me why git-dpm removed the patches it removed, but it seems they're not in the series file anyway?