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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 .../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

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux