|
|
28ab1c |
From faadc1cbcd1ca35393b75f93757a89621957453c Mon Sep 17 00:00:00 2001
|
|
|
28ab1c |
From: Kairui Song <kasong@redhat.com>
|
|
|
28ab1c |
Date: Tue, 22 Jun 2021 21:49:20 +0800
|
|
|
28ab1c |
Subject: [PATCH] feat(squash): install umount util
|
|
|
28ab1c |
|
|
|
28ab1c |
Also install umount binary, make it possible to cleanup squash overlay
|
|
|
28ab1c |
mounts. This is useful for other tools reusing the dracut initramfs built
|
|
|
28ab1c |
with squash module enabled.
|
|
|
28ab1c |
|
|
|
28ab1c |
Signed-off-by: Kairui Song <kasong@redhat.com>
|
|
|
28ab1c |
(cherry picked from commit 563f543424c66bf38e6cbd3f489655d45ad9b5c5)
|
|
|
28ab1c |
|
|
|
28ab1c |
Resolves: #1959336
|
|
|
28ab1c |
---
|
|
|
28ab1c |
modules.d/99squash/module-setup.sh | 4 ++--
|
|
|
28ab1c |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
28ab1c |
|
|
|
28ab1c |
diff --git a/modules.d/99squash/module-setup.sh b/modules.d/99squash/module-setup.sh
|
|
|
28ab1c |
index 81a5b3f7..9bb30b2e 100644
|
|
|
28ab1c |
--- a/modules.d/99squash/module-setup.sh
|
|
|
28ab1c |
+++ b/modules.d/99squash/module-setup.sh
|
|
|
28ab1c |
@@ -42,11 +42,11 @@ installpost() {
|
|
|
28ab1c |
# Install required modules and binaries for the squash image init script.
|
|
|
28ab1c |
if [[ $_busybox ]]; then
|
|
|
28ab1c |
inst "$_busybox" /usr/bin/busybox
|
|
|
28ab1c |
- for _i in sh echo mount modprobe mkdir switch_root grep; do
|
|
|
28ab1c |
+ for _i in sh echo mount modprobe mkdir switch_root grep umount; do
|
|
|
28ab1c |
ln_r /usr/bin/busybox /usr/bin/$_i
|
|
|
28ab1c |
done
|
|
|
28ab1c |
else
|
|
|
28ab1c |
- DRACUT_RESOLVE_DEPS=1 inst_multiple sh mount modprobe mkdir switch_root grep
|
|
|
28ab1c |
+ DRACUT_RESOLVE_DEPS=1 inst_multiple sh mount modprobe mkdir switch_root grep umount
|
|
|
28ab1c |
fi
|
|
|
28ab1c |
|
|
|
28ab1c |
hostonly="" instmods "loop" "squashfs" "overlay"
|
|
|
28ab1c |
|