a9f26f
From ccd2823f5b75273445c7de36ff306fd23163f955 Mon Sep 17 00:00:00 2001
a9f26f
From: Masahiro Matsuya <mmatsuya@redhat.com>
a9f26f
Date: Fri, 11 Jun 2021 10:40:04 +0900
a9f26f
Subject: [PATCH] fix(url-lib): make pre-pivot hook separetely per nfs mount
a9f26f
a9f26f
Resolves: rhbz#1967802
a9f26f
---
a9f26f
 modules.d/45url-lib/url-lib.sh | 2 +-
a9f26f
 1 file changed, 1 insertion(+), 1 deletion(-)
a9f26f
a9f26f
diff --git a/modules.d/45url-lib/url-lib.sh b/modules.d/45url-lib/url-lib.sh
a9f26f
index 08c3ebb4..56d0d683 100755
a9f26f
--- a/modules.d/45url-lib/url-lib.sh
a9f26f
+++ b/modules.d/45url-lib/url-lib.sh
a9f26f
@@ -143,7 +143,7 @@ nfs_fetch_url() {
a9f26f
         local mntdir="$(mkuniqdir /run nfs_mnt)"
a9f26f
         mount_nfs "$nfs:$server:$filepath${options:+:$options}" "$mntdir"
a9f26f
         # lazy unmount during pre-pivot hook
a9f26f
-        inst_hook --hook pre-pivot --name 99url-lib-umount-nfs umount -l -- "$mntdir"
a9f26f
+        inst_hook --hook pre-pivot --name 99url-lib-umount-nfs-"$(basename "$mntdir")" umount -l -- "$mntdir"
a9f26f
     fi
a9f26f
 
a9f26f
     if [ -z "$outloc" ]; then
a9f26f