site  contact  subhomenews

Rollback test and update fix

April 04, 2022 — BarryK

There was a report on the forum, that rolling back from Easy 3.4.4 to 3.4.1 failed. No details were provided.

I have tried the same exercise. rolling back from 3.4.4 to 3.4.1, on my Lenovo Ideacentre PC, and it worked, no issues at all. This is going from 5.15.16 to 5.10.93 kernel. Running it right now.

Then a thought occurred, the "update" icon on the desktop is now compromised. It will look for a later online version, which is currently 3.4.4, and that can then be downloaded and installed -- however, 3.4.4 is already installed.

I put some code into /usr/local/easy_version/easy-update to handle this situation:

#20220404 if currently rolled-back, check if latestVER already installed...
if [ $VERcmp -eq 0 ];then #=0 if true.
if [ -d /mnt/wkg/releases/easy-${latestVER} ];then
echo -en '\033[1;31m' #bright red.
echo "$(gettext 'The latest online version is:') ${latestVER}"
echo "$(gettext 'The current running version is:') ${DISTRO_VERSION}"
echo "$(gettext 'HOWEVER, the latest version is already installed,')"
echo "$(gettext ' that you have rolled back from.')"
echo "$(gettext 'WILL NOT UPDATE, exiting script.')"
echo -e '\033[0;39m' #reset.
echo -e "\033[1;31m${MSGexit}\033[0;39m"
exit 3

Next step, I need to roll-forward to 3.4.4 and check that also works.

Yes, roll-forward to 3.4.4 worked, though I lost the wallpaper, just a black background. Have made a note to look into that.   

Tags: easy