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

diff --git a/data/install-script/ubuntu.com/ubuntu-preseed-desktop.xml.in b/data/install-script/ubuntu.com/ubuntu-preseed-desktop.xml.in
index 9fd8bcf..f7484f9 100644
--- a/data/install-script/ubuntu.com/ubuntu-preseed-desktop.xml.in
+++ b/data/install-script/ubuntu.com/ubuntu-preseed-desktop.xml.in
@@ -91,6 +91,10 @@ d-i finish-install/reboot_in_progress note
 d-i preseed/early_command string chmod 666 /dev/ttyS0
 ubiquity ubiquity/summary note
 ubiquity ubiquity/reboot boolean true
+
+# 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/ubuntu.com/ubuntu-preseed-jeos.xml.in b/data/install-script/ubuntu.com/ubuntu-preseed-jeos.xml.in
index af9eb4c..b1edba3 100644
--- a/data/install-script/ubuntu.com/ubuntu-preseed-jeos.xml.in
+++ b/data/install-script/ubuntu.com/ubuntu-preseed-jeos.xml.in
@@ -117,6 +117,10 @@ d-i preseed/late_command string \
 <xsl:if test="os/version = 13.04">
 ubiquity ubiquity/success_command string sed -i 's/eject -p -m.*/&amp; [ "$prompt" ] || return 0/' /etc/init.d/casper
 </xsl:if>
+
+# 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