Skip to content

Commit

Permalink
Disable distribution upgrade as its still pretty fragile
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Nov 7, 2024
1 parent 56587f2 commit a14e94d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions tools/json/config.system.json
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@
{
"id": "SY016",
"description": "Distribution upgrades",
"status": "Disabled",
"condition": "[ -f /etc/armbian-distribution-status ] && release_upgrade rolling verify || release_upgrade stable verify",
"sub": [
{
Expand Down
4 changes: 2 additions & 2 deletions tools/modules/system/release_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ release_upgrade(){
[[ "${upgrade}" == "testing" ]] && upgrade="sid" # our repo and everything is tied to sid
[[ -f /etc/apt/sources.list.d/armbian.list ]] && sed -i "s/$distroid/$upgrade/g" /etc/apt/sources.list.d/armbian.list
apt_install_wrapper apt-get -y update
apt_install_wrapper apt-get -y -o Dpkg::Options::="--force-confold" upgrade --without-new-pkgs
apt_install_wrapper apt-get -y -o Dpkg::Options::="--force-confold" full-upgrade
apt_install_wrapper DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get -y -o Dpkg::Options::="--force-confold" upgrade --without-new-pkgs
apt_install_wrapper DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get -y -o Dpkg::Options::="--force-confold" full-upgrade
apt_install_wrapper apt-get -y --purge autoremove
fi
}

0 comments on commit a14e94d

Please sign in to comment.