summaryrefslogtreecommitdiffstats
path: root/remote
diff options
context:
space:
mode:
authorSimon Rettberg2014-06-04 15:14:15 +0200
committerSimon Rettberg2014-06-04 15:14:15 +0200
commit51c0892723660e466294a4ba80a688fc9a1403a9 (patch)
treee9ed10e0a686735e77d2d970ea12943a95f89f7f /remote
parentMerge branch 'master' of git.openslx.org:openslx-ng/tm-scripts (diff)
downloadtm-scripts-51c0892723660e466294a4ba80a688fc9a1403a9.tar.gz
tm-scripts-51c0892723660e466294a4ba80a688fc9a1403a9.tar.xz
tm-scripts-51c0892723660e466294a4ba80a688fc9a1403a9.zip
[vmchooser2] guest mount for cifs is of no use, so add support for credentials
Diffstat (limited to 'remote')
-rwxr-xr-xremote/modules/vmchooser2/data/opt/openslx/scripts/systemd-mount_vm_store4
1 files changed, 3 insertions, 1 deletions
diff --git a/remote/modules/vmchooser2/data/opt/openslx/scripts/systemd-mount_vm_store b/remote/modules/vmchooser2/data/opt/openslx/scripts/systemd-mount_vm_store
index 0915169c..c8735fe1 100755
--- a/remote/modules/vmchooser2/data/opt/openslx/scripts/systemd-mount_vm_store
+++ b/remote/modules/vmchooser2/data/opt/openslx/scripts/systemd-mount_vm_store
@@ -14,5 +14,7 @@ if [ "${SLX_VM_NFS#//}" = "${SLX_VM_NFS}" ]; then
mount -t nfs -o ro,async,nolock "$SLX_VM_NFS" /mnt/vmstore
else
# starts with '//' -> assume CIFS
- mount -t cifs -o guest,ro,file_mode=0644,dir_mode=0755 "$SLX_VM_NFS" /mnt/vmstore
+ export USER="$SLX_VM_NFS_USER"
+ export PASSWD="$SLX_VM_NFS_PASSWD"
+ mount -t cifs -o ro,file_mode=0644,dir_mode=0755,uid=0,gid=0,forceuid,forcegid,sec=ntlm "$SLX_VM_NFS" /mnt/vmstore
fi