From nobody Thu Oct 20 10:08:09 2022 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MtNb70hKBz4gPrl for ; Thu, 20 Oct 2022 10:08:19 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MtNb60Hf0z3QkG; Thu, 20 Oct 2022 10:08:17 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1666260490; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=z8iO7TlztoojbauGLd++gTeXDBWMw6cdyIHKQ9SzECA=; b=Y+GG4SQA4jAPr7YpQ9rm2I3lert5KVMCYEuBpFJEvH8c59jWxCa7YRdRReaSucOHP0J/+x oTmsaRnsuJtQV8lK1PkYZOegRLC/Qu9OGIjSkiYOT9Y17wfVavHnwaEf1HGNX4JLN75lT6 HNAtYShWaHl9cC7j14Jh4EKQ/xrjxl4= Received: from amy.home.blih.net (lfbn-lyo-1-2174-132.w90-66.abo.wanadoo.fr [90.66.97.132]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 59a800d1 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 20 Oct 2022 10:08:10 +0000 (UTC) Date: Thu, 20 Oct 2022 12:08:09 +0200 From: Emmanuel Vadot To: Andriy Gapon Cc: FreeBSD Current Subject: Re: loader.efi module path vs kernel directory Message-Id: <20221020120809.f3a21c9a5c33a2ba440ddc01@bidouilliste.com> In-Reply-To: <2292945b-c6ba-69c4-e1fd-2726528993cd@FreeBSD.org> References: <2292945b-c6ba-69c4-e1fd-2726528993cd@FreeBSD.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4MtNb60Hf0z3QkG X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=Y+GG4SQA; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; R_SPF_ALLOW(-0.20)[+ip4:212.83.155.74/32]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[current@FreeBSD.org]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; MIME_TRACE(0.00)[0:+]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FREEFALL_USER(0.00)[manu]; ARC_NA(0.00)[]; TO_DN_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Thu, 20 Oct 2022 13:03:26 +0300 Andriy Gapon wrote: > > I recently needed to recover a system by manually preloading a driver. > To a bit of surprise, simple 'load $modname' did not work, I had to use 'load > /boot/kernel/$modname.ko'. I didn't have to do this in a long time, but I > recall that the short command used to work. Additionally, required modules also > failed to get loaded automatically because loader couldn't find them. > > I am not sure what the issue is. Is it that /boot/kernel is not in module path > (as per /boot/defaults/loader.conf) ? Or is it that /boot/kernel does not get > added to the *effective* module path? > > Thanks! > -- > Andriy Gapon > if you escape to prompt directly loader didn't loaded all it's config so there is no modulepath defined, you need to 'boot-conf' to load the configuration files. Cheers, -- Emmanuel Vadot