Skip to content

Commit

Permalink
hack: for kernel, use a pre-built 6.5 mainline build from some ubuntu…
Browse files Browse the repository at this point in the history
… website

In a local experiment, bpftrace kprobe:vfs_write works with it.

https://kernel.ubuntu.com/mainline/v6.5.11/
  • Loading branch information
problame committed Nov 16, 2023
1 parent a4b371d commit e4863b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@ testbin/*

*.qcow2
neonvm/hack/vmlinuz
linux-image-unsigned-6.5.11-060511-generic_6.5.11-060511.202311151304_amd64
linux-image-unsigned-6.5.11-060511-generic_6.5.11-060511.202311151304_amd64.deb

rendered_manifests
14 changes: 6 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,12 @@ endif
.PHONY: kernel
kernel: ## Build linux kernel.
rm -f neonvm/hack/vmlinuz
docker buildx build \
--build-arg KERNEL_VERSION=$(VM_KERNEL_VERSION) \
--output type=local,dest=neonvm/hack/ \
--platform linux/amd64 \
--pull \
--no-cache \
--file neonvm/hack/Dockerfile.kernel-builder \
neonvm/hack
rm -f linux-image-unsigned-6.5.11-060511-generic_6.5.11-060511.202311151304_amd64.deb
rm -rf linux-image-unsigned-6.5.11-060511-generic_6.5.11-060511.202311151304_amd64
curl -o linux-image-unsigned-6.5.11-060511-generic_6.5.11-060511.202311151304_amd64.deb https://kernel.ubuntu.com/mainline/v6.5.11/amd64/linux-image-unsigned-6.5.11-060511-generic_6.5.11-060511.202311151304_amd64.deb
mkdir linux-image-unsigned-6.5.11-060511-generic_6.5.11-060511.202311151304_amd64
dpkg-deb -x linux-image-unsigned-6.5.11-060511-generic_6.5.11-060511.202311151304_amd64.deb linux-image-unsigned-6.5.11-060511-generic_6.5.11-060511.202311151304_amd64
cp linux-image-unsigned-6.5.11-060511-generic_6.5.11-060511.202311151304_amd64/boot/vmlinuz-6.5.11-060511-generic neonvm/hack/vmlinuz

.PHONY: check-local-context
check-local-context: ## Asserts that the current kubectl context is pointing at k3d or kind, to avoid accidentally applying to prod
Expand Down

0 comments on commit e4863b3

Please sign in to comment.