diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-12-02 16:12:04 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2020-12-02 16:12:04 -0500 |
commit | 829def1df01ff7445c65bbdf360ae925d71da6ab (patch) | |
tree | c10098744975f0f0d9ea60f8f133a2abc8e98c83 | |
parent | 92b2d975a3e246dfb48be9dd7ae8295a060617f6 (diff) |
Don't export PATH to guest vm
this fixes a bug where sbin isn't in the guest vm environment's path
-rw-r--r-- | lib/libktest.sh | 3 | ||||
-rwxr-xr-x | root_image | 4 |
2 files changed, 5 insertions, 2 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 @@ -20,7 +20,7 @@ fi checkdep fallocate util-linux checkdep mkfs.ext4 e2fsprogs -IMAGE_SIZE="4G" +IMAGE_SIZE="10G" MIRROR=http://ftp.us.debian.org/debian/ usage() @@ -99,6 +99,8 @@ PACKAGES+=(libssl-dev libgdbm-dev libgdbm-compat-dev) # nfs testing: PACKAGES+=(nfs-kernel-server) +PACKAGES+=(nbd-client) + # dm testing: PACKAGES+=(cryptsetup) |