Whilst trying to build the kernel using Kata Containers, I kept hitting a problem which appeared to be with the make command.
As an example: -
/root/go/github.com/src/tools/packaging/kernel/../scripts/lib.sh: line 31: .ci/install_yq.sh: No such file or directory
/root/go/github.com/src/tools/packaging/kernel/../scripts/lib.sh: line 32: popd: directory stack empty
INFO: Config version: 85
INFO: Kernel version: 5.10.25
INFO: /root/go/github.com/src/tools/packaging/kernel/kata-linux-5.10.25-85 already exist
Kernel source ready: /root/go/github.com/src/tools/packaging/kernel/kata-linux-5.10.25-85
I assumed that this was a missing pre-requisite on my part, harking back to a previous post: -
Well, kinda but not quite ...
I'm not 100% sure what led me to the realisation but I did finally notice this in the above message: -
'cos I'd (inadvertently) cloned the Kata Containers repo into ...
Not sure why but I did ...
The developer guide does make it clear: -
$ cd $GOPATH/src/github.com/kata-containers/kata-containers/src/runtime
$ make && sudo -E PATH=$PATH make install
Once I did it properly: -
git clone firstname.lastname@example.org:kata-containers/kata-containers.git $GOPATH/src/github.com
all was well, funnily enough