[Libosinfo] [osinfo-db PATCH 2/6] install-script, fedora: Add osinfo-install-successful file

Fabiano Fidêncio fidencio at redhat.com
Fri Jul 19 14:22:07 UTC 2019


Let's create an `osinfo-install-successful` file in /root after we
finish the installation.

Although this may not be totally accurate, it'll help up in the future
to test whether the installation was successful in an automated manner.

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 .../fedoraproject.org/fedora-kickstart-desktop.xml.in        | 3 +++
 .../fedoraproject.org/fedora-kickstart-jeos.xml.in           | 5 +++++
 2 files changed, 8 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 33f674c..7a7557b 100644
--- a/data/install-script/fedoraproject.org/fedora-kickstart-desktop.xml.in
+++ b/data/install-script/fedoraproject.org/fedora-kickstart-desktop.xml.in
@@ -272,6 +272,9 @@ AutomaticLogin=<xsl:value-of select="config/user-login"/>
 [debug]
 " > /etc/gdm/custom.conf
 
+# Create an osinfo-install-successful file in /root
+touch /root/osinfo-install-successful
+
 %end
         </xsl:template>
       </xsl:stylesheet>
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 68ece05..c625626 100644
--- a/data/install-script/fedoraproject.org/fedora-kickstart-jeos.xml.in
+++ b/data/install-script/fedoraproject.org/fedora-kickstart-jeos.xml.in
@@ -218,6 +218,11 @@ url <xsl:call-template name="url-or-mirrorlist"/>
 @hardware-support
 </xsl:if>
 
+%post --erroronfail
+
+# Create an osinfo-install-successful file in /root
+touch /root/osinfo-install-successful
+
 %end
         </xsl:template>
       </xsl:stylesheet>
-- 
2.21.0




More information about the Libosinfo mailing list