[osinfo-db PATCH 1/6] install-script, debian: 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>
---
 data/install-script/debian.org/debian-preseed-desktop.xml.in | 4 ++++
 data/install-script/debian.org/debian-preseed-jeos.xml.in    | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/data/install-script/debian.org/debian-preseed-desktop.xml.in b/data/install-script/debian.org/debian-preseed-desktop.xml.in
index 5e6f701..75d65c1 100644
--- a/data/install-script/debian.org/debian-preseed-desktop.xml.in
+++ b/data/install-script/debian.org/debian-preseed-desktop.xml.in
@@ -212,6 +212,10 @@ d-i preseed/late_command string \
   </xsl:when>
 </xsl:choose>
 
+### Create an osinfo-install-successful file in /root
+d-i preseed/late_command string in-target \
+    touch /root/osinfo-install-successful
+
 </xsl:template>
       </xsl:stylesheet>
     </template>
diff --git a/data/install-script/debian.org/debian-preseed-jeos.xml.in b/data/install-script/debian.org/debian-preseed-jeos.xml.in
index 43ce0cf..667d955 100644
--- a/data/install-script/debian.org/debian-preseed-jeos.xml.in
+++ b/data/install-script/debian.org/debian-preseed-jeos.xml.in
@@ -110,6 +110,10 @@ d-i finish-install/reboot_in_progress note
 ### Remove the installation DVD from the apt-get's sources.list
 d-i preseed/late_command string in-target sed -i '/cdrom/d' /etc/apt/sources.list
 
+### Create an osinfo-install-successful file in /root
+d-i preseed/late_command string in-target \
+    touch /root/osinfo-install-successful
+
 </xsl:template>
       </xsl:stylesheet>
     </template>
-- 
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