From f8100caea09732bf0de354432679c324b710fef5 Mon Sep 17 00:00:00 2001 From: Jonathan Cave Date: Fri, 28 Jan 2022 17:30:07 +0000 Subject: 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. --- units/info/jobs.pxu | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3