Accepting request 237508 from Kernel:kdump
1 OBS-URL: https://build.opensuse.org/request/show/237508 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kdump?expand=0&rev=72
This commit is contained in:
commit
7fcaf9b21a
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:519bdd14a31028b77b5c5656fdfc459e9ff69dbd383aa45bb8296a0fe2de4fa3
|
|
||||||
size 3335819
|
|
3
kdump-0.8.14.tar.bz2
Normal file
3
kdump-0.8.14.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:67e6a549a42f4b78510b5cbe7e377f78df6ea1dcf0ffaf65fb3586dae7fb4bcf
|
||||||
|
size 3335797
|
29
kdump-disable-memory-cgroup.patch
Normal file
29
kdump-disable-memory-cgroup.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
From: Petr Tesarik <ptesarik@suse.cz>
|
||||||
|
Date: Mon Jun 16 13:26:52 2014 +0200
|
||||||
|
Subject: Disable memory cgroup in the kdump kernel
|
||||||
|
References: bnc#881091
|
||||||
|
Patch-mainline: v0.8.15
|
||||||
|
Git-commit: 63b43b62fa385f5b2a0326c57cb0821d698aecc8
|
||||||
|
|
||||||
|
Since cgroups are not used for anything in the kdump kernel, they only
|
||||||
|
take up part of the precious RAM. It is better to keep them disabled.
|
||||||
|
|
||||||
|
Signed-off-by: Petr Tesarik <ptesarik@suse.cz>
|
||||||
|
|
||||||
|
diff --git a/init/rc.kdump.functions b/init/rc.kdump.functions
|
||||||
|
index 6a42ef7..24c1656 100755
|
||||||
|
--- a/init/rc.kdump.functions
|
||||||
|
+++ b/init/rc.kdump.functions
|
||||||
|
@@ -99,10 +99,10 @@ function build_kdump_commandline()
|
||||||
|
if [ -z "$commandline" ]; then
|
||||||
|
commandline=$(
|
||||||
|
remove_from_commandline \
|
||||||
|
- 'crashkernel|splash|mem|BOOT_IMAGE|showopts|zfcp\.allow_lun_scan|hugepages|acpi_no_memhotplug' \
|
||||||
|
+ 'crashkernel|splash|mem|BOOT_IMAGE|showopts|zfcp\.allow_lun_scan|hugepages|acpi_no_memhotplug|cgroup_disable' \
|
||||||
|
< /proc/cmdline)
|
||||||
|
# Use deadline for saving the memory footprint
|
||||||
|
- commandline="$commandline elevator=deadline sysrq=yes reset_devices acpi_no_memhotplug"
|
||||||
|
+ commandline="$commandline elevator=deadline sysrq=yes reset_devices acpi_no_memhotplug cgroup_disable=memory"
|
||||||
|
local arch=$(uname -i)
|
||||||
|
case "$arch" in
|
||||||
|
i?86|x86_64|ia64)
|
@ -1,3 +1,19 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 16 11:27:57 UTC 2014 - ptesarik@suse.cz
|
||||||
|
|
||||||
|
- kdump-disable-memory-cgroup.patch: disable memory cgroup in the
|
||||||
|
kdump kernel (bnc#881091).
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 16 10:51:43 UTC 2014 - ptesarik@suse.cz
|
||||||
|
|
||||||
|
- Update to 0.8.14
|
||||||
|
o Disable ACPI memory hotplug in kdump kernel (bnc#881091).
|
||||||
|
o Update kernel and initrd estimates
|
||||||
|
o Install mount-kdump.sh to dracut module directory (bnc#881851).
|
||||||
|
|
||||||
|
- Remove version number from rpmlintrc.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri May 30 11:31:44 UTC 2014 - ptesarik@suse.cz
|
Fri May 30 11:31:44 UTC 2014 - ptesarik@suse.cz
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
Url: https://github.com/ptesarik/kdump
|
Url: https://github.com/ptesarik/kdump
|
||||||
|
|
||||||
Name: kdump
|
Name: kdump
|
||||||
Version: 0.8.13
|
Version: 0.8.14
|
||||||
Release: 0
|
Release: 0
|
||||||
Requires: curl
|
Requires: curl
|
||||||
Requires: makedumpfile
|
Requires: makedumpfile
|
||||||
@ -57,8 +57,9 @@ BuildRequires: systemd
|
|||||||
%endif
|
%endif
|
||||||
PreReq: %insserv_prereq %fillup_prereq mkinitrd
|
PreReq: %insserv_prereq %fillup_prereq mkinitrd
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
Source2: %{name}-%{version}-rpmlintrc
|
Source2: %{name}-rpmlintrc
|
||||||
Source3: kdump.service
|
Source3: kdump.service
|
||||||
|
Patch0: %{name}-disable-memory-cgroup.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
# rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
|
# rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
|
||||||
Provides: kdump-helpers = %{version}
|
Provides: kdump-helpers = %{version}
|
||||||
@ -96,6 +97,7 @@ Authors:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup
|
%setup
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%optflags"
|
export CFLAGS="%optflags"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user