From nobody Sun Mar 6 21:11:28 2022 X-Original-To: stable@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 22A6C1A06A15 for ; Sun, 6 Mar 2022 21:11:40 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ua1-x929.google.com (mail-ua1-x929.google.com [IPv6:2607:f8b0:4864:20::929]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KBZ5l3tWBz3Lq1 for ; Sun, 6 Mar 2022 21:11:39 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-ua1-x929.google.com with SMTP id i26so5735269uap.6 for ; Sun, 06 Mar 2022 13:11:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=T5auY41hW7G7eFcvF5qySIYJ1//UtdyU6NAeeNqM5jU=; b=jLXKtFtZAcIrw7rxPLQs2jlVsNCvjxd3YkYEFh6ZM7oInsV/Ku8IqQITH400BPlSVZ fBWsMjBk+I+fNE0YqmMXGydmgmT1fUTOBZ2LfavgS+qYwexZtIgKrKfU+1/skaPWUqvI 3vU7W2yIZGxJsnFmZZysFyawqykxIc7T+YAA9oDq0CsZbw9BbE6vz1FX2xNKuMc2zFtL S8MPN6FWatZZPqoe1wqxzUKSvgOAnHP4fSe7Gz38fijfkMABdpk1cS+0tNx+bbD39UHt MWFNWQ9rfZ/3N7qsURROEPjJwzWbqN56hY15FMpJiDFH0Kr/i7QXTdSPPBeP3jTT7ZIj oajg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=T5auY41hW7G7eFcvF5qySIYJ1//UtdyU6NAeeNqM5jU=; b=NelplYVIMOjPnc2fNtn+nkj90qg0IIP266qjxHPyRetjT0VKHxsXs60GzQfYRh4I5M CHdbWqqLoVQm64kvaGjKEjMtWD8lDHq9hYXqsCj6v+BOlktvOQebWFzgmV1CQSUoB2A5 LlHfb4sqh9jSZgjR1yLKeLLdfiNcBffv1EDsvm9z/LLF6bIPIzoTWgaOXEUzgC6y5srV kzYiai9lD0FkkSX/D9WwwWuz2Za+Y9MCO0QSjVtqSy03DLv48PhPn3k+kZA3b33rGAix XMDYhFkGdG4Dj1o822MyeBm9wUtcanoPzzCaVBNZxY2mBuu9YX3Zdf34iWXztp7UNcfu jz3g== X-Gm-Message-State: AOAM532vyPnSwnGNgtFddgCnlpi4HAn2+IjJlIXgS+NVGhTBmzJQfJoM zEmZrsA4qXm2HjIXDlxA/4vEU4PbVB6o5VnPWCcXobO9YPw= X-Google-Smtp-Source: ABdhPJzQFDvze7LtFkT//AlzwJ+SxaoR8q03meV1NjFI+79AmpebUuWGhjz+gFl6nQODBiXIhal1zM4gSp37FkllheE= X-Received: by 2002:ab0:6194:0:b0:34a:737:f4c with SMTP id h20-20020ab06194000000b0034a07370f4cmr2786923uan.54.1646601098907; Sun, 06 Mar 2022 13:11:38 -0800 (PST) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Sun, 6 Mar 2022 14:11:28 -0700 Message-ID: Subject: Re: custom install and missing kenv defaults To: "Eugene M. Zheganin" Cc: FreeBSD Stable ML Content-Type: multipart/alternative; boundary="000000000000966a3b05d99331ec" X-Rspamd-Queue-Id: 4KBZ5l3tWBz3Lq1 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20210112.gappssmtp.com header.s=20210112 header.b=jLXKtFtZ; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::929) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-0.97 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20210112.gappssmtp.com:s=20210112]; NEURAL_HAM_MEDIUM(-0.98)[-0.983]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[stable@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20210112.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::929:from]; NEURAL_HAM_SHORT(-0.99)[-0.986]; NEURAL_SPAM_LONG(1.00)[1.000]; MLMMJ_DEST(0.00)[stable]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_SPF_NA(0.00)[no SPF record]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com] X-ThisMailContainsUnwantedMimeParts: N --000000000000966a3b05d99331ec Content-Type: text/plain; charset="UTF-8" On Sun, Mar 6, 2022 at 1:17 PM Eugene M. Zheganin wrote: > Hello, > > I'm using custom install script for setting up FreeBSD on large disks > (you know, that 10-years-ago-and-still-there issue with "cannnot read > MOS, all block copies unavailable" when book blocks migrate over 2TB), > but I was using it only on legacy gptzfsboot servers, Nowadays I > converted it to UEFI, and now I can see that this installation cannot > boot atomatically, because it searches for the kernel in /boot. I know > about loader.conf, for sure, but servers installed with bsdinstall don't > have kernel_path set there (along with module_path), yet it works fine. > I've also checked the kernel for the bundled env variables - none. > > So, my question is - where are the kernel_path and module path set when > the bsdinstall does the installation ? > They aren't. They default to the path that the boot loader reports to the kernel. /boot/loader.conf can, I believe, override them. Warner --000000000000966a3b05d99331ec Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Sun, Mar 6, 2022 at 1:17 PM Eugene= M. Zheganin <eugene@zhegan.in&g= t; wrote:
Hello,=

I'm using custom install script for setting up FreeBSD on large disks <= br> (you know, that 10-years-ago-and-still-there issue with "cannnot read =
MOS, all block copies unavailable" when book blocks migrate over 2TB),=
but I was using it only on legacy gptzfsboot servers, Nowadays I
converted it to UEFI, and now I can see that this installation cannot
boot atomatically, because it searches for the kernel in /boot. I know
about loader.conf, for sure, but servers installed with bsdinstall don'= t
have kernel_path set there (along with module_path), yet it works fine. I've also checked the kernel for the bundled env variables - none.

So, my question is - where are the kernel_path and module path set when the bsdinstall does the installation ?

= They aren't. They default to the path that the boot loader reports to t= he kernel.
/boot/loader.conf can, I believe, override them.
=

Warner=C2=A0
--000000000000966a3b05d99331ec--