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