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