mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 09:39:08 +00:00
test: Load modules before testing for filesystems
The previous commit moved some filesystems to kernel modules. modprobe them before checking if they are enabled. Also update the YAML files for the tests. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
parent
492b6c3fdb
commit
8d4dfb25e6
@ -7,8 +7,7 @@ init:
|
||||
- linuxkit/containerd:be69ded7ed4437e2989da850581b631bac877d3e
|
||||
onboot:
|
||||
- name: check-kernel-config
|
||||
image: "linuxkit/test-kernel-config:2acaa564c1801dd2ae1546c70c472dc58ac030a1"
|
||||
readonly: true
|
||||
image: "linuxkit/test-kernel-config:9f08e3b99f8ac2f422251b3e8c94ce874ee34119"
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:7404cf2295df89ccfa2dda41997a28307a90cf28"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
|
@ -7,8 +7,7 @@ init:
|
||||
- linuxkit/containerd:be69ded7ed4437e2989da850581b631bac877d3e
|
||||
onboot:
|
||||
- name: check-kernel-config
|
||||
image: "linuxkit/test-kernel-config:2acaa564c1801dd2ae1546c70c472dc58ac030a1"
|
||||
readonly: true
|
||||
image: "linuxkit/test-kernel-config:9f08e3b99f8ac2f422251b3e8c94ce874ee34119"
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:7404cf2295df89ccfa2dda41997a28307a90cf28"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
|
@ -7,8 +7,7 @@ init:
|
||||
- linuxkit/containerd:be69ded7ed4437e2989da850581b631bac877d3e
|
||||
onboot:
|
||||
- name: check-kernel-config
|
||||
image: "linuxkit/test-kernel-config:2acaa564c1801dd2ae1546c70c472dc58ac030a1"
|
||||
readonly: true
|
||||
image: "linuxkit/test-kernel-config:9f08e3b99f8ac2f422251b3e8c94ce874ee34119"
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:7404cf2295df89ccfa2dda41997a28307a90cf28"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
|
@ -12,8 +12,7 @@ onboot:
|
||||
image: "linuxkit/dhcpcd:7d2b8aaaf20c24ad7d11a5ea2ea5b4a80dc966f1"
|
||||
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
||||
- name: check-kernel-config
|
||||
image: "linuxkit/test-kernel-config:2acaa564c1801dd2ae1546c70c472dc58ac030a1"
|
||||
readonly: true
|
||||
image: "linuxkit/test-kernel-config:9f08e3b99f8ac2f422251b3e8c94ce874ee34119"
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:7404cf2295df89ccfa2dda41997a28307a90cf28"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
|
@ -3,3 +3,4 @@ RUN apk update && apk upgrade && apk add --no-cache bash
|
||||
ADD https://raw.githubusercontent.com/docker/docker/master/contrib/check-config.sh /check-config.sh
|
||||
ADD . ./
|
||||
ENTRYPOINT ["/bin/sh", "/check.sh"]
|
||||
LABEL org.mobyproject.config='{"readonly": true, "binds": ["/lib/modules:/lib/modules", "/dev:/dev", "/sys:/sys"], "capabilities": ["all"]}'
|
||||
|
@ -86,6 +86,15 @@ echo $UNZIPPED_CONFIG | grep -q 'CONFIG_LEGACY_PTYS is not set' || fail "CONFIG_
|
||||
echo $UNZIPPED_CONFIG | grep -q 'CONFIG_X86_X32 is not set' || fail "CONFIG_X86_X32 is not set"
|
||||
echo $UNZIPPED_CONFIG | grep -q 'CONFIG_MODIFY_LDT_SYSCALL is not set' || fail "CONFIG_MODIFY_LDT_SYSCALL is not set"
|
||||
|
||||
# modprobe
|
||||
for mod in \
|
||||
nfs \
|
||||
nfsd \
|
||||
ntfs
|
||||
do
|
||||
modprobe $mod
|
||||
done
|
||||
|
||||
# check filesystems that are built in
|
||||
for fs in \
|
||||
sysfs \
|
||||
|
Loading…
Reference in New Issue
Block a user