diff options
-rw-r--r-- | Dockerfile | 2 | ||||
-rw-r--r-- | depends | 1 | ||||
-rw-r--r-- | scripts/dependencies_check | 9 |
3 files changed, 11 insertions, 1 deletions
@@ -6,7 +6,7 @@ RUN apt-get -y update && \ apt-get -y install \ git vim parted \ quilt realpath qemu-user-static debootstrap zerofree pxz zip dosfstools \ - bsdtar libcap2-bin rsync grep udev xz-utils curl xxd file \ + bsdtar libcap2-bin rsync grep udev xz-utils curl xxd file kmod\ && rm -rf /var/lib/apt/lists/* COPY . /pi-gen/ @@ -15,3 +15,4 @@ curl xxd file git +lsmod:kmod diff --git a/scripts/dependencies_check b/scripts/dependencies_check index 1b92a9c..9b7725e 100644 --- a/scripts/dependencies_check +++ b/scripts/dependencies_check @@ -27,4 +27,13 @@ dependencies_check() echo "$missing" false fi + + + if ! lsmod | grep binfmt_misc >/dev/null + then + echo "Module binfmt_misc not loaded in host" + echo "Please run:" + echo " sudo modprobe binfmt_misc" + exit 1 + fi } |