diff options
| author | Simon Rettberg | 2014-06-04 15:14:15 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2014-06-04 15:14:15 +0200 |
| commit | 51c0892723660e466294a4ba80a688fc9a1403a9 (patch) | |
| tree | e9ed10e0a686735e77d2d970ea12943a95f89f7f /remote/modules/vmchooser2/data/opt | |
| parent | Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts (diff) | |
| download | tm-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/modules/vmchooser2/data/opt')
| -rwxr-xr-x | remote/modules/vmchooser2/data/opt/openslx/scripts/systemd-mount_vm_store | 4 |
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 |
