mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
Fix the 'linux' rc script on aarch64.
Previously it would try to load linux.ko instead of linux64.ko
and fail. While here, don't try to match 'linuxaout'; even if
implemented, it's the same module as `linuxelf`.
Reviewed By: emaste
Sponsored By: EPSRC
Differential Revision: https://reviews.freebsd.org/D29288
(cherry picked from commit e026f4243c)
This commit is contained in:
parent
f4e3cb4b6b
commit
933cb282b6
1 changed files with 8 additions and 2 deletions
|
|
@ -19,11 +19,17 @@ linux_start()
|
|||
{
|
||||
local _emul_path _tmpdir
|
||||
|
||||
load_kld -e 'linux(aout|elf)' linux
|
||||
case `sysctl -n hw.machine_arch` in
|
||||
amd64)
|
||||
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)"
|
||||
|
|
|
|||
Loading…
Reference in a new issue