Remove reverse-applicable patch.

ubuntu/noble
Simon Quigley 5 months ago
parent 375105f362
commit 2eb8b900b1

1
debian/changelog vendored

@ -1,6 +1,7 @@
calamares (3.3.0.0-0ubuntu1) UNRELEASED; urgency=medium
* New upstream version.
* Remove reverse-applicable patch.
-- Simon Quigley <tsimonq2@ubuntu.com> Tue, 12 Dec 2023 07:42:16 -0600

@ -1,37 +0,0 @@
Description: Fix encrypted installs in Calamares
Adding new items to /etc/default/grub wasn't working (new items that were to
be added to the file were being silently dropped). This resulted in the
GRUB_ENABLE_CRYPTODISK setting not being present in /etc/default/grub within
the installed system, resulting in the bootloader refusing to install in an
encrypted installation. This patch adds the needed functionality to the
grubcfg module to fix the issue.
Author: Aaron Rainbolt <arraybolt3@gmail.com>
Origin: ubuntu
Bug: https://github.com/calamares/calamares/issues/2233
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/calamares/+bug/2043301
Forwarded: https://github.com/calamares/calamares/pull/2234
Last-Update: 2023-11-14
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
diff --git a/src/modules/grubcfg/main.py b/src/modules/grubcfg/main.py
index 82b1837f8..d2ed8bf19 100644
--- a/src/modules/grubcfg/main.py
+++ b/src/modules/grubcfg/main.py
@@ -104,11 +104,17 @@ def update_existing_config(default_grub, grub_config_items):
# check if this is one of the keys we care about
if key in grub_config_items.keys():
print(f"{key}={grub_config_items[key]}")
+ del grub_config_items[key]
else:
print(line)
else:
print(line)
+ if len(grub_config_items) != 0:
+ with open(default_grub, "a") as grub_file:
+ for dict_key, dict_val in grub_config_items.items():
+ grub_file.write(f"{dict_key}={dict_val}")
+
def modify_grub_default(partitions, root_mount_point, distributor):
"""

@ -1,3 +1,2 @@
0001-replace-pkexec-by-sudo.patch
apport-package-hook.patch
fix-encrypted-installs.patch

Loading…
Cancel
Save