From 0ddfc6d193dc0cb1714a5bbd532309594eb7cb68 Mon Sep 17 00:00:00 2001 From: Henry Wang Date: Wed, 29 Mar 2023 01:01:16 -0400 Subject: [PATCH] dev_cli.sh: Fix kvm directory path of the build command Current local variable `exported_device` under `cmd_build()` misses the root directory in the beginning, which will lead to the error of: ``` docker: Error response from daemon: OCI runtime create failed: invalid mount {Destination:dev/kvm Type:bind [...] Options:[rbind]}: mount destination dev/kvm not absolute: unknown. ``` when running `scripts/dev_cli.sh build` command. Fix the path by following the `cmd_test()`. Signed-off-by: Henry Wang --- scripts/dev_cli.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dev_cli.sh b/scripts/dev_cli.sh index b66daf56..4c3c46c2 100755 --- a/scripts/dev_cli.sh +++ b/scripts/dev_cli.sh @@ -235,7 +235,7 @@ cmd_build() { arch="$(uname -m)" build="debug" features_build="" - exported_device="dev/kvm" + exported_device="/dev/kvm" while [ $# -gt 0 ]; do case "$1" in "-h"|"--help") { cmd_help; exit 1; } ;;