[Libosinfo] [osinfo-db PATCH 1/5] install-script, rhel: Don't call authconfig on RHEL-8

Fabiano Fidêncio fidencio at redhat.com
Tue Jun 25 13:55:30 UTC 2019


authconfig has been deprecated in favour of authselect and is not part
of RHEL-8 packages.

Calling authselect doesn't bring *any* advantage for the local users in
a VM. So, better to not even bother about this.

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 data/install-script/redhat.com/rhel-kickstart-desktop.xml.in | 2 ++
 data/install-script/redhat.com/rhel-kickstart-jeos.xml.in    | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/data/install-script/redhat.com/rhel-kickstart-desktop.xml.in b/data/install-script/redhat.com/rhel-kickstart-desktop.xml.in
index 221a2c9..be4951b 100644
--- a/data/install-script/redhat.com/rhel-kickstart-desktop.xml.in
+++ b/data/install-script/redhat.com/rhel-kickstart-desktop.xml.in
@@ -156,7 +156,9 @@ lang <xsl:value-of select="config/l10n-language"/>
 network --onboot yes --bootproto dhcp --noipv6 --hostname=<xsl:value-of select="config/hostname"/>
 rootpw dummyPa55w0rd # Actual password set (or unset) in %post below
 firewall --disabled
+<xsl:if test="os/version < 8">
 authconfig --enableshadow --enablemd5
+</xsl:if>
 timezone --utc <xsl:value-of select="config/l10n-timezone"/>
 bootloader --location=mbr
 zerombr
diff --git a/data/install-script/redhat.com/rhel-kickstart-jeos.xml.in b/data/install-script/redhat.com/rhel-kickstart-jeos.xml.in
index 76d7c1b..fdef836 100644
--- a/data/install-script/redhat.com/rhel-kickstart-jeos.xml.in
+++ b/data/install-script/redhat.com/rhel-kickstart-jeos.xml.in
@@ -136,7 +136,9 @@ skipx
 network --bootproto dhcp
 rootpw <xsl:value-of select="config/admin-password"/>
 firewall --disabled
+<xsl:if test="os/version < 8">
 authconfig --enableshadow --enablemd5
+</xsl:if>
 selinux --enforcing
 timezone --utc <xsl:value-of select="config/l10n-timezone"/>
 bootloader --location=mbr
-- 
2.21.0




More information about the Libosinfo mailing list