[Libosinfo] [osinfo-db PATCH 1/6] install-script, debian: Add osinfo-install-successful file
Fabiano Fidêncio
fidencio at redhat.com
Fri Jul 19 14:22:06 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/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
More information about the Libosinfo
mailing list