pxe: snapshot nfs dir, ensure exists

This commit is contained in:
pedro 2024-09-26 09:01:52 -03:00
parent 80edd9e748
commit b380450bd4
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ install_nfs() {
# debian live nfs path is readonly, do a trick
# to make snapshots subdir readwrite
if ! grep -q "/snapshots" /proc/mounts; then
mkdir -p "/snapshots"
mount --bind "${nfs_path}/snapshots" "/snapshots"
fi