Skip to content

Commit 2f091b1

Browse files
mmatsuyajohannbg
authored andcommitted
fix(url-lib): make pre-pivot hook separetely per nfs mount
1 parent f806a62 commit 2f091b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules.d/45url-lib/url-lib.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ nfs_fetch_url() {
159159
mntdir="$(mkuniqdir /run nfs_mnt)"
160160
mount_nfs "$nfs:$server:$filepath${options:+:$options}" "$mntdir"
161161
# lazy unmount during pre-pivot hook
162-
inst_hook --hook pre-pivot --name 99url-lib-umount-nfs umount -l -- "$mntdir"
162+
inst_hook --hook pre-pivot --name 99url-lib-umount-nfs-$(basename $mntdir) umount -l -- "$mntdir"
163163
fi
164164

165165
if [ -z "$outloc" ]; then

0 commit comments

Comments
 (0)