From 919d51274ddf3c2d9065449ee626ae02ee97caf4 Mon Sep 17 00:00:00 2001 From: Julio Montes Date: Fri, 12 Feb 2021 09:09:29 -0600 Subject: [PATCH] snap: fix kernel setup kernel setup fails when `yes "n"` is used and `make oldconfig` doesn't read anything from STDIN, `yes "n"` was added in the past as a workaround to fix incomplete kernel configs. Enable `build-kernel.sh` debug. Signed-off-by: Julio Montes --- snap/snapcraft.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 6c1c3923c3..71f8cf221f 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -185,8 +185,8 @@ parts: cd ${kata_dir}/tools/packaging/kernel - # Say 'no' to everithing, fix issues with incomplete .config files - yes "n" | ./build-kernel.sh setup + # Setup and build kernel + ./build-kernel.sh -d setup kernel_dir_prefix="kata-linux-" cd ${kernel_dir_prefix}* version=$(basename ${PWD} | sed 's|'"${kernel_dir_prefix}"'||' | cut -d- -f1)