!8 添加kdump启动参数。

Merge pull request !8 from Pecs/along
This commit is contained in:
openeuler-ci-bot 2020-01-15 22:39:50 +08:00 committed by Gitee
commit 002b3ad58b
2 changed files with 37 additions and 1 deletions

View File

@ -0,0 +1,29 @@
From 10e74d1ae32d7323bea98a3667cae4b995c7a511 Mon Sep 17 00:00:00 2001
From: Jialong Chen <chenjialong@huawei.com>
Date: Wed, 15 Jan 2020 21:42:36 +0800
Subject: [PATCH] add kdump parameter into kernel cmdline
Signed-off-by: Jialong Chen <chenjialong@huawei.com>
---
pyanaconda/bootloader.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index 4f96c99..5162316 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -1537,9 +1537,9 @@ class GRUB2(GRUB):
if blivet.arch.is_aarch64():
log.info("check boot args:%s",arg_str)
arg_str=re.sub("console=[a-zA-Z0-9,]*","",arg_str)
- arg_str+=" smmu.bypassdev=0x1000:0x17 smmu.bypassdev=0x1000:0x15"
+ arg_str+=" smmu.bypassdev=0x1000:0x17 smmu.bypassdev=0x1000:0x15 crashkernel=1024M,high"
else:
- arg_str+=" quiet"
+ arg_str+=" quiet crashkernel=512M"
log.info("bootloader.py: used boot args: %s ", arg_str)
defaults.write("GRUB_CMDLINE_LINUX=\"%s\"\n" % arg_str)
--
1.8.3.1

View File

@ -3,7 +3,7 @@
Name: anaconda
Version: 29.24.7
Release: 20
Release: 21
Summary: Graphical system installer
License: GPLv2+ and MIT
URL: https://fedoraproject.org/wiki/Anaconda
@ -42,6 +42,7 @@ Patch9024: bugfix-disable-adding-virtual-device-in-network-spokes.patch
Patch9025: bugfix-for-encrypting-partion.patch
Patch9026: bugfix-modify-arguments-parsing.patch
Patch9027: anaconda-add-boot-options-for-raid-3408.patch
Patch9028: anaconda-add-kdump-parameter-into-kernel-cmdline.patch
BuildRequires: audit-libs-devel libtool gettext-devel >= 0.19.8 gtk3-devel >= 3.22.17
BuildRequires: gtk-doc gtk3-devel-docs >= 3.22.17 glib2-doc gobject-introspection-devel
@ -214,6 +215,12 @@ update-desktop-database &> /dev/null || :
%{_datadir}/gtk-doc
%changelog
* Wed Jan 15 2020 openEuler Buildteam <buildteam@openeuler.org> - 29.24.7-21
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add boot options for kdump.
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 29.24.7-20
- Type:bugfix
- ID:NA