[Libosinfo] [osinfo-db PATCH 5/6] install-script, rhel, centos: Add osinfo-install-successful file

Fabiano Fidêncio fidencio at redhat.com
Fri Jul 19 14:22:10 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>
---
 data/install-script/redhat.com/rhel-kickstart-desktop.xml.in | 3 +++
 data/install-script/redhat.com/rhel-kickstart-jeos.xml.in    | 5 +++++
 2 files changed, 8 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 7bfaf6e..3eee257 100644
--- a/data/install-script/redhat.com/rhel-kickstart-desktop.xml.in
+++ b/data/install-script/redhat.com/rhel-kickstart-desktop.xml.in
@@ -248,6 +248,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/redhat.com/rhel-kickstart-jeos.xml.in b/data/install-script/redhat.com/rhel-kickstart-jeos.xml.in
index fdef836..e664168 100644
--- a/data/install-script/redhat.com/rhel-kickstart-jeos.xml.in
+++ b/data/install-script/redhat.com/rhel-kickstart-jeos.xml.in
@@ -171,6 +171,11 @@ url --url=<xsl:call-template name="installation-url"/>
 </xsl:choose>
 @core
 
+%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