[Pkg-xen-devel] [PATCH 01/13] xen version/upgrade handling: Improve an error message

Hans van Kranenburg hans at knorrie.org
Sun Feb 10 23:41:59 GMT 2019


From: Ian Jackson <ian.jackson at citrix.com>

When xen-dir cannot find xen-utils, mention that this might be because
xen-utils-<RUNNING-XEN-VERSION> was already removed.

This is generally helpful, but it does not solve the `missing
xenconsoled' problems because 1. it only changes messages and
2. actually in the init script, the error message is currently
discarded anyway (!)

But, anyway, it is an improvemennt.

Signed-off-by: Ian Jackson <ian.jackson at citrix.com>
---
 debian/scripts/xen-dir | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/scripts/xen-dir b/debian/scripts/xen-dir
index 32b5776cf3..48fe4043e1 100755
--- a/debian/scripts/xen-dir
+++ b/debian/scripts/xen-dir
@@ -5,6 +5,6 @@ VERSION=$(. /usr/lib/xen-common/bin/xen-version); RET=$?; [ $RET -eq 0 ] || exit
 if [ -d "/usr/lib/xen-$VERSION" ]; then
     echo "/usr/lib/xen-$VERSION"
 else
-    echo "ERROR:  Can't find version $VERSION of xen utils, bailing out!" >&2
+    echo "ERROR:  Can't find version $VERSION of xen utils (maybe xen-utils-$VERSION was already removed before rebooting out of Xen $VERSION), bailing out!" >&2
     exit 127
 fi
-- 
2.20.1




More information about the Pkg-xen-devel mailing list