fix install with tui and gui
(cherry picked from commit b7195d0a74b5be05e3d51145eef702b5ba316631)
This commit is contained in:
parent
5ea971398b
commit
e764a6d92c
@ -1,7 +1,7 @@
|
|||||||
%define _empty_manifest_terminate_build 0
|
%define _empty_manifest_terminate_build 0
|
||||||
Name: anaconda
|
Name: anaconda
|
||||||
Version: 36.16.5
|
Version: 36.16.5
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: Graphical system installer
|
Summary: Graphical system installer
|
||||||
License: GPLv2+ and MIT
|
License: GPLv2+ and MIT
|
||||||
URL: http://fedoraproject.org/wiki/Anaconda
|
URL: http://fedoraproject.org/wiki/Anaconda
|
||||||
@ -25,6 +25,7 @@ Patch9011: remove-vender-issue-in-netdev.patch
|
|||||||
Patch9012: Support-configuration-of-additional-boot-arguments.patch
|
Patch9012: Support-configuration-of-additional-boot-arguments.patch
|
||||||
Patch9013: support-use-sm3-crypt-user-password.patch
|
Patch9013: support-use-sm3-crypt-user-password.patch
|
||||||
Patch9014: bugfix-with-use-local-kickstart-version.patch
|
Patch9014: bugfix-with-use-local-kickstart-version.patch
|
||||||
|
Patch9015: bugfix-change-gnome-kiosk-to-use-metacity.patch
|
||||||
|
|
||||||
%define dasbusver 1.3
|
%define dasbusver 1.3
|
||||||
%define dbusver 1.2.3
|
%define dbusver 1.2.3
|
||||||
@ -263,6 +264,11 @@ update-desktop-database &> /dev/null || :
|
|||||||
%{_prefix}/libexec/anaconda/dd_*
|
%{_prefix}/libexec/anaconda/dd_*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 15 2022 sunhai <sunhai10@huawei.com> - 36.16.5-3
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC: fix install with tui and gui
|
||||||
|
|
||||||
* Fri Nov 11 2022 sunhai <sunhai10@huawei.com> - 36.16.5-2
|
* Fri Nov 11 2022 sunhai <sunhai10@huawei.com> - 36.16.5-2
|
||||||
- ID:NA
|
- ID:NA
|
||||||
- SUG:NA
|
- SUG:NA
|
||||||
|
|||||||
28
bugfix-change-gnome-kiosk-to-use-metacity.patch
Normal file
28
bugfix-change-gnome-kiosk-to-use-metacity.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
From 4de5376d5b1b88d1190476b8d179b677a08fe03c Mon Sep 17 00:00:00 2001
|
||||||
|
From: sun_hai_10 <sunhai10@huawei.com>
|
||||||
|
Date: Tue, 15 Nov 2022 15:46:38 +0800
|
||||||
|
Subject: [PATCH] change 'gnome-kiosk' to use 'metacity'
|
||||||
|
|
||||||
|
---
|
||||||
|
pyanaconda/display.py | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/pyanaconda/display.py b/pyanaconda/display.py
|
||||||
|
index 880af9c..ddf24fb 100644
|
||||||
|
--- a/pyanaconda/display.py
|
||||||
|
+++ b/pyanaconda/display.py
|
||||||
|
@@ -192,9 +192,9 @@ def do_startup_x11_actions():
|
||||||
|
else:
|
||||||
|
xdg_data_dirs = datadir + '/window-manager:/usr/share'
|
||||||
|
|
||||||
|
- childproc = util.startProgram(["gnome-kiosk", "--display", ":1", "--sm-disable", "--x11"],
|
||||||
|
+ childproc = util.startProgram(["metacity", "--display", ":1", "--sm-disable"],
|
||||||
|
env_add={'XDG_DATA_DIRS': xdg_data_dirs})
|
||||||
|
- WatchProcesses.watch_process(childproc, "gnome-kiosk")
|
||||||
|
+ WatchProcesses.watch_process(childproc, "metacity")
|
||||||
|
|
||||||
|
|
||||||
|
def set_x_resolution(runres):
|
||||||
|
--
|
||||||
|
2.23.0
|
||||||
|
|
||||||
@ -4,18 +4,17 @@ Date: Wed, 1 Jul 2020 18:08:35 +0800
|
|||||||
Subject: [PATCH] disable ssh login checkbox
|
Subject: [PATCH] disable ssh login checkbox
|
||||||
|
|
||||||
---
|
---
|
||||||
pyanaconda/ui/gui/spokes/root_password.py | 8 ++++----
|
pyanaconda/ui/gui/spokes/root_password.py | 7 ++++----
|
||||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
1 file changed, 4 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
diff --git a/pyanaconda/ui/gui/spokes/root_password.py b/pyanaconda/ui/gui/spokes/root_password.py
|
diff --git a/pyanaconda/ui/gui/spokes/root_password.py b/pyanaconda/ui/gui/spokes/root_password.py
|
||||||
index 1d19380..f2e389d 100644
|
index 1d19380..f2e389d 100644
|
||||||
--- a/pyanaconda/ui/gui/spokes/root_password.py
|
--- a/pyanaconda/ui/gui/spokes/root_password.py
|
||||||
+++ b/pyanaconda/ui/gui/spokes/root_password.py
|
+++ b/pyanaconda/ui/gui/spokes/root_password.py
|
||||||
@@ -79,7 +79,8 @@ class PasswordSpoke(FirstbootSpokeMixIn, NormalSpoke, GUISpokeInputCheckHandler)
|
@@ -80,6 +80,8 @@ class PasswordSpoke(FirstbootSpokeMixIn, NormalSpoke, GUISpokeInputCheckHandler)
|
||||||
self._password_label = self.builder.get_object("password_label")
|
|
||||||
self._enable_root_radio = self.builder.get_object("enable_root_radio")
|
self._enable_root_radio = self.builder.get_object("enable_root_radio")
|
||||||
self._disable_root_radio = self.builder.get_object("disable_root_radio")
|
self._disable_root_radio = self.builder.get_object("disable_root_radio")
|
||||||
- self._root_password_ssh_login_override = self.builder.get_object("root_password_ssh_login_override")
|
self._root_password_ssh_login_override = self.builder.get_object("root_password_ssh_login_override")
|
||||||
+ self._root_password_ssh_login_override.set_visible(False)
|
+ self._root_password_ssh_login_override.set_visible(False)
|
||||||
+ self._root_password_ssh_login_override.set_no_show_all(True)
|
+ self._root_password_ssh_login_override.set_no_show_all(True)
|
||||||
self._revealer = self.builder.get_object("password_revealer")
|
self._revealer = self.builder.get_object("password_revealer")
|
||||||
|
|||||||
23
euleros.conf
23
euleros.conf
@ -1,8 +1,16 @@
|
|||||||
# Anaconda configuration file for EulerOS
|
# Anaconda configuration file for EulerOS.
|
||||||
|
|
||||||
[Product]
|
[Profile]
|
||||||
product_name = EulerOS
|
# Define the profile.
|
||||||
variant_name = Server
|
profile_id = EulerOS
|
||||||
|
|
||||||
|
[Profile Detection]
|
||||||
|
# Match os-release values.
|
||||||
|
os_id = EulerOS
|
||||||
|
variant_id = server
|
||||||
|
|
||||||
|
[Installation System]
|
||||||
|
can_detect_enabled_smt = True
|
||||||
|
|
||||||
[Network]
|
[Network]
|
||||||
default_on_boot = FIRST_WIRED_WITH_LINK
|
default_on_boot = FIRST_WIRED_WITH_LINK
|
||||||
@ -14,8 +22,13 @@ additional_arguments = crash_kexec_post_notifiers softlockup_panic=1 reserve_kbo
|
|||||||
[Payload]
|
[Payload]
|
||||||
enable_closest_mirror = True
|
enable_closest_mirror = True
|
||||||
|
|
||||||
|
[Storage]
|
||||||
|
|
||||||
|
[Storage Constraints]
|
||||||
|
swap_is_recommended = True
|
||||||
|
|
||||||
[User Interface]
|
[User Interface]
|
||||||
blivet_gui_supported = False
|
blivet_gui_supported = False
|
||||||
|
|
||||||
[License]
|
[License]
|
||||||
eula = "/usr/share/euleros-release/EULA"
|
eula = /usr/share/euleros-release/EULA
|
||||||
|
|||||||
23
hce.conf
23
hce.conf
@ -1,8 +1,16 @@
|
|||||||
# Anaconda configuration file for HCE
|
# Anaconda configuration file for HCE.
|
||||||
|
|
||||||
[Product]
|
[Profile]
|
||||||
product_name = HCE
|
# Define the profile.
|
||||||
variant_name = Server
|
profile_id = HCE
|
||||||
|
|
||||||
|
[Profile Detection]
|
||||||
|
# Match os-release values.
|
||||||
|
os_id = HCE
|
||||||
|
variant_id = server
|
||||||
|
|
||||||
|
[Installation System]
|
||||||
|
can_detect_enabled_smt = True
|
||||||
|
|
||||||
[Network]
|
[Network]
|
||||||
default_on_boot = FIRST_WIRED_WITH_LINK
|
default_on_boot = FIRST_WIRED_WITH_LINK
|
||||||
@ -14,8 +22,13 @@ additional_arguments = crash_kexec_post_notifiers softlockup_panic=1 reserve_kbo
|
|||||||
[Payload]
|
[Payload]
|
||||||
enable_closest_mirror = True
|
enable_closest_mirror = True
|
||||||
|
|
||||||
|
[Storage]
|
||||||
|
|
||||||
|
[Storage Constraints]
|
||||||
|
swap_is_recommended = True
|
||||||
|
|
||||||
[User Interface]
|
[User Interface]
|
||||||
blivet_gui_supported = False
|
blivet_gui_supported = False
|
||||||
|
|
||||||
[License]
|
[License]
|
||||||
eula = "/usr/share/hce-release/EULA"
|
eula = /usr/share/hce-release/EULA
|
||||||
|
|||||||
@ -1,7 +1,15 @@
|
|||||||
# Anaconda configuration file for openEuler
|
# Anaconda configuration file for openEuler.
|
||||||
|
|
||||||
[Product]
|
[Profile]
|
||||||
product_name = openEuler
|
# Define the profile.
|
||||||
|
profile_id = openEuler
|
||||||
|
|
||||||
|
[Profile Detection]
|
||||||
|
# Match os-release values.
|
||||||
|
os_id = openEuler
|
||||||
|
|
||||||
|
[Installation System]
|
||||||
|
can_detect_enabled_smt = True
|
||||||
|
|
||||||
[Network]
|
[Network]
|
||||||
default_on_boot = FIRST_WIRED_WITH_LINK
|
default_on_boot = FIRST_WIRED_WITH_LINK
|
||||||
@ -13,8 +21,13 @@ additional_arguments =
|
|||||||
[Payload]
|
[Payload]
|
||||||
enable_closest_mirror = True
|
enable_closest_mirror = True
|
||||||
|
|
||||||
|
[Storage]
|
||||||
|
|
||||||
|
[Storage Constraints]
|
||||||
|
swap_is_recommended = True
|
||||||
|
|
||||||
[User Interface]
|
[User Interface]
|
||||||
blivet_gui_supported = False
|
blivet_gui_supported = False
|
||||||
|
|
||||||
[License]
|
[License]
|
||||||
eula = "/usr/share/openEuler-release/EULA"
|
eula = /usr/share/openEuler-release/EULA
|
||||||
|
|||||||
@ -112,7 +112,7 @@ index f2e389d..062f59d 100644
|
|||||||
if self.root_enabled and self.password:
|
if self.root_enabled and self.password:
|
||||||
# Set the root password.
|
# Set the root password.
|
||||||
- self._users_module.SetCryptedRootPassword(crypt_password(self.password))
|
- self._users_module.SetCryptedRootPassword(crypt_password(self.password))
|
||||||
+ self._users_module.SetCryptedRootPassword(crypt_password(self.password), algo)
|
+ self._users_module.SetCryptedRootPassword(crypt_password(self.password, algo))
|
||||||
|
|
||||||
# Unlock the root account.
|
# Unlock the root account.
|
||||||
self._users_module.SetRootAccountLocked(False)
|
self._users_module.SetRootAccountLocked(False)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user