Projects
Eulaceura:Factory
kdump-anaconda-addon
_service:obs_scm:enable-kdump-and-set-default-r...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:enable-kdump-and-set-default-reserve-memory-512M.patch of Package kdump-anaconda-addon
From 09ab1debcc752ed7d9dbff5731450f9a0df7761a Mon Sep 17 00:00:00 2001 From: zhangqiumiao <zhangqiumiao1@huawei.com> Date: Wed, 23 Sep 2020 11:23:11 +0800 Subject: [PATCH] enable kdump and set default reserve memory 512M --- com_redhat_kdump/common.py | 2 +- com_redhat_kdump/service/kdump.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/com_redhat_kdump/common.py b/com_redhat_kdump/common.py index b8450c8..992d63e 100644 --- a/com_redhat_kdump/common.py +++ b/com_redhat_kdump/common.py @@ -71,7 +71,7 @@ def getMemoryBounds(): minUsable = 1024 step = 1 elif arch == 'aarch64': - lowerBound = 768 + lowerBound = 512 minUsable = 768 step = 1 else: diff --git a/com_redhat_kdump/service/kdump.py b/com_redhat_kdump/service/kdump.py index ff902b7..2764e6a 100644 --- a/com_redhat_kdump/service/kdump.py +++ b/com_redhat_kdump/service/kdump.py @@ -47,8 +47,13 @@ class KdumpService(KickstartService): self._fadump_enabled = False self.fadump_enabled_changed = Signal() - self.reserveMB = "auto" lower, upper, step = getMemoryBounds() + # set default reserveMB + # ensure that 512M is not out of MemoryBounds + if (upper > 512): + self._reserved_memory = "512" + else: + self._reserved_memory = "%d" % lower self.reserved_memory_changed = Signal() def publish(self): -- 2.19.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2