From: David van Moolenbroek Date: Mon, 25 Jan 2016 18:23:56 +0000 (+0100) Subject: bootloader: do not try to autoload NetBSD modules X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=refs%2Fchanges%2F90%2F3290%2F1;p=minix.git 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 --- 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