diff options
author | Jonathan Cave <jonathan.cave@canonical.com> | 2022-01-28 17:30:07 +0000 |
---|---|---|
committer | Jonathan Cave <jonathan.cave@canonical.com> | 2022-01-28 17:30:07 +0000 |
commit | f8100caea09732bf0de354432679c324b710fef5 (patch) | |
tree | 302b3df10e24a4ce9e5616cb450fad061d69c3eb | |
parent | 3b07d96241c6726e22e9ac53a3353676beec514c (diff) |
Change: gather buildstamp for stock installs
The stock installer stores media info in /var/log, this is the data collected by apport. Use this as the "buildstamp" when available.
-rw-r--r-- | units/info/jobs.pxu | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/units/info/jobs.pxu b/units/info/jobs.pxu index 12d7ab1..f149eb6 100644 --- a/units/info/jobs.pxu +++ b/units/info/jobs.pxu @@ -366,7 +366,9 @@ command: exit 1 fi {% else -%} - if [ -s /.disk/info ]; then # Ubuntu Classic + if [ -s /var/log/installer/media-info ]; then # Stock installer info + cat /var/log/installer/media-info + elif [ -s /.disk/info ]; then cat /.disk/info elif [ -s /etc/media-info ]; then cat /etc/media-info |