ubuntu-release-upgrader: fix message on usrmerge error

This commit is contained in:
Ark74 2026-03-30 02:12:40 -06:00
parent 0e28448af6
commit 3c478ad144
2 changed files with 9 additions and 8 deletions

View file

@ -2,7 +2,7 @@ diff --git a/DistUpgrade/DistUpgradeQuirks.py b/DistUpgrade/DistUpgradeQuirks.py
index 9423f091..00d9b84c 100644
--- a/DistUpgrade/DistUpgradeQuirks.py
+++ b/DistUpgrade/DistUpgradeQuirks.py
@@ -2000,17 +2000,27 @@ class DistUpgradeQuirks(object):
@@ -2000,17 +2000,28 @@ class DistUpgradeQuirks(object):
break
if fail:
@ -23,12 +23,13 @@ index 9423f091..00d9b84c 100644
+
+ if res2.returncode != 0:
+ # Installation failed, abort the upgrade with a clear message
+ self.controller._view.error(_(
+ "The system is not /usr-merged and 'usrmerge' could not be "
+ "installed automatically. Please install it manually and "
+ "try again."
+ ))
+ return
+ self.controller._view.error(
+ _("Cannot upgrade: System is not /usr-merged"),
+ _("The system is not /usr-merged and 'usrmerge' could not be "
+ "installed automatically. Please install it manually and "
+ "try again.")
+ )
+ self.controller.abort()
+
+ # Re-check that /usr merge is now in place
+ # (ensure /bin -> /usr/bin, /lib -> /usr/lib, etc.)

View file

@ -25,7 +25,7 @@
# Also, don't forget to update the meta-release files at archive and packages.t.i
# The "obsoletes" list from ubuntu has been removed
VERSION=23
VERSION=24
. ./config
# Previous upstream release name, update for each release.