Skip to content
Snippets Groups Projects
Commit 60d677bb authored by Ronny Nilsson's avatar Ronny Nilsson
Browse files

sysupgrade: query of image version had an copy-paste error.

parent a137cd80
No related branches found
No related tags found
No related merge requests found
...@@ -224,9 +224,10 @@ fi ...@@ -224,9 +224,10 @@ fi
# Are we compatible with the input image? # Are we compatible with the input image?
# We need singe UBI pureUBI at least. # We need singe UBI pureUBI at least.
y3ver=$(get_inteno_tag_val "$from" version) y3ver=$(get_inteno_tag_val "$pathY3" version)
y3flags=$(get_inteno_tag_val "$from" flags) y3flags=$(get_inteno_tag_val "$pathY3" flags)
if [ $ver -lt 7 ] && ! (echo $y3flags | grep -qE "^singlepureubi$"); then if [ -z "$y3ver" ] || ([ $y3ver -lt 7 ] && \
! echo $y3flags | grep -qE "^singlepureubi$"); then
echo "Old image format. Downgrade is not available." echo "Old image format. Downgrade is not available."
exit 1 exit 1
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment