From 2929523e0c5a0be347622ad8eead1347e687e14e Mon Sep 17 00:00:00 2001 From: cyruslien Date: Mon, 23 Oct 2023 13:09:33 +0800 Subject: [PATCH] Change: read ubuntu_dist_channel first then media-info (#754) (BugFix) (#756) Change: read ubuntu_dist_channel first then media-info (#754) --- providers/base/units/info/jobs.pxu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/providers/base/units/info/jobs.pxu b/providers/base/units/info/jobs.pxu index 30b794cb7..7f2b9dbfe 100644 --- a/providers/base/units/info/jobs.pxu +++ b/providers/base/units/info/jobs.pxu @@ -366,14 +366,14 @@ command: exit 1 fi {% else -%} - if [ -s /var/log/installer/media-info ]; then # Stock installer info + if [ -s /var/lib/ubuntu_dist_channel ]; then # PC projects + cat /var/lib/ubuntu_dist_channel + elif [ -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 - elif [ -s /var/lib/ubuntu_dist_channel ]; then # PC projects - cat /var/lib/ubuntu_dist_channel else exit 1 fi