mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 21:40:01 +08:00
Support older kernels
This commit is contained in:
parent
457f3ad4b4
commit
2f3098a18d
@ -3,7 +3,7 @@ set -eu
|
|||||||
|
|
||||||
# Docker environment variabeles
|
# Docker environment variabeles
|
||||||
|
|
||||||
: ${URL:=''}. # URL of the PAT file
|
: ${URL:=''} # URL of the PAT file
|
||||||
: ${DEBUG:=''}. # Enable debug mode
|
: ${DEBUG:=''}. # Enable debug mode
|
||||||
: ${ALLOCATE:='Y'} # Preallocate diskspace
|
: ${ALLOCATE:='Y'} # Preallocate diskspace
|
||||||
: ${CPU_CORES:='1'} # Amount of CPU cores
|
: ${CPU_CORES:='1'} # Amount of CPU cores
|
||||||
@ -67,4 +67,8 @@ set -m
|
|||||||
)
|
)
|
||||||
set +m
|
set +m
|
||||||
|
|
||||||
|
if (( $(echo "$(uname -r | cut -d '.' -f 1-2) > 5.2" |bc -l) )); then
|
||||||
pidwait -F "${_QEMU_PID}" & wait $!
|
pidwait -F "${_QEMU_PID}" & wait $!
|
||||||
|
else
|
||||||
|
tail --pid "$(cat ${_QEMU_PID})" --follow /dev/null & wait $!
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user