I have just tried the migration tool on an old laptop as a trial because I need to update another PC from Leap 15.6 but my problem is that it runs my weather station so I need to minimise downtime.
Doing the laptop took a couple of hours. It downloads in my case about 3500 packages and then updates.
So firstly is there any way to use that tool with a downloaded ISO for Leap 16 to save on download time? Also does the downloaded ISO support updating in the same way as the migration tool?
Stuart
The migration tool is just a script that basically adjusts the repo list for the upgrade, does a few checks and then performs a
zypper --releasever $TARGET_VER dup -y --force-resolution --allow-vendor-change --download-in-advance
so no, it cannot do a dup from a downloaded image.
But please note the --download-in-advanceoption in that line, so if it takes 2 hrs maybe 1.5 h are for downloading all the packages, then .5 h to perform the actual upgrade.
During the download phase the system might be operational (apart for some heavy traffic on the network) and possibly even during the actual upgrade (unless running programs keep unloading and reloading files that might be deleted meanwhile).
So if all goes well the only effective downtime is that taken by a reboot.
Or… you might setup a local copy of the Leap 16.0 OSS repo (the only one that really counts) and tweak the script to point to that instead of download.opensuse.org.
DISCLAIMER: this is only to illustrate the concept, I’m not implying that the above is fit for your specific purpose and of course I didn’t check (nor see any possible way I could do so).
1 Like
Or better still…
Tweak the script to perform a --download-only, have it running once to download all packages in the cache;
then perform a zypper dupwith the options you like to do the actual upgrade.
Be careful, you may miss some of the post-dup checks and tweaks done by the original migration tool.
DISCLAIMER etc. etc.
Thanks for the suggestions, I’ll take a look.
Stuart