summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libktest.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libktest.sh b/lib/libktest.sh
index 5573f3c..4cdc52d 100644
--- a/lib/libktest.sh
+++ b/lib/libktest.sh
@@ -286,6 +286,7 @@ start_vm()
[[ $ktest_ssh_port = 0 ]] && start_networking
local kernelargs=()
+ kernelargs+=(mitigations=off)
kernelargs+=(console=hvc0)
kernelargs+=(root=/dev/sda rw log_buf_len=8M)
kernelargs+=("ktest.dir=$ktest_dir")
@@ -383,7 +384,7 @@ start_vm()
qemu_pmem mem-path="$file",size=$size
done
- set > "$ktest_tmp/env_tmp"
+ set |grep -v "^PATH=" > "$ktest_tmp/env_tmp"
readonly_variables="$(readonly | cut -d= -f1 | cut -d' ' -f3)"
for variable in ${readonly_variables}
do