anaconda: allow user setup durign initial-setup phase, if kickstart wishes so

This commit is contained in:
Marek Marczykowski-Górecki 2020-01-08 20:30:21 +01:00
parent 32b3a210e0
commit 87116a2094
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,35 @@
From 2bccfe3f8c5e7ce18f4c4208914a1ea865072481 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?=
<marmarek@invisiblethingslab.com>
Date: Wed, 8 Jan 2020 20:28:25 +0100
Subject: [PATCH] Do not require user setup during automated (kickseeded)
install
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Organization: Invisible Things Lab
Cc: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
OEM installation may prefer to setup it during initial-setup phase.
Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
---
pyanaconda/ui/gui/spokes/user.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/ui/gui/spokes/user.py b/pyanaconda/ui/gui/spokes/user.py
index 7db7e44..2bb110d 100644
--- a/pyanaconda/ui/gui/spokes/user.py
+++ b/pyanaconda/ui/gui/spokes/user.py
@@ -338,7 +338,7 @@ class UserSpoke(NormalSpoke, GUISpokeInputCheckHandler):
@property
def mandatory(self):
- return True
+ return not flags.automatedInstall
def apply(self):
# set the password only if the user enters anything to the text entry
--
2.21.0

View File

@ -76,6 +76,7 @@ Patch55: 0055-anaconda-fix-encryption-passphrase-check.patch
Patch56: 0056-anaconda-disable-os-prober.patch
Patch57: 0057-Add-plymouth.ignore-serial-consoles-boot-option-by-d.patch
Patch58: 0058-Report-20-space-needed-for-LVM-thin-provisioning.patch
Patch59: 0059-Do-not-require-user-setup-during-automated-kickseede.patch
# Versions of required components (done so we make sure the buildrequires
# match the requires versions of things).