ignore pin_memory init in x86
This commit is contained in:
parent
60ae870890
commit
dc270b91fa
39
0001-ignore-pin-memory-init-in-x86.patch
Normal file
39
0001-ignore-pin-memory-init-in-x86.patch
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
From fe0b709d2fe196097796b3b964803226c6ca9578 Mon Sep 17 00:00:00 2001
|
||||||
|
From: hejingxian <hejingxian@huawei.com>
|
||||||
|
Date: Thu, 1 Dec 2022 23:02:21 +0800
|
||||||
|
Subject: [PATCH] ignore pin memory init in x86
|
||||||
|
|
||||||
|
Signed-off-by: hejingxian <hejingxian@huawei.com>
|
||||||
|
---
|
||||||
|
misc/nvwa-pre.sh | 9 ++++++---
|
||||||
|
1 file changed, 6 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/misc/nvwa-pre.sh b/misc/nvwa-pre.sh
|
||||||
|
index 69f6de9..18960e7 100644
|
||||||
|
--- a/misc/nvwa-pre.sh
|
||||||
|
+++ b/misc/nvwa-pre.sh
|
||||||
|
@@ -1,6 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
-set -e
|
||||||
|
+#set -e
|
||||||
|
|
||||||
|
# 1. Increase last pid by 2011 from saved last pid.
|
||||||
|
# So services restoring may use its old pid.
|
||||||
|
@@ -32,8 +32,11 @@ else
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 2. Enable Pin Memory
|
||||||
|
-modprobe pin_memory
|
||||||
|
-/usr/bin/nvwa-pin --init-pagemap-read
|
||||||
|
+is_x86=`uname -a | grep x86`
|
||||||
|
+if [[ $is_x86"X" == "X" ]]; then
|
||||||
|
+ modprobe pin_memory
|
||||||
|
+ /usr/bin/nvwa-pin --init-pagemap-read
|
||||||
|
+fi
|
||||||
|
|
||||||
|
# 3. Enable PMEM
|
||||||
|
grep -q "Persistent Memory" /proc/iomem || exit 0
|
||||||
|
--
|
||||||
|
2.20.1.windows.1
|
||||||
|
|
||||||
@ -1,12 +1,14 @@
|
|||||||
Name: nvwa
|
Name: nvwa
|
||||||
Version: 0.2
|
Version: 0.2
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: a tool used for openEuler kernel update
|
Summary: a tool used for openEuler kernel update
|
||||||
|
|
||||||
License: MulanPSL-2.0 and Apache-2.0 and MIT and MPL-2.0
|
License: MulanPSL-2.0 and Apache-2.0 and MIT and MPL-2.0
|
||||||
URL: https://gitee.com/openeuler/nvwa
|
URL: https://gitee.com/openeuler/nvwa
|
||||||
Source: %{name}-v%{version}.tar.gz
|
Source: %{name}-v%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch1: 0001-ignore-pin-memory-init-in-x86.patch
|
||||||
|
|
||||||
BuildRequires: golang >= 1.13
|
BuildRequires: golang >= 1.13
|
||||||
Requires: kexec-tools criu
|
Requires: kexec-tools criu
|
||||||
Requires: systemd-units iptables-services iproute
|
Requires: systemd-units iptables-services iproute
|
||||||
@ -18,7 +20,7 @@ A tool used to automate the process of seamless update of the openEuler.
|
|||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{name}-v%{version}
|
%autosetup -n %{name}-v%{version} -p1
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -79,8 +81,6 @@ source /usr/share/bash-completion/completions/nvwa
|
|||||||
%{_bindir}/%{name}-pre.sh
|
%{_bindir}/%{name}-pre.sh
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Sep 06 2022 anatasluo <luolongjun@huawei.com> - 0.2-2
|
|
||||||
- Fix issues caused by ctrl-c and systemd
|
|
||||||
* Fri Jul 30 2021 anatasluo <luolongjun@huawei.com> - 0.2-1
|
* Fri Jul 30 2021 anatasluo <luolongjun@huawei.com> - 0.2-1
|
||||||
- Update to 0.2
|
- Update to 0.2
|
||||||
* Fri Mar 19 2021 snoweay <snoweay@163.com> - 0.1-3
|
* Fri Mar 19 2021 snoweay <snoweay@163.com> - 0.1-3
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user