Starting with jammy, ppc64el packages are compiled for Power 9
processors, and Power 8 processors are not able to upgrade to jammy. Add
a quirk to check /proc/cpuinfo for a POWER8 cpu, and abort the upgrade
if found.
DistUpgrade: use org.freedesktop.ScreenSaver to inhibit screen lock
Update the screen lock prevention code in DistUpgradeController to use
the DBus interface org.freedesktop.ScreenSaver. This was suggested as
the preferred alternative to existing quirks, which sometimes fail. If
the org.freedesktop.ScreenSaver service cannot be found, display a
message to the user suggesting that they manually ensure the lock screen
is disabled.
The org.freedesktop.ScreenSaver.Inhibit function is implemented such
that the effect only lasts as long as the caller's dbus connection
remains open [1]. This means that when the dist-upgrade completes, and
the user chooses not to reboot immediately, the screen may lock again.
This is a change in the previous behavior, which was originally added
because of LP: #1780342.
Remove the gnome-screensaver quirk and the KDE-specific code in favor of
this approach. But, leave the xdg-screensaver quirk as it may work in
cases such as xscreensaver, where the org.freedesktop.ScreenSaver
interface is not available.
Increase the fallback KERNEL_INITRD_SIZE so that there is room for commonly used modules in the initramfs subsequently some upgrades may be disallowed due to a lack of free space in /boot.
DistUpgrade: update download rates in estimated download message
Currently, the estimated download time message references 1Mbit DSL and
56k modems. These references are not useful for most modern download
rates. Update the message to reference 5Mbit and 40Mbit rates instead,
using the data in [1] as a guide.
While here, make the computation compliant with [2].