From 9de317adbf92e4763bb4b3a61ef4ecd0f2ab58ee Mon Sep 17 00:00:00 2001 From: pedro Date: Thu, 26 Sep 2024 09:00:36 -0300 Subject: [PATCH] pxe: fix snapshot nfs logic --- pxe/install-pxe.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pxe/install-pxe.sh b/pxe/install-pxe.sh index 96ac03d..811240d 100755 --- a/pxe/install-pxe.sh +++ b/pxe/install-pxe.sh @@ -26,7 +26,7 @@ install_nfs() { # debian live nfs path is readonly, do a trick # to make snapshots subdir readwrite - if grep -q "/snapshots" /proc/mounts; then + if ! grep -q "/snapshots" /proc/mounts; then mount --bind "${nfs_path}/snapshots" "/snapshots" fi