mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-13 05:36:13 +00:00
kernel: support bash debug
Add option '-d' in build-kernel.sh to enable bash debug. Signed-off-by: Jimmy Xu <junming.xjm@antfin.com>
This commit is contained in:
parent
d248e4144c
commit
7a17b50536
@ -87,6 +87,7 @@ Commands:
|
|||||||
Options:
|
Options:
|
||||||
|
|
||||||
-c <path> : Path to config file to build a the kernel.
|
-c <path> : Path to config file to build a the kernel.
|
||||||
|
-d : Enable bash debug.
|
||||||
-e : Enable experimental kernel.
|
-e : Enable experimental kernel.
|
||||||
-g <vendor> : GPU vendor, intel or nvidia.
|
-g <vendor> : GPU vendor, intel or nvidia.
|
||||||
-h : Display this help.
|
-h : Display this help.
|
||||||
@ -424,7 +425,7 @@ install_kata() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
while getopts "a:c:eg:hk:p:t:v:" opt; do
|
while getopts "a:c:deg:hk:p:t:v:" opt; do
|
||||||
case "$opt" in
|
case "$opt" in
|
||||||
a)
|
a)
|
||||||
arch_target="${OPTARG}"
|
arch_target="${OPTARG}"
|
||||||
@ -432,6 +433,10 @@ main() {
|
|||||||
c)
|
c)
|
||||||
kernel_config_path="${OPTARG}"
|
kernel_config_path="${OPTARG}"
|
||||||
;;
|
;;
|
||||||
|
d)
|
||||||
|
PS4=' Line ${LINENO}: '
|
||||||
|
set -x
|
||||||
|
;;
|
||||||
e)
|
e)
|
||||||
experimental_kernel="true"
|
experimental_kernel="true"
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user