From ef3b67cdd08819699eb43bb06c4f63b34eba477a Mon Sep 17 00:00:00 2001
From: renoseven <dev@renoseven.net>
Date: Wed, 15 May 2024 15:34:35 +0800
Subject: [PATCH] ignore pin memory init in oe24.03

Signed-off-by: renoseven <dev@renoseven.net>
---
 misc/nvwa-pre.sh | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/misc/nvwa-pre.sh b/misc/nvwa-pre.sh
index 69f6de9..61535bc 100644
--- a/misc/nvwa-pre.sh
+++ b/misc/nvwa-pre.sh
@@ -1,7 +1,5 @@
 #!/bin/bash
 
-set -e
-
 # 1. Increase last pid by 2011 from saved last pid.
 #    So services restoring may use its old pid.
 LAST_PID_FILE="/proc/sys/kernel/ns_last_pid"
@@ -31,11 +29,7 @@ else
 	rm -rf "${LAST_PID_SAVE_FILE}"
 fi
 
-# 2. Enable Pin Memory
-modprobe pin_memory
-/usr/bin/nvwa-pin --init-pagemap-read
-
-# 3. Enable PMEM
+# 2. Enable PMEM
 grep -q "Persistent Memory" /proc/iomem || exit 0
 modprobe nd_e820
 
-- 
2.34.1

