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: -
./build-kernel.sh setup
/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: -
Kata Containers and Ubuntu Linux - lessons learned - 4/many
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: -
/root/go/src/github.com/kata-containers/tests
'cos I'd (inadvertently) cloned the Kata Containers repo into ...
/root/go/github.com/src
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
Build and install the Kata Containers runtime
Once I did it properly: -
git clone git@github.com:kata-containers/kata-containers.git $GOPATH/src/github.com
cd $GOPATH/src/github.com/tools/packaging/kernel
./build-kernel.sh setup
./build-kernel.sh build
all was well, funnily enough
😮💨😮💨😮💨😮💨😮💨😮💨
No comments:
Post a Comment