diff --git a/packages/system/suc-upgrade/definition.yaml b/packages/system/suc-upgrade/definition.yaml index 9b411f5e8..ce2f3e90a 100644 --- a/packages/system/suc-upgrade/definition.yaml +++ b/packages/system/suc-upgrade/definition.yaml @@ -1,3 +1,3 @@ name: "suc-upgrade" category: "system" -version: "0.2.2" +version: "0.2.3" diff --git a/packages/system/suc-upgrade/suc-upgrade.sh b/packages/system/suc-upgrade/suc-upgrade.sh index 56baedf26..f89ea64d8 100644 --- a/packages/system/suc-upgrade/suc-upgrade.sh +++ b/packages/system/suc-upgrade/suc-upgrade.sh @@ -22,8 +22,9 @@ while [[ "$#" -gt 0 ]]; do done if [ "$recovery_mode" = true ]; then kairos-agent upgrade --recovery --source dir:/ + exit 0 # no need to reboot when upgrading recovery else kairos-agent upgrade --source dir:/ + nsenter -i -m -t 1 -- reboot + exit 1 fi -nsenter -i -m -t 1 -- reboot -exit 1