pxe: ensure systemd is aware of mounts
This commit is contained in:
parent
0923489718
commit
697e9041cd
|
@ -280,6 +280,8 @@ if [ -d /run/live/medium ]; then
|
||||||
# to make snapshots subdir readwrite
|
# to make snapshots subdir readwrite
|
||||||
nfs_host="\$(df -hT | grep nfs | cut -f1 -d: | head -n1)"
|
nfs_host="\$(df -hT | grep nfs | cut -f1 -d: | head -n1)"
|
||||||
mount \${nfs_host}:/snapshots /run/live/medium/snapshots
|
mount \${nfs_host}:/snapshots /run/live/medium/snapshots
|
||||||
|
# reload mounts on systemd
|
||||||
|
systemctl daemon-reload
|
||||||
fi
|
fi
|
||||||
# clearly specify the right working directory, used in the python script as os.getcwd()
|
# clearly specify the right working directory, used in the python script as os.getcwd()
|
||||||
cd /mnt
|
cd /mnt
|
||||||
|
|
Loading…
Reference in New Issue