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

Fabiano Fidêncio fidencio at redhat.com
Fri Jul 19 14:22:09 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>
---
 .../opensuse.org/opensuse-autoyast-desktop.xml.in              | 3 +++
 data/install-script/opensuse.org/opensuse-autoyast-jeos.xml.in | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/data/install-script/opensuse.org/opensuse-autoyast-desktop.xml.in b/data/install-script/opensuse.org/opensuse-autoyast-desktop.xml.in
index 38e2c92..5122bfb 100644
--- a/data/install-script/opensuse.org/opensuse-autoyast-desktop.xml.in
+++ b/data/install-script/opensuse.org/opensuse-autoyast-desktop.xml.in
@@ -301,6 +301,9 @@ zypper ar -f <xsl:call-template name="repo-update-oss"/> repo-update-oss
 <xsl:if test="not(contains(os/version, 'tumbleweed'))">
   zypper ar -f <xsl:call-template name="repo-update-non-oss"/> repo-update-non-oss
 </xsl:if>
+
+# Create an osinfo-install-successful file in /root
+touch /root/osinfo-install-successful
                   </source>
                 </script>
               </chroot-scripts>
diff --git a/data/install-script/opensuse.org/opensuse-autoyast-jeos.xml.in b/data/install-script/opensuse.org/opensuse-autoyast-jeos.xml.in
index 9f7af9f..94d35a7 100644
--- a/data/install-script/opensuse.org/opensuse-autoyast-jeos.xml.in
+++ b/data/install-script/opensuse.org/opensuse-autoyast-jeos.xml.in
@@ -253,6 +253,9 @@ zypper ar -f <xsl:call-template name="repo-update-oss"/> repo-update-oss
 <xsl:if test="not(contains(os/version, 'tumbleweed'))">
   zypper ar -f <xsl:call-template name="repo-update-non-oss"/> repo-update-non-oss
 </xsl:if>
+
+# Create an osinfo-install-successful file in /root
+touch /root/osinfo-install-successful
                   </source>
                 </script>
               </chroot-scripts>
-- 
2.21.0




More information about the Libosinfo mailing list