From f1b9519e23e84a178985a8f31320758c2b50151c Mon Sep 17 00:00:00 2001 From: Nazarii Hnydyn Date: Wed, 29 Apr 2020 08:23:51 +0000 Subject: [PATCH] [fwutil]: Fix firmware update command. Signed-off-by: Nazarii Hnydyn --- fwutil/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fwutil/main.py b/fwutil/main.py index 7f03e54ab0..c320929cc5 100755 --- a/fwutil/main.py +++ b/fwutil/main.py @@ -227,8 +227,6 @@ def update(ctx, yes, force, image): squashfs = None try: - cup = ComponentUpdateProvider() - if image == IMAGE_NEXT: squashfs = SquashFs() @@ -237,6 +235,9 @@ def update(ctx, yes, force, image): cup = ComponentUpdateProvider(fs_path) else: log_helper.print_warning("Next boot is set to current: fallback to defaults") + cup = ComponentUpdateProvider() + else: + cup = ComponentUpdateProvider() click.echo(cup.get_status(force))