17094c
From 8b3033c92a073f9e63074ffcdb1af6e69d99105c Mon Sep 17 00:00:00 2001
17094c
From: Attila Bruncsak <bruncsak@users.noreply.github.com>
17094c
Date: Fri, 14 Dec 2018 15:57:33 +0100
17094c
Subject: [PATCH] the strip command should avoid changing the file modification
17094c
 time
17094c
17094c
(cherry picked from commit 7e944c77c0e05f2cc28e11227b465525c5131772)
17094c
17094c
Resolves: #1776659
17094c
---
17094c
 dracut.sh | 4 ++--
17094c
 1 file changed, 2 insertions(+), 2 deletions(-)
17094c
17094c
diff --git a/dracut.sh b/dracut.sh
17094c
index f270af76..223261d6 100755
17094c
--- a/dracut.sh
17094c
+++ b/dracut.sh
17094c
@@ -1663,14 +1663,14 @@ if [[ $do_strip = yes ]] && ! [[ $DRACUT_FIPS_MODE ]]; then
17094c
     dinfo "*** Stripping files ***"
17094c
     find "$initdir" -type f \
17094c
         -executable -not -path '*/lib/modules/*.ko' -print0 \
17094c
-        | xargs -r -0 $strip_cmd -g 2>/dev/null
17094c
+        | xargs -r -0 $strip_cmd -g -p 2>/dev/null
17094c
 
17094c
     # strip kernel modules, but do not touch signed modules
17094c
     find "$initdir" -type f -path '*/lib/modules/*.ko' -print0 \
17094c
         | while read -r -d $'\0' f || [ -n "$f" ]; do
17094c
         SIG=$(tail -c 28 "$f" | tr -d '\000')
17094c
         [[ $SIG == '~Module signature appended~' ]] || { printf "%s\000" "$f"; }
17094c
-    done | xargs -r -0 $strip_cmd -g
17094c
+    done | xargs -r -0 $strip_cmd -g -p
17094c
 
17094c
     dinfo "*** Stripping files done ***"
17094c
 fi
17094c