fix(url-lib): make pre-pivot hook separetely per nfs mount

master
Masahiro Matsuya 2021-06-11 10:40:04 +09:00 committed by Jóhann B. Guðmundsson
parent f806a628aa
commit 2f091b1707
1 changed files with 1 additions and 1 deletions

View File

@ -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