Developing lightweight computation at the DSG edge

Commit 469a9e4e authored by p4u's avatar p4u
Browse files

For upgrade system, clean overlay should be done only for Alix

parent 9458926a
......@@ -152,7 +152,7 @@ qmp_update_upgrade_system() {
read -p "Do you want to upgrade system using image $image_url? [N,y] " a
if [ "$a" == "y" ]; then
rm -rf /overlay/* 2>/dev/null
[ $(echo $image_url | grep Alix -c) -eq 1 ] && { echo "Detected Alix, applying sysupgrade patch..."; rm -rf /overlay/* 2>/dev/null; }
[ -n "$config" ] && sysupgrade -f $config $output_image
[ -z "$config" ] && sysupgrade -n $output_image
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment