$NetBSD: patch-functions,v 1.2 2015/03/22 01:52:06 tnn2 Exp $

--- functions.orig	2016-10-05 13:09:24.000000000 +0000
+++ functions
@@ -1044,6 +1044,11 @@ setup_proc () {
 			mount -t linprocfs proc $TARGET/proc
 		fi
 		;;
+	    netbsd)
+		umount_on_exit /dev
+		umount_on_exit /proc
+		mount -t procfs -o linux proc $TARGET/proc
+		;;
 	    hurd*)
 		# firmlink $TARGET/{dev,servers,proc} to the system ones.
 		settrans -a "$TARGET/dev" /hurd/firmlink /dev
