mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-08-31 05:06:54 +00:00
feat: Sanitize environment variables (#1192)
This commit is contained in:
@@ -7,6 +7,10 @@ set -Eeuo pipefail
|
||||
: "${CPU_FLAGS:=""}"
|
||||
: "${CPU_MODEL:=""}"
|
||||
|
||||
HOST_CPU=$(strip "$HOST_CPU")
|
||||
CPU_FLAGS=$(strip "$CPU_FLAGS")
|
||||
CPU_MODEL=$(strip "$CPU_MODEL")
|
||||
|
||||
CLOCKSOURCE="tsc"
|
||||
[[ "${ARCH,,}" == "arm64" ]] && CLOCKSOURCE="arch_sys_counter"
|
||||
CLOCK="/sys/devices/system/clocksource/clocksource0/current_clocksource"
|
||||
|
||||
Reference in New Issue
Block a user