Check binfmt_misc module is loaded
Give a friendly error message early.
This commit is contained in:
parent
c147df99bc
commit
a8eb03a5e4
3 changed files with 11 additions and 1 deletions
|
@ -6,7 +6,7 @@ RUN apt-get -y update && \
|
||||||
apt-get -y install \
|
apt-get -y install \
|
||||||
git vim parted \
|
git vim parted \
|
||||||
quilt realpath qemu-user-static debootstrap zerofree pxz zip dosfstools \
|
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/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY . /pi-gen/
|
COPY . /pi-gen/
|
||||||
|
|
1
depends
1
depends
|
@ -15,3 +15,4 @@ curl
|
||||||
xxd
|
xxd
|
||||||
file
|
file
|
||||||
git
|
git
|
||||||
|
lsmod:kmod
|
||||||
|
|
|
@ -27,4 +27,13 @@ dependencies_check()
|
||||||
echo "$missing"
|
echo "$missing"
|
||||||
false
|
false
|
||||||
fi
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue