pxe: snapshot nfs dir, ensure exists
This commit is contained in:
parent
edf5651aa3
commit
69795dbf1e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue