[elbe-devel] [PATCH 1/2] commands: control: improve install_version error message

Torben Hohn torben.hohn at linutronix.de
Wed Sep 8 17:22:07 CEST 2021


When the elbe version inside the initvm shall be updated, it
will refuse, because of the version mismatch.

The version needs to be ignored and there already exists an option
for "elbe control".
Add "-ignore-version-diff" to the error message.

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/commands/control.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/commands/control.py b/elbepack/commands/control.py
index e8b8b86ab..b9ed29315 100644
--- a/elbepack/commands/control.py
+++ b/elbepack/commands/control.py
@@ -161,7 +161,7 @@ def run_command(argv):
                   "versions of elbe in initvm and on your machine." % (
                       v_server, elbe_version), file=sys.stderr)
             print("To install elbe v%s into the initvm use "
-                  "'elbe control install_elbe_version'" % elbe_version)
+                  "'elbe control --ignore-version-diff install_elbe_version'" % elbe_version)
 
             if not opt.ignore_version:
                 sys.exit(20)
-- 
2.20.1



More information about the elbe-devel mailing list