From 51c0892723660e466294a4ba80a688fc9a1403a9 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 4 Jun 2014 15:14:15 +0200 Subject: [vmchooser2] guest mount for cifs is of no use, so add support for credentials --- .../vmchooser2/data/opt/openslx/scripts/systemd-mount_vm_store | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-55-g7522