Skip to content

Commit

Permalink
fix(url-lib): make pre-pivot hook separetely per nfs mount
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatsuya authored and johannbg committed Jun 29, 2021
1 parent f806a62 commit 2f091b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules.d/45url-lib/url-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f091b1

Please sign in to comment.