docker-deb-kernel/README.md
ale 1601787db7
initial commit
Signed-off-by: ale <ale@manalejandro.com>
2025-01-20 04:44:03 +01:00

551 B

docker-deb-kernel

Simple dockerfile to build the Linux kernel with debian packages

Configure environment

$ export DISTRIBUTION=bookworm
$ export VERSION=6.12.10

Copy your kernel config to the config file

Build image

$ docker buildx build -e DISTRIBUTION=$DISTRIBUTION -e VERSION=$VERSION -t docker-deb-kernel .

Extract .deb packages from container

$ docker run -d --rm --name ddk -v ./:/mnt docker-deb-kernel find /usr/src -iname *.deb -exec cp {} /mnt \;

Install .deb packages

$ sudo dpkg -i *.deb

License

MIT