Skip to content

Commit

Permalink
Change: read ubuntu_dist_channel first then media-info (#754) (BugFix) (
Browse files Browse the repository at this point in the history
#756)

Change: read ubuntu_dist_channel first then media-info (#754)
  • Loading branch information
cypselurus authored Oct 23, 2023
1 parent 4f93a29 commit 2929523
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions providers/base/units/info/jobs.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2929523

Please sign in to comment.