Handle cases where binfmt_misc is built into the kernel

Fixes #264
This commit is contained in:
Serge Schneider 2019-03-06 16:25:42 +00:00
parent b7812278a8
commit 67241b9626

View File

@ -29,8 +29,7 @@ dependencies_check()
fi fi
if ! lsmod | grep binfmt_misc >/dev/null if ! grep -q "/proc/sys/fs/binfmt_misc" /proc/mounts; then
then
echo "Module binfmt_misc not loaded in host" echo "Module binfmt_misc not loaded in host"
echo "Please run:" echo "Please run:"
echo " sudo modprobe binfmt_misc" echo " sudo modprobe binfmt_misc"