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