If the apk cache is outdated (first installation) and you try to upgrade with this "-a" argument without configuring a network, then apk will just strip every packages that are not available. It then leave the phone in a very broken state. The -a was used to handle mainlining software from pmaport to aport (where pmaport uses 9999 version numbers). As we do not rely that much on those softwares (that are now mainlined), we strip this unsafe argument. Signed-off-by: Stacy Harper <contact@stacyharper.net> Signed-off-by: Anjandev Momi <anjan@momi.ca>
13 lines
315 B
Bash
Executable file
13 lines
315 B
Bash
Executable file
#!/usr/bin/env sh
|
|
# include common definitions
|
|
# shellcheck source=scripts/core/sxmo_common.sh
|
|
. "$(dirname "$0")/sxmo_common.sh"
|
|
|
|
echo "Updating all packages from repositories"
|
|
sudo apk update
|
|
|
|
echo "Upgrading all packages"
|
|
sudo apk upgrade
|
|
|
|
echo "Upgrade complete - reboot for all changes to take effect"
|
|
read -r
|