From nobody Thu Oct 20 10:03:26 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 4MtNTY0mxSz4gPRq for ; Thu, 20 Oct 2022 10:03:29 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MtNTX6yhfz3PbL for ; Thu, 20 Oct 2022 10:03:28 +0000 (UTC) (envelope-from avg@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666260209; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ovVb4i6L8BsLu8b/HQ7iyoE1H1VTEqmx2RktlDgdLFo=; b=aXrbxkL07EF+VpFCxP5rKelStF3F9vXEsILahWb8zScPL2aFO+4iru7kBcurb8tmsCVrWq wtNwRpoMKondW/EghjaGLufF/8oBl4ZjQ4XmoVYy+cQ1kV2Ec3Rcf+RRxAd7+9zsBLj0XM wHaG8jBy1JuJbpufBdHaJNpeN3HISdTshJ7kOEGSxu6i8ad/ucXGuDPsxVnnCnZoGBQlNj CNyfVzqjuvlQ8GaPq03BOlvEOSN1pyapzsPBUejeA/IICgJECUA2am2SorUnk2flYc9IPI twuYnDzch6eBEmXHIYLFb6uwM+ztyvLneKLvQOQPrmjvdBWhj8F7rCGR5r/sXg== Received: from [192.168.0.88] (unknown [195.64.148.76]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) (Authenticated sender: avg/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4MtNTX4F26zTMc for ; Thu, 20 Oct 2022 10:03:28 +0000 (UTC) (envelope-from avg@FreeBSD.org) Message-ID: <2292945b-c6ba-69c4-e1fd-2726528993cd@FreeBSD.org> Date: Thu, 20 Oct 2022 13:03:26 +0300 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.4.0 Content-Language: en-US To: FreeBSD Current From: Andriy Gapon Subject: loader.efi module path vs kernel directory Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666260209; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ovVb4i6L8BsLu8b/HQ7iyoE1H1VTEqmx2RktlDgdLFo=; b=cZJxFOZg3QRo0fm2SjhN48z9BAIGQrdYvI8AL6bvmMPWquHa6KrJC6CgVCkakxhKr7rKWB wB9/Y+w06yXNqTpwcUYUGRPjP9wJnd2wPwD65rsRVMaH22qnwyIfSEwdHDHfceS7yDDyf3 KA/EXQ620+Q8Ky2RCFBR9qF+kV2GplAIj+A2KXCjWI4ENsBiQuVYTK58A7B2+1Nd38DwiV r4RxJiVIf/kx7icsJyeNDw4DV7Emcq4e+psW/PNjk0iSVbX7gs80IrFZaKudV5ieJljklQ ceeIMPMeyX1yRt4bxF0Batwd4B07jijWgu9BDqRa6VJ1F8pibIGz7GJXuZOEYA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666260209; a=rsa-sha256; cv=none; b=xssdThicIeemW2N7p+6h9UiQte8kEGJnFgEABQ8MTkGd5Qg3ks6i7fWsHXUUKODQ41Bz67 ZxqvmgcZ5b0ygisxS+SQ+Hba4jC+GDfouH7zbddhaj0L5iq6uuyV0lShfYAAKBOePh/VgU YnvLjI9vgfMYxcwbeCWdGyH01tC6pilaRWgrgugreEJ8zcM90stBq6EKjqrp1DM3zIcHCn 4dT/LNT1h1sIk1DwDkgGZ8EWgTcorPrs0O1vJfKla4DS/+Mivyw5JBrFg0cqo+JfCs69l9 IAXZuA3szmdkI6DY/+/psVhTjiQUnHXiXVgF6CqKQB77bk8gxTuB5Ob87+bqrw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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