diff options
author | Jonathan Bauer | 2017-08-15 17:24:18 +0200 |
---|---|---|
committer | Jonathan Bauer | 2017-08-15 17:24:18 +0200 |
commit | 28347a8abc243400b4da797a37b35749dc6928f0 (patch) | |
tree | bc8d49f3669cd18188a219fad0052c4ea76fa580 /core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/set_runvirt_hardware_variables.inc | |
parent | [rfs-s32] add ext. regey for grep use (diff) | |
download | mltk-28347a8abc243400b4da797a37b35749dc6928f0.tar.gz mltk-28347a8abc243400b4da797a37b35749dc6928f0.tar.xz mltk-28347a8abc243400b4da797a37b35749dc6928f0.zip |
[run-virt] check for tmp on hdd once
Diffstat (limited to 'core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/set_runvirt_hardware_variables.inc')
-rw-r--r-- | core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/set_runvirt_hardware_variables.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/set_runvirt_hardware_variables.inc b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/set_runvirt_hardware_variables.inc index 1319163d..46af7496 100644 --- a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/set_runvirt_hardware_variables.inc +++ b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/set_runvirt_hardware_variables.inc @@ -34,7 +34,7 @@ set_virt_memory() { # Amount of memory for the VM. Be generous if diff is written to HDD local min=768 local reserve max - if mount | grep -q '^/dev/sd.*on.*/tmp'; then + if isset TMP_ON_HDD; then if lsmod | grep -q '^nvidia'; then max=2800 reserve=28 |