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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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 &lt; 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 &lt; 8">
 authconfig --enableshadow --enablemd5
+</xsl:if>
 selinux --enforcing
 timezone --utc <xsl:value-of select="config/l10n-timezone"/>
 bootloader --location=mbr
-- 
2.21.0

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux