aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasahiro Matsuya <mmatsuya@redhat.com>2021-06-11 10:40:04 +0900
committerJóhann B. Guðmundsson <johannbg@gmail.com>2021-06-29 22:03:38 +0000
commit2f091b17075f81ff490b05d3d566d736fc32f0be (patch)
tree49ed5377c05e3c759289983dd2468edfe19fe0e8
parentf806a628aa9aec548e425e81b6ea4ab6f5db26f6 (diff)
downloaddracut-2f091b17075f81ff490b05d3d566d736fc32f0be.tar.gz
fix(url-lib): make pre-pivot hook separetely per nfs mount
-rwxr-xr-xmodules.d/45url-lib/url-lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules.d/45url-lib/url-lib.sh b/modules.d/45url-lib/url-lib.sh
index e1e7d5af..972596a1 100755
--- a/modules.d/45url-lib/url-lib.sh
+++ b/modules.d/45url-lib/url-lib.sh
@@ -159,7 +159,7 @@ nfs_fetch_url() {
mntdir="$(mkuniqdir /run nfs_mnt)"
mount_nfs "$nfs:$server:$filepath${options:+:$options}" "$mntdir"
# lazy unmount during pre-pivot hook
- inst_hook --hook pre-pivot --name 99url-lib-umount-nfs umount -l -- "$mntdir"
+ inst_hook --hook pre-pivot --name 99url-lib-umount-nfs-$(basename $mntdir) umount -l -- "$mntdir"
fi
if [ -z "$outloc" ]; then