pxe: fix snapshot nfs logic
This commit is contained in:
parent
1c19197170
commit
046ee77bdb
|
@ -26,7 +26,7 @@ install_nfs() {
|
||||||
|
|
||||||
# debian live nfs path is readonly, do a trick
|
# debian live nfs path is readonly, do a trick
|
||||||
# to make snapshots subdir readwrite
|
# 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"
|
mount --bind "${nfs_path}/snapshots" "/snapshots"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue