redhat-upgrade-tool/SOURCES/0001-Rollbacks-enable-rollb...

27 lines
778 B
Diff

From 62687fde687b6e18940272f3d395ee049793a6d0 Mon Sep 17 00:00:00 2001
From: Petr Stodulka <pstodulk@redhat.com>
Date: Tue, 11 Sep 2018 12:07:35 +0200
Subject: [PATCH] Rollbacks: enable rollbacks only on the x86_64 arch
---
redhat-upgrade-tool.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/redhat-upgrade-tool.py b/redhat-upgrade-tool.py
index cb34fb7..e82266e 100644
--- a/redhat-upgrade-tool.py
+++ b/redhat-upgrade-tool.py
@@ -176,6 +176,9 @@ def main(args):
raise SystemExit(1)
if args.snapshot_root_lv:
+ if platform.machine() != "x86_64":
+ print _("Error: Rollbacks are possible only on the x86_64 architecture.")
+ raise SystemExit(1)
create_cleanup_script()
if args.system_restore:
--
2.14.4