aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlibexec/rc/rc.d/linux8
1 files changed, 7 insertions, 1 deletions
diff --git a/libexec/rc/rc.d/linux b/libexec/rc/rc.d/linux
index f44a9d02fc8d..c9c45ba8b338 100755
--- a/libexec/rc/rc.d/linux
+++ b/libexec/rc/rc.d/linux
@@ -19,11 +19,17 @@ linux_start()
{
local _emul_path _tmpdir
- load_kld -e 'linux(aout|elf)' linux
case `sysctl -n hw.machine_arch` in
+ aarch64)
+ load_kld -e 'linux64elf' linux64
+ ;;
amd64)
+ load_kld -e 'linuxelf' linux
load_kld -e 'linux64elf' linux64
;;
+ i386)
+ load_kld -e 'linuxelf' linux
+ ;;
esac
_emul_path="$(sysctl -n compat.linux.emul_path)"