From nobody Thu Oct 20 10:20:12 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 4MtNs75HF0z4gR9M for ; Thu, 20 Oct 2022 10:20:27 +0000 (UTC) (envelope-from tsoome@me.com) Received: from mr85p00im-zteg06022001.me.com (mr85p00im-zteg06022001.me.com [17.58.23.193]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4MtNs70mFnz3SjC for ; Thu, 20 Oct 2022 10:20:27 +0000 (UTC) (envelope-from tsoome@me.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1666261225; bh=635PhzGMJHqTfOsMX3Hp5tVSTMcu5hp3d6EvtFnwrnQ=; h=Content-Type:From:Mime-Version:Subject:Date:Message-Id:To; b=1omzTZ4NzTyyFhtpjwo1yx84WUwBRCj51EeXsc6ulcuAvINNIlNMZGKDHJsnCPhBC D3ubfXceY49AxEDCVQbx4eLC3sdDvk44der+yMYEX308Z4SSXdYHgfDUWZpcO2Na9M 1LTS1OwqylfqvlYGBgxQyZGGf7kEr3ag2YoYJsXmRaCxQPNRXUAGyXU4aZzAWBvXN/ aDNVgGDx8gJonV6NEHUzzC/PTMOJBt96GITbE0BTFJIuv9SFFAEHawrIMEZZPxmHB7 1gNTHgS2dumQ6hSePLvDcsHvikt1Z7iCliPYY0XA9jO4CvZRnloGgrqUTKVcaGgrGF /PLV9dID8Qoog== Received: from smtpclient.apple (mr38p00im-dlb-asmtp-mailmevip.me.com [17.57.152.18]) by mr85p00im-zteg06022001.me.com (Postfix) with ESMTPSA id 42DC6800815; Thu, 20 Oct 2022 10:20:25 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Toomas Soome 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 (1.0) Subject: Re: loader.efi module path vs kernel directory Date: Thu, 20 Oct 2022 13:20:12 +0300 Message-Id: <31145ADA-5932-4858-B3F8-E21CA3F0721B@me.com> References: <20221020120809.f3a21c9a5c33a2ba440ddc01@bidouilliste.com> Cc: Andriy Gapon , FreeBSD Current In-Reply-To: <20221020120809.f3a21c9a5c33a2ba440ddc01@bidouilliste.com> To: Emmanuel Vadot X-Mailer: iPhone Mail (20A380) X-Proofpoint-ORIG-GUID: M2knYw3yytT7WOJWEIcXFYia3kWSbRvG X-Proofpoint-GUID: M2knYw3yytT7WOJWEIcXFYia3kWSbRvG X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.425,18.0.572,17.11.62.513.0000000_definitions?= =?UTF-8?Q?=3D2022-01-14=5F01:2022-01-14=5F01,2020-02-14=5F11,2021-12-02?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxlogscore=999 malwarescore=0 mlxscore=0 clxscore=1015 adultscore=0 bulkscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210200060 X-Rspamd-Queue-Id: 4MtNs70mFnz3SjC X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=me.com header.s=1a1hai header.b=1omzTZ4N; dmarc=pass (policy=quarantine) header.from=me.com; spf=pass (mx1.freebsd.org: domain of tsoome@me.com designates 17.58.23.193 as permitted sender) smtp.mailfrom=tsoome@me.com X-Spamd-Result: default: False [-3.60 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[me.com,quarantine]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:17.58.0.0/16]; R_DKIM_ALLOW(-0.20)[me.com:s=1a1hai]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[17.58.23.193:from]; MLMMJ_DEST(0.00)[current@freebsd.org]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[tsoome]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RWL_MAILSPIKE_POSSIBLE(0.00)[17.58.23.193:from]; ASN(0.00)[asn:714, ipnet:17.58.16.0/20, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; DWL_DNSWL_NONE(0.00)[me.com:dkim]; RCVD_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[me.com:+]; TO_DN_ALL(0.00)[]; FREEMAIL_FROM(0.00)[me.com]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[me.com]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Also, instead of manual load, you may want to use enable-module. Sent from my iPhone > On 20. Oct 2022, at 13:08, Emmanuel Vadot wrote: >=20 > =EF=BB=BFOn Thu, 20 Oct 2022 13:03:26 +0300 > Andriy Gapon wrote: >=20 >>=20 >> 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=20 >> /boot/kernel/$modname.ko'. I didn't have to do this in a long time, but I= =20 >> recall that the short command used to work. Additionally, required modul= es also=20 >> failed to get loaded automatically because loader couldn't find them. >>=20 >> I am not sure what the issue is. Is it that /boot/kernel is not in modul= e path=20 >> (as per /boot/defaults/loader.conf) ? Or is it that /boot/kernel does not= get=20 >> added to the *effective* module path? >>=20 >> Thanks! >> --=20 >> Andriy Gapon >>=20 >=20 > 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. >=20 > Cheers, >=20 > --=20 > Emmanuel Vadot >=20