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