6df2a7
From f47136bada397328d0a6f36a81138699c793fe92 Mon Sep 17 00:00:00 2001
6df2a7
From: Kairui Song <kasong@redhat.com>
6df2a7
Date: Wed, 27 May 2020 21:59:55 +0800
6df2a7
Subject: [PATCH] Remove cleanup_trace_mem calls
6df2a7
6df2a7
In commit 49c4172 all shell based memory tracing functions are removed,
6df2a7
there are some left over. Remove them as well.
6df2a7
6df2a7
Signed-off-by: Kairui Song <kasong@redhat.com>
6df2a7
(cherry picked from commit 2a611328652388b809a379403ceec126cb55819f)
6df2a7
6df2a7
Resolves: #1829528
6df2a7
---
6df2a7
 modules.d/98dracut-systemd/dracut-pre-pivot.sh | 1 -
6df2a7
 modules.d/99base/init.sh                       | 1 -
6df2a7
 2 files changed, 2 deletions(-)
6df2a7
6df2a7
diff --git a/modules.d/98dracut-systemd/dracut-pre-pivot.sh b/modules.d/98dracut-systemd/dracut-pre-pivot.sh
6df2a7
index 96e6f8ca..cc70e3c3 100755
6df2a7
--- a/modules.d/98dracut-systemd/dracut-pre-pivot.sh
6df2a7
+++ b/modules.d/98dracut-systemd/dracut-pre-pivot.sh
6df2a7
@@ -14,7 +14,6 @@ make_trace_mem "hook pre-pivot" '1:shortmem' '2+:mem' '3+:slab'
6df2a7
 getarg 'rd.break=pre-pivot' 'rdbreak=pre-pivot' && emergency_shell -n pre-pivot "Break pre-pivot"
6df2a7
 source_hook pre-pivot
6df2a7
 
6df2a7
-cleanup_trace_mem
6df2a7
 # pre pivot cleanup scripts are sourced just before we switch over to the new root.
6df2a7
 getarg 'rd.break=cleanup' 'rdbreak=cleanup' && emergency_shell -n cleanup "Break cleanup"
6df2a7
 source_hook cleanup
6df2a7
diff --git a/modules.d/99base/init.sh b/modules.d/99base/init.sh
6df2a7
index 2c0ccd66..a5633936 100755
6df2a7
--- a/modules.d/99base/init.sh
6df2a7
+++ b/modules.d/99base/init.sh
6df2a7
@@ -271,7 +271,6 @@ getarg 'rd.break=pre-pivot' -d 'rdbreak=pre-pivot' && emergency_shell -n pre-piv
6df2a7
 source_hook pre-pivot
6df2a7
 
6df2a7
 make_trace_mem "hook cleanup" '1:shortmem' '2+:mem' '3+:slab'
6df2a7
-cleanup_trace_mem
6df2a7
 # pre pivot cleanup scripts are sourced just before we switch over to the new root.
6df2a7
 getarg 'rd.break=cleanup' -d 'rdbreak=cleanup' && emergency_shell -n cleanup "Break cleanup"
6df2a7
 source_hook cleanup
6df2a7