Force use of /lmn/media/USER share for legacy VMs
- Introduced VMLEGACY environment variable to ensure that old VMs utilize the legacy media share located at /lmn/media/USER. - This change is aimed at maintaining compatibility with older virtual machines that rely on the previous media share structure.
This commit is contained in:
parent
13accc3715
commit
f97a3a8a29
1 changed files with 2 additions and 1 deletions
|
@ -172,7 +172,8 @@ start_virtiofsd() {
|
|||
# start_virtiofs_service "default-school" "/srv/samba/schools/default-school" "Y"
|
||||
|
||||
# Home@PC / VM-Data
|
||||
if [[ "${HOME}" != "${NETHOME}" ]]; then
|
||||
# if the environment variable VMLEGACY is set, /lmn/media/USER is forced
|
||||
if [[ "${HOME}" != "${NETHOME}" && ! -v VMLEGACY ]]; then
|
||||
start_virtiofs_service "Home_Linux" "${HOME}" "Y"
|
||||
else
|
||||
start_virtiofs_service "VM-Data" "/lmn/media/${USER}" "Y"
|
||||
|
|
Loading…
Add table
Reference in a new issue