disable disk encryption
This commit is contained in:
parent
9d966e75ac
commit
4aab9700df
@ -1,7 +1,7 @@
|
||||
%define _empty_manifest_terminate_build 0
|
||||
Name: anaconda
|
||||
Version: 33.19
|
||||
Release: 8
|
||||
Release: 9
|
||||
Summary: Graphical system installer
|
||||
License: GPLv2+ and MIT
|
||||
URL: http://fedoraproject.org/wiki/Anaconda
|
||||
@ -27,6 +27,7 @@ Patch9014: disable-ssh-login-checkbox.patch
|
||||
Patch9015: bugfix-add-kdump-parameter-into-kernel-cmdline.patch
|
||||
Patch9016: bugfix-fix-password-policy.patch
|
||||
Patch9017: add-boot-args-for-smmu-and-video.patch
|
||||
Patch9018: disable-disk-encryption.patch
|
||||
|
||||
Patch6001: anaconda-Fix-stage2-as-default-sources.patch
|
||||
Patch6002: anaconda-Allow-to-detect-devices-with-the-iso9660-file-system.patch
|
||||
@ -243,6 +244,12 @@ update-desktop-database &> /dev/null || :
|
||||
%{_datadir}/gtk-doc
|
||||
|
||||
%changelog
|
||||
* Wed Sep 16 2020 xiaqirong <xiaqirong1@huawei.com> - 33.19-9
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC:disable disk encryption
|
||||
|
||||
* Fri Sep 11 2020 fengtao <fengtao40@huawei.com> - 33.19-8
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
|
||||
71
disable-disk-encryption.patch
Normal file
71
disable-disk-encryption.patch
Normal file
@ -0,0 +1,71 @@
|
||||
From bec6776715baaff79d29e1703b7c3306c265071b Mon Sep 17 00:00:00 2001
|
||||
From: xia_qirong <xiaqirong1@huawei.com>
|
||||
Date: Wed, 16 Sep 2020 15:28:39 +0800
|
||||
Subject: [PATCH] disable disk encryption
|
||||
|
||||
---
|
||||
pyanaconda/ui/gui/spokes/custom_storage.py | 8 ++++----
|
||||
pyanaconda/ui/gui/spokes/storage.py | 7 ++++---
|
||||
2 files changed, 8 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/pyanaconda/ui/gui/spokes/custom_storage.py b/pyanaconda/ui/gui/spokes/custom_storage.py
|
||||
index 347a0e0..d72e315 100644
|
||||
--- a/pyanaconda/ui/gui/spokes/custom_storage.py
|
||||
+++ b/pyanaconda/ui/gui/spokes/custom_storage.py
|
||||
@@ -796,8 +796,8 @@ class CustomPartitioningSpoke(NormalSpoke, StorageCheckHandler):
|
||||
fancy_set_sensitive(self._reformatCheckbox, self._permissions.reformat)
|
||||
|
||||
# Set up the encryption.
|
||||
- self._encryptCheckbox.set_active(self._request.device_encrypted)
|
||||
- fancy_set_sensitive(self._encryptCheckbox, self._permissions.device_encrypted)
|
||||
+ self._encryptCheckbox.set_active(False)
|
||||
+ fancy_set_sensitive(self._encryptCheckbox, False)
|
||||
|
||||
self._encryptCheckbox.set_inconsistent(self._request.container_encrypted)
|
||||
text = _("The container is encrypted.") if self._request.container_encrypted else ""
|
||||
@@ -1268,7 +1268,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageCheckHandler):
|
||||
self._encryptCheckbox.set_active(False)
|
||||
self._encryptCheckbox.set_inconsistent(True)
|
||||
|
||||
- fancy_set_sensitive(self._encryptCheckbox, self._permissions.device_encrypted)
|
||||
+ fancy_set_sensitive(self._encryptCheckbox, False)
|
||||
self._update_luks_combo()
|
||||
|
||||
# Update the UI.
|
||||
@@ -1490,7 +1490,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageCheckHandler):
|
||||
|
||||
# Update the UI.
|
||||
fancy_set_sensitive(self._labelEntry, self._permissions.label)
|
||||
- fancy_set_sensitive(self._encryptCheckbox, self._permissions.device_encrypted)
|
||||
+ fancy_set_sensitive(self._encryptCheckbox, False)
|
||||
self._update_luks_combo()
|
||||
fancy_set_sensitive(self._fsCombo, self._permissions.format_type)
|
||||
self.on_value_changed()
|
||||
diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py
|
||||
index 9494d6a..b2c0d3e 100644
|
||||
--- a/pyanaconda/ui/gui/spokes/storage.py
|
||||
+++ b/pyanaconda/ui/gui/spokes/storage.py
|
||||
@@ -289,6 +289,9 @@ class StorageSpoke(NormalSpoke, StorageCheckHandler):
|
||||
# Configure the partitioning methods.
|
||||
self._configure_partitioning_methods()
|
||||
|
||||
+ # disable disk encryption
|
||||
+ self._encryption_revealer.set_reveal_child(False)
|
||||
+
|
||||
def _configure_partitioning_methods(self):
|
||||
if "CustomPartitioningSpoke" in conf.ui.hidden_spokes:
|
||||
self._custom_part_radio_button.set_visible(False)
|
||||
@@ -325,9 +328,7 @@ class StorageSpoke(NormalSpoke, StorageCheckHandler):
|
||||
# as Blivet GUI handles encryption per encrypted device, not globally.
|
||||
# Hide it also for the interactive partitioning as CustomPartitioningSpoke
|
||||
# provides support for encryption of mount points.
|
||||
- self._encryption_revealer.set_reveal_child(
|
||||
- current_partitioning_method == PARTITIONING_METHOD_AUTOMATIC
|
||||
- )
|
||||
+ self._encryption_revealer.set_reveal_child(False)
|
||||
|
||||
# Hide the reclaim space checkbox if automatic storage configuration is not used.
|
||||
self._reclaim_revealer.set_reveal_child(
|
||||
--
|
||||
1.8.3.1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user