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