Blob Blame History Raw
From 1b2ffd45836aefa7a06cf5f0b62dc8b65df8e4ea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= <fidencio@redhat.com>
Date: Mon, 10 Sep 2018 13:16:36 +0200
Subject: [PATCH] install-script: Add Desktop support for rhel-8
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The kickstart installation has only been working, so far, for the
"unified" ISO as the content needed to install a "workstation" is not
present in the default "DVD" install.

There's still a lot of conversations to happen and things to figure out
before we can consider this patch "official". But, at least for, it's
good as it is for testing the "unified" ISO.

https://bugzilla.redhat.com/show_bug.cgi?id=1580232

Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com>
---
 .../redhat.com/rhel-kickstart-desktop.xml  | 43 ++++++++++++++-----
 1 file changed, 32 insertions(+), 11 deletions(-)

diff --git a/install-script/redhat.com/rhel-kickstart-desktop.xml b/install-script/redhat.com/rhel-kickstart-desktop.xml
index 388d6d7..14ba866 100644
--- a/install-script/redhat.com/rhel-kickstart-desktop.xml
+++ b/install-script/redhat.com/rhel-kickstart-desktop.xml
@@ -69,7 +69,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; 8">
 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
@@ -79,35 +86,49 @@ clearpart --all --drives=<xsl:call-template name="target-disk"/>
 firstboot --disable
 
 <xsl:choose>
-  <xsl:when test="os/version &lt; 7">
+  <xsl:when test="os/version &lt; 8">
+    <xsl:choose>
+      <xsl:when test="os/version &lt; 7">
 part /boot --fstype ext4 --size=1024 --ondisk=<xsl:call-template name="target-disk"/>
-  </xsl:when>
-  <xsl:otherwise>
+      </xsl:when>
+      <xsl:otherwise>
 part /boot --fstype ext4 --recommended --ondisk=<xsl:call-template name="target-disk"/>
-  </xsl:otherwise>
-</xsl:choose>
+      </xsl:otherwise>
+    </xsl:choose>
 part pv.2 --size=1 --grow --ondisk=<xsl:call-template name="target-disk"/>
 volgroup VolGroup00 --pesize=32768 pv.2
 logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=768 --grow --maxsize=1536
 logvol / --fstype ext4 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow
+  </xsl:when>
+  <xsl:otherwise>
+autopart --type=lvm
+  </xsl:otherwise>
+</xsl:choose>
 reboot
 
 %packages
+<xsl:choose>
+  <xsl:when test="os/version &lt; 8">
 @core
 @x11
-<xsl:choose>
-  <xsl:when test="os/version &lt; 7">
+    <xsl:choose>
+      <xsl:when test="os/version &lt; 7">
 @basic-desktop
 @general-desktop
 @desktop-platform
-  </xsl:when>
-  <xsl:otherwise>
+      </xsl:when>
+      <xsl:otherwise>
 @gnome-desktop
 @multimedia
-  </xsl:otherwise>
-</xsl:choose>
+      </xsl:otherwise>
+    </xsl:choose>
 @internet-browser
 @input-methods
+  </xsl:when>
+  <xsl:otherwise>
+@^workstation-product-environment
+  </xsl:otherwise>
+</xsl:choose>
 
 qemu-guest-agent
 
-- 
2.17.1