[osinfo-db][PATCH] fedora, installer: Use authselect instead of authconfig

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

 



authconfig has been deprecated on F28 and authselect is its replacement.

Signed-off-by: Fabiano Fidêncio <fabiano@xxxxxxxxxxxx>
---
 .../fedoraproject.org/fedora-kickstart-desktop.xml.in              | 7 +++++++
 data/install-script/fedoraproject.org/fedora-kickstart-jeos.xml.in | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/data/install-script/fedoraproject.org/fedora-kickstart-desktop.xml.in b/data/install-script/fedoraproject.org/fedora-kickstart-desktop.xml.in
index bdc9f5d..e8e1622 100644
--- a/data/install-script/fedoraproject.org/fedora-kickstart-desktop.xml.in
+++ b/data/install-script/fedoraproject.org/fedora-kickstart-desktop.xml.in
@@ -112,7 +112,14 @@ 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:choose>
+  <xsl:when test="os/version &lt; 28">
 authconfig --enableshadow --enablemd5
+  </xsl:when>
+  <xsl:otherwise>
+authselect select sssd
+  </xsl:otherwise>
+</xsl:choose>
 timezone --utc <xsl:value-of select="config/l10n-timezone"/>
 bootloader --location=mbr
 zerombr
diff --git a/data/install-script/fedoraproject.org/fedora-kickstart-jeos.xml.in b/data/install-script/fedoraproject.org/fedora-kickstart-jeos.xml.in
index 8b99dfe..c4bda77 100644
--- a/data/install-script/fedoraproject.org/fedora-kickstart-jeos.xml.in
+++ b/data/install-script/fedoraproject.org/fedora-kickstart-jeos.xml.in
@@ -110,7 +110,14 @@ skipx
 network --bootproto dhcp
 rootpw <xsl:value-of select="config/admin-password"/>
 firewall --disabled
+<xsl:choose>
+  <xsl:when test="os/version &lt; 28">
 authconfig --enableshadow --enablemd5
+  </xsl:when>
+  <xsl:otherwise>
+authselect select sssd
+  </xsl:otherwise>
+</xsl:choose>
 <xsl:if test="os/version &gt; 1">
 selinux --enforcing
 </xsl:if>
-- 
2.14.3

_______________________________________________
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