]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
feat(squash): install umount util
authorKairui Song <kasong@redhat.com>
Tue, 22 Jun 2021 13:49:20 +0000 (21:49 +0800)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 25 Jun 2021 19:11:58 +0000 (21:11 +0200)
Also install umount binary, make it possible to cleanup squash overlay
mounts. This is useful for other tools reusing the dracut initramfs built
with squash module enabled.

Signed-off-by: Kairui Song <kasong@redhat.com>
modules.d/99squash/module-setup.sh

index e3196213f96dd8030de8ef46cf2b492c6a8a85bb..4e231a6b33d750b7e149f0f32744402522ae7749 100644 (file)
@@ -42,11 +42,11 @@ installpost() {
     # Install required modules and binaries for the squash image init script.
     if [[ $_busybox ]]; then
         inst "$_busybox" /usr/bin/busybox
-        for _i in sh echo mount modprobe mkdir switch_root grep; do
+        for _i in sh echo mount modprobe mkdir switch_root grep umount; do
             ln_r /usr/bin/busybox /usr/bin/$_i
         done
     else
-        DRACUT_RESOLVE_DEPS=1 inst_multiple sh mount modprobe mkdir switch_root grep
+        DRACUT_RESOLVE_DEPS=1 inst_multiple sh mount modprobe mkdir switch_root grep umount
     fi
 
     hostonly="" instmods "loop" "squashfs" "overlay"