28 lines
1.0 KiB
Diff
28 lines
1.0 KiB
Diff
From 2f091b17075f81ff490b05d3d566d736fc32f0be Mon Sep 17 00:00:00 2001
|
|
From: Masahiro Matsuya <mmatsuya@redhat.com>
|
|
Date: Fri, 11 Jun 2021 10:40:04 +0900
|
|
Subject: [PATCH] fix(url-lib): make pre-pivot hook separetely per nfs mount
|
|
|
|
Reference:https://github.com/dracutdevs/dracut/commit/2f091b17075f81ff490b05d3d566d736fc32f0be
|
|
Conflict:NA
|
|
---
|
|
modules.d/45url-lib/url-lib.sh | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/modules.d/45url-lib/url-lib.sh b/modules.d/45url-lib/url-lib.sh
|
|
index e1e7d5af..972596a1 100755
|
|
--- a/modules.d/45url-lib/url-lib.sh
|
|
+++ b/modules.d/45url-lib/url-lib.sh
|
|
@@ -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
|
|
--
|
|
2.27.0
|
|
|