From 85bf847191f7c250599bd12d6b4f58ff1f778072 Mon Sep 17 00:00:00 2001 From: ZhouWeitao Date: Sat, 18 Feb 2023 20:12:42 +0800 Subject: [PATCH] set a reasonable 600M mem in system requirements check Signed-off-by: ZhouWeitao --- ...erform-system-requirements-check-to-ensure-migratio.patch | 2 +- leapp-repository.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/0036-Perform-system-requirements-check-to-ensure-migratio.patch b/0036-Perform-system-requirements-check-to-ensure-migratio.patch index 3d56682..96e81ab 100644 --- a/0036-Perform-system-requirements-check-to-ensure-migratio.patch +++ b/0036-Perform-system-requirements-check-to-ensure-migratio.patch @@ -37,7 +37,7 @@ index 0000000..59af805 + vm_info = sc.virtual_memory() + partition = sc.partition_size_from_directory("/var/lib/leapp/") + -+ assert partition['free'] >= 4 * 1024 * 1024 * 1024 and vm_info['free'] >= 2 * 1024 * 1024 * 1024, "To ensure the migration, this machine must have 4G free space on disk and 2G RAM available." ++ assert partition['free'] >= 4 * 1024 * 1024 * 1024 and vm_info['free'] >= 600 * 1024 * 1024, "To ensure the migration, this machine must have 4G free space on disk and 600M RAM available." + assert sc.initd_is_symlink(), "It is crucial that /etc/init.d be a symlink to rc.d/init.d by default." diff --git a/repos/system_upgrade/el7toel8/actors/systemrequirementschecker/libraries/systemchecker.py b/repos/system_upgrade/el7toel8/actors/systemrequirementschecker/libraries/systemchecker.py new file mode 100644 diff --git a/leapp-repository.spec b/leapp-repository.spec index 46fed18..6d7a49f 100644 --- a/leapp-repository.spec +++ b/leapp-repository.spec @@ -11,7 +11,7 @@ }\ py2_byte_compile "%1" "%2"} -%define anolis_release 14 +%define anolis_release 15 Name: leapp-repository Version: 0.13.0 @@ -187,6 +187,9 @@ done; # no files here %changelog +* Sat Feb 18 2023 Weitao Zhou - 0.13.0-2.15 +- set a reasonable 600M mem in system requirements check + * Thu Feb 16 2023 Weisson - 0.13.0-2.14 - Add RPMDownloadOrInstallError and its exit code. - comment patch 0031-Deal-with-EPEL-repositories-create-by-user-mannally.patch -- Gitee