~enr0n/ubuntu-release-upgrader:lp.1968607-jammy

Last commit made on 2022-04-13
Get this branch:
git clone -b lp.1968607-jammy https://git.launchpad.net/~enr0n/ubuntu-release-upgrader
Only Nick Rosbrook can upload to this branch. If you are Nick Rosbrook please log in for upload directions.

Branch merges

Branch information

Name:
lp.1968607-jammy
Repository:
lp:~enr0n/ubuntu-release-upgrader

Recent commits

b861f6d... by Nick Rosbrook

DistUpgrade: do not make UI dialog calls while EUID != 0

The screen lock prevention code has to temporarily set the EUID to the
non-root user UID so that it can make a DBus call on the user's session
bus. While the EUID is temporarily non-zero, a UI dialog may be
displayed to report the success of inhibiting the screen lock. For most
cases this is OK, but it causes an exception for the DistUpgradeViewKDE
frontend. This is because the view.information() call needs to read
dialog_error.ui from the tmpdir, but the non-root user does not have
permission to read this file.

To fix this, in _inhibitIdle(), move the information dialog call to
after the finally block which re-sets the EUID.

089693b... by Nick Rosbrook

do-release-upgrade: preserve env vars needed for screen lock prevention

The screen lock prevention code relies on environment variables such as
DBUS_SESSION_BUS_ADDRESS being preserved, since the
org.freedesktop.ScreenSaver DBus interface is needed. This works in
cases where the dist-upgrade script is invoked with 'sudo -E' (e.g.
DistUpgradeViewText frontend). However, when pkexec is used (e.g.
DistUpgradeViewGtk3 frontend) the environment variables cannot be
preserved as per pkexec's design.

Add an --env flag to do-release-upgrade that accepts a comma-separated
list of environment variables (e.g. VAR1=VALUE1,VAR2=VALUE2) which should be set when
executing the dist-upgrade script. This approach is similar to the
existing workaround for RELEASE_UPGRADER_ALLOW_THIRD_PARTY, but is
generalized to allow any environment variables to be set.

Finally, when the DistUpgradeViewGtk3 or DistUpgradeViewKDE frontends
are used, and the do-release-upgrade script is re-exec'd with pkexec,
set the DBUS_SESSION_BUS_ADDRESS and XDG_SESSION_TYPE variables with
--env so that the screen lock prevention code works with these
frontends.

LP: #1968607

e43fc51... by Brian Murray

releasing package ubuntu-release-upgrader version 1:22.04.8

6090ebd... by Brian Murray

Modify the ubuntu-release-upgrader apport package hook to also gather recent messages in journalctl and a list of crashes in /var/crash as one of those may have negatively affected the upgrade process.

e8a36a9... by Brian Murray

d/91-release-upgrade: try to use the less expensive /etc/lsb-release to check if we are in a devel release (LP: #1893716)

8caff98... by Brian Murray

Update the firefox deb2snap entry so that it includes Ubuntu Studio.

c34bdb7... by Brian Murray

releasing package ubuntu-release-upgrader version 1:22.04.7

61e8207... by Nick Rosbrook

DistUpgrade: add firefox deb2snap entries for appropriate flavors

Kubuntu, Lubuntu, and Ubuntu MATE are shipping the firefox snap in
jammy. Add logic in DistUpgradeQuirks.py to allow providing a list of
metapackages in a deb2snap entry, instead of just a single entry. Then,
continue as normal if at least one metapackage in the list is installed.

Finally, update deb2snap.json so that snap:firefox is installed on the
correct flavors during dist-upgrade.

LP: #1964443

00e2f45... by Nick Rosbrook

DistUpgrade: replace core18 with core20 in deb2snap.json

9e5ad90... by Brian Murray

add in a changelog entry