[Libosinfo] [osinfo-db][PATCH] fedora, installer: Use authselect instead of authconfig
Fabiano Fidêncio
fabiano at fidencio.org
Mon Jun 4 18:55:57 UTC 2018
authconfig has been deprecated on F28 and authselect is its replacement.
Signed-off-by: Fabiano Fidêncio <fabiano at fidencio.org>
---
.../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 < 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 < 28">
authconfig --enableshadow --enablemd5
+ </xsl:when>
+ <xsl:otherwise>
+authselect select sssd
+ </xsl:otherwise>
+</xsl:choose>
<xsl:if test="os/version > 1">
selinux --enforcing
</xsl:if>
--
2.14.3
More information about the Libosinfo
mailing list