svn commit: r296542 - head/etc/rc.d

Dmitry Chagin dchagin at FreeBSD.org
Tue Mar 8 19:08:57 UTC 2016


Author: dchagin
Date: Tue Mar  8 19:08:55 2016
New Revision: 296542
URL: https://svnweb.freebsd.org/changeset/base/296542

Log:
  Load linux64 module for amd64 if Linux abi enabled.
  
  Reviewed by:	emaste@
  MFC after:	1 week
  Differential Revision:	https://reviews.freebsd.org/D5567

Modified:
  head/etc/rc.d/abi

Modified: head/etc/rc.d/abi
==============================================================================
--- head/etc/rc.d/abi	Tue Mar  8 18:53:00 2016	(r296541)
+++ head/etc/rc.d/abi	Tue Mar  8 19:08:55 2016	(r296542)
@@ -27,6 +27,11 @@ linux_start()
 
 	echo -n ' linux'
 	load_kld -e 'linux(aout|elf)' linux
+	case `sysctl -n hw.machine_arch` in
+	amd64)
+		load_kld -e 'linux64elf' linux64
+		;;
+	esac
 	if [ -x /compat/linux/sbin/ldconfigDisabled ]; then
 		_tmpdir=`mktemp -d -t linux-ldconfig`
 		/compat/linux/sbin/ldconfig -C ${_tmpdir}/ld.so.cache


More information about the svn-src-all mailing list