diff options
| author | Jonathan Bauer | 2015-04-08 16:54:33 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2015-04-08 16:54:33 +0200 |
| commit | af001dfa0ccf839f07860b25c939a8b730dda433 (patch) | |
| tree | b31a550808fbed903f9ee0ce0d027d64b9ae080b /remote/modules | |
| parent | [pam-common-share] rudimentary nfs-support for common share (diff) | |
| download | tm-scripts-af001dfa0ccf839f07860b25c939a8b730dda433.tar.gz tm-scripts-af001dfa0ccf839f07860b25c939a8b730dda433.tar.xz tm-scripts-af001dfa0ccf839f07860b25c939a8b730dda433.zip | |
[vmchooser2] TESTING: run_virt generates SHARELW.CFG in B: with share information from /opt/openslx/config
Diffstat (limited to 'remote/modules')
| -rwxr-xr-x | remote/modules/vmchooser2/data/opt/openslx/scripts/vmchooser-run_virt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/remote/modules/vmchooser2/data/opt/openslx/scripts/vmchooser-run_virt b/remote/modules/vmchooser2/data/opt/openslx/scripts/vmchooser-run_virt index d41bf564..4af1ad29 100755 --- a/remote/modules/vmchooser2/data/opt/openslx/scripts/vmchooser-run_virt +++ b/remote/modules/vmchooser2/data/opt/openslx/scripts/vmchooser-run_virt @@ -531,6 +531,11 @@ cp "$xmlfile" "$VMCHOOSER_DIR/fd-loop/config.xml" xrandr | grep -o -E 'connected\s*(primary)?\s*[0-9]+x[0-9]+\+0\+0' | grep -o -E '[0-9]+x[0-9]+' | head -n 1 > "$VMCHOOSER_DIR/fd-loop/hostres.txt" # Add our magic openslx binary that sets the correct guest resolution cp "$VMCHOOSER_DIR/data/openslx.exe" "$VMCHOOSER_DIR/fd-loop/" +for SHARE in $(grep -o -E '^SLX_SHARE_.*_PATH' /opt/openslx/config); do + eval echo -n "\$${SHARE} \$${SHARE%PATH}PERM" >> "$VMCHOOSER_DIR/fd-loop/SHARELW.CFG" + echo -e '\r\n' >> "$VMCHOOSER_DIR/fd-loop/SHARELW.CFG" +done + # Try to use dnbd3 to access the image unset vm_diskfile |
