fix kdump patch err

This commit is contained in:
t_feng 2020-08-27 23:14:20 +08:00
parent d84888366e
commit 7422db0e05
2 changed files with 9 additions and 3 deletions

View File

@ -1,7 +1,7 @@
%define _empty_manifest_terminate_build 0 %define _empty_manifest_terminate_build 0
Name: anaconda Name: anaconda
Version: 33.19 Version: 33.19
Release: 3 Release: 4
Summary: Graphical system installer Summary: Graphical system installer
License: GPLv2+ and MIT License: GPLv2+ and MIT
URL: http://fedoraproject.org/wiki/Anaconda URL: http://fedoraproject.org/wiki/Anaconda
@ -242,6 +242,12 @@ update-desktop-database &> /dev/null || :
%{_datadir}/gtk-doc %{_datadir}/gtk-doc
%changelog %changelog
* Thu Aug 27 2020 fengtao <fengtao40@huawei.com> - 33.19-4
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:fix kdump patch err
* Fri Aug 7 2020 fengtao <fengtao40@huawei.com> - 33.19-3 * Fri Aug 7 2020 fengtao <fengtao40@huawei.com> - 33.19-3
- Type:bugfix - Type:bugfix
- Id:NA - Id:NA

View File

@ -28,9 +28,9 @@ index c6b7db4..57fb2e5 100644
+ arg_str = "%s" % self.boot_args + arg_str = "%s" % self.boot_args
+ if blivet.arch.is_aarch64(): + if blivet.arch.is_aarch64():
+ log.info("check boot args:%s", arg_str) + log.info("check boot args:%s", arg_str)
+ arg_str += "crashkernel=1024M,high" + arg_str += " crashkernel=1024M,high"
+ else: + else:
+ arg_str += "crashkernel=512M" + arg_str += " crashkernel=512M"
+ +
+ log.info("bootloader.py: used boot args: %s ", arg_str) + log.info("bootloader.py: used boot args: %s ", arg_str)
+ defaults.write("GRUB_CMDLINE_LINUX=\"%s\"\n" % arg_str) + defaults.write("GRUB_CMDLINE_LINUX=\"%s\"\n" % arg_str)