mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-05 07:26:55 +00:00
The test is currently not hooked up, but it pulls the latest 4.9.x kernel image, builds a simple kernel module against it and then creates a test package containing the kernel module and a shell script. The shell script prints out the 'modinfo' and then tries to 'insmod' the module. It checks the output of 'dmesg' of the load succeeded. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
18 lines
429 B
YAML
18 lines
429 B
YAML
kernel:
|
|
image: "linuxkit/kernel:4.9.x"
|
|
cmdline: "console=ttyS0"
|
|
init:
|
|
- linuxkit/init:63eed9ca7a09d2ce4c0c5e7238ac005fa44f564b
|
|
- linuxkit/runc:b0fb122e10dbb7e4e45115177a61a3f8d68c19a9
|
|
- linuxkit/containerd:18eaf72f3f4f9a9f29ca1951f66df701f873060b
|
|
onboot:
|
|
- name: check
|
|
image: "kmod-test"
|
|
binds:
|
|
- /dev:/dev
|
|
- /lib/modules:/lib/modules
|
|
capabilities:
|
|
- all
|
|
outputs:
|
|
- format: kernel+initrd
|