mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-07 11:04:12 +00:00
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 <julio.montes@intel.com>
This commit is contained in:
parent
ca6438728d
commit
a60cf37879
@ -183,8 +183,8 @@ parts:
|
|||||||
|
|
||||||
cd ${kata_dir}/tools/packaging/kernel
|
cd ${kata_dir}/tools/packaging/kernel
|
||||||
|
|
||||||
# Say 'no' to everithing, fix issues with incomplete .config files
|
# Setup and build kernel
|
||||||
yes "n" | ./build-kernel.sh setup
|
./build-kernel.sh -d setup
|
||||||
kernel_dir_prefix="kata-linux-"
|
kernel_dir_prefix="kata-linux-"
|
||||||
cd ${kernel_dir_prefix}*
|
cd ${kernel_dir_prefix}*
|
||||||
version=$(basename ${PWD} | sed 's|'"${kernel_dir_prefix}"'||' | cut -d- -f1)
|
version=$(basename ${PWD} | sed 's|'"${kernel_dir_prefix}"'||' | cut -d- -f1)
|
||||||
|
Loading…
Reference in New Issue
Block a user