From 1d80a87694cdb69a2cb41223306d4bbba5289571 Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Mon, 25 Jan 2016 19:23:56 +0100 Subject: [PATCH] bootloader: do not try to autoload NetBSD modules The NetBSD bootloader attempts to load NetBSD kernel modules for "unusual" file systems. We do not support NetBSD kernel modules, and thus, the bootloader gives us warnings about not being able to load them, in particular when booting CD images. This patch disables the NetBSD file system module autoload feature. Change-Id: I55fce53b4bb0282b7d8a005192200fe466312f62 --- sys/arch/i386/stand/lib/exec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/arch/i386/stand/lib/exec.c b/sys/arch/i386/stand/lib/exec.c index e32cb6a56..9c3465540 100644 --- a/sys/arch/i386/stand/lib/exec.c +++ b/sys/arch/i386/stand/lib/exec.c @@ -303,9 +303,11 @@ common_load_kernel(const char *file, u_long *basemem, u_long *extmem, close(fd); +#if !defined(__minix) /* this just gives us a cd9660-not-found warning.. */ /* If the root fs type is unusual, load its module. */ if (fsmod != NULL) module_add_common(fsmod, BM_TYPE_KMOD); +#endif /* !defined(__minix) */ /* * Gather some information for the kernel. Do this after the -- 2.44.0