|
|
28ab1c |
From ba8f0e0502d3cda2f4222745eebed37f45a4c5a1 Mon Sep 17 00:00:00 2001
|
|
|
28ab1c |
From: Kairui Song <kasong@redhat.com>
|
|
|
28ab1c |
Date: Thu, 11 Feb 2021 00:39:17 +0800
|
|
|
28ab1c |
Subject: [PATCH] fix(squash): post install should be the last step before
|
|
|
28ab1c |
stripping
|
|
|
28ab1c |
|
|
|
28ab1c |
Ensure dracut squash module doesn't effect other steps, and stripping
|
|
|
28ab1c |
can cover the new binaries installed by it.
|
|
|
28ab1c |
|
|
|
28ab1c |
(cherry picked from commit 8c8aecdc63c9389038e78ee712d4809e49add5e1)
|
|
|
28ab1c |
|
|
|
28ab1c |
Cherry-picked from: 8c8aecdc
|
|
|
28ab1c |
Resolves: #1959336
|
|
|
28ab1c |
---
|
|
|
28ab1c |
dracut.sh | 16 ++++++++--------
|
|
|
28ab1c |
1 file changed, 8 insertions(+), 8 deletions(-)
|
|
|
28ab1c |
|
|
|
28ab1c |
diff --git a/dracut.sh b/dracut.sh
|
|
|
28ab1c |
index 669bc6ce..1168fc16 100755
|
|
|
28ab1c |
--- a/dracut.sh
|
|
|
28ab1c |
+++ b/dracut.sh
|
|
|
28ab1c |
@@ -1734,14 +1734,6 @@ if [[ $hostonly_cmdline == "yes" ]] ; then
|
|
|
28ab1c |
fi
|
|
|
28ab1c |
fi
|
|
|
28ab1c |
|
|
|
28ab1c |
-if dracut_module_included "squash"; then
|
|
|
28ab1c |
- readonly squash_dir="$initdir/squash/root"
|
|
|
28ab1c |
- readonly squash_img="$initdir/squash/root.img"
|
|
|
28ab1c |
-
|
|
|
28ab1c |
- dinfo "*** Install squash loader ***"
|
|
|
28ab1c |
- DRACUT_SQUASH_POST_INST=1 module_install "squash"
|
|
|
28ab1c |
-fi
|
|
|
28ab1c |
-
|
|
|
28ab1c |
if [[ $kernel_only != yes ]]; then
|
|
|
28ab1c |
# libpthread workaround: pthread_cancel wants to dlopen libgcc_s.so
|
|
|
28ab1c |
for _dir in $libdirs; do
|
|
|
28ab1c |
@@ -1764,6 +1756,14 @@ if [[ $kernel_only != yes ]]; then
|
|
|
28ab1c |
fi
|
|
|
28ab1c |
fi
|
|
|
28ab1c |
|
|
|
28ab1c |
+if dracut_module_included "squash"; then
|
|
|
28ab1c |
+ readonly squash_dir="$initdir/squash/root"
|
|
|
28ab1c |
+ readonly squash_img="$initdir/squash/root.img"
|
|
|
28ab1c |
+
|
|
|
28ab1c |
+ dinfo "*** Install squash loader ***"
|
|
|
28ab1c |
+ DRACUT_SQUASH_POST_INST=1 module_install "squash"
|
|
|
28ab1c |
+fi
|
|
|
28ab1c |
+
|
|
|
28ab1c |
if [[ $do_strip = yes ]] && ! [[ $DRACUT_FIPS_MODE ]]; then
|
|
|
28ab1c |
dinfo "*** Stripping files ***"
|
|
|
28ab1c |
find "$initdir" -type f \
|
|
|
28ab1c |
|