summaryrefslogtreecommitdiff
diff options
authorPMR <pmr@pmr-lander>2017-09-29 09:26:33 +0000
committerPMR <pmr@pmr-lander>2017-09-29 09:26:33 +0000
commit2b938fbc0f88640c61325b5cc22069ee1b4782c3 (patch)
treeac3ffa1ed552900b6e60010339f6b980334b7234
parent1b90e960b7096bd2d30e5a2c28381f11fcd6f0dc (diff)
parent0c11771694dc57063efb517420e038004c2b84fa (diff)
Merge #331416 from ~sylvain-pineau/plainbox-provider-checkbox:buildstamp_snappy
-rw-r--r--units/info/jobs.pxu11
1 files changed, 8 insertions, 3 deletions
diff --git a/units/info/jobs.pxu b/units/info/jobs.pxu
index 0588e26..12ad318 100644
--- a/units/info/jobs.pxu
+++ b/units/info/jobs.pxu
@@ -340,9 +340,14 @@ plugin: attachment
category_id: com.canonical.plainbox::info
id: info/buildstamp
estimated_duration: 0.1
-_description: Attaches the buildstamp identifier for the preinstalled OS
-_summary: Attach /etc/buildstamp
-command: [ -s /etc/buildstamp ] && cat /etc/buildstamp
+_description: Attaches the buildstamp identifier for the OS
+_summary: Attaches the buildstamp identifier for the OS
+command:
+ if [ -s /etc/buildstamp ]; then
+ cat /etc/buildstamp
+ elif [ -e /var/lib/snapd/seed/seed.yaml ]; then
+ echo && date -r /var/lib/snapd/seed/seed.yaml -R
+ fi
plugin: shell
category_id: com.canonical.plainbox::info