From nobody Wed Jul 27 23:47:44 2022 X-Original-To: bugs@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 4LtVns1DKDz4X7qZ for ; Wed, 27 Jul 2022 23:47:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LtVnr67w1z3mMY for ; Wed, 27 Jul 2022 23:47:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LtVnr59qzzbQk for ; Wed, 27 Jul 2022 23:47:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 26RNliT4084448 for ; Wed, 27 Jul 2022 23:47:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26RNliWe084447 for bugs@FreeBSD.org; Wed, 27 Jul 2022 23:47:44 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 265471] loader: /boot/lua/menu.lua boots kernel from original bootenv when bootenv is changed Date: Wed, 27 Jul 2022 23:47:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: crahman@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658965664; 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=tGRLLKbn1NjLkgZDfvvNhMxm+ygNDxzkOUPEC1scfYU=; b=C2CFI+w6qpJeAB0dan4+sYy6yf0gdAtMgWUUoSzj/z3OYeZN2yt4Cn1cujWRzCNoO1twFg 2iIZ0Uako4Ecxt0FyWgpj8uHCh8a15XCOgnlkx7qPkHQan+YMIBffOD2C6JZVO++7Z3xL5 Yp5OPbGqe043EdNz6xP9q7xiGrfqtg07glGa34XQzIxIs7iIOBxFahAjnfvb1wf0Whaayj QsbpxtIaNBzj15V3WS/h2WW3R0v1EOg1R4u7bRVTSF93AnHsdWxxyOJqEsVqLIKUeh4lVN iO2PVOVICGKL+xfH0EDs4eiHaguattKJSxmZ8vF83JojeYSOX8thBbQOH8OUhw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658965664; a=rsa-sha256; cv=none; b=EURHuPvznVfbW+hzi3THh4oS9/Acgomq+FuMS+3pmFVfArPQSZw9BIdKsPI6MlN8A+v4PV 3nS5xU6SlnFE1FyjXBvnDEy7n35fBq71SwJTpgKTLLdcxK2er0gUkXOVE9R6GipD6sHOq3 7lSoLgJIaexshvrLt3NZBLFI0bkQ52h9c6CzZyUKJGt8VrEpfYLq6dk/dl7aRF/j4IuuZq DaKbyS6zgvgrallB8QJeLa0CCqn1cROMGGY2v0r2BCDZNsgdpVrKiHdePegEkYroB898rR RM3Jeh8RN0bi/FUD82BL4QkSRYsIn6uoNUCMSW7uvmRJfoxWHb+3vp2T51cXjg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265471 Bug ID: 265471 Summary: loader: /boot/lua/menu.lua boots kernel from original bootenv when bootenv is changed Product: Base System Version: 13.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: crahman@gmail.com Created attachment 235516 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D235516&action= =3Dedit Unload any previously loaded kernel when changing boot environment. Related to a bug fixed by Kyle Evans in commit e414851f3eb7a9dd2af8209eac4ada307cb6ff8e, if a password is set for the load= er, when the boot environment is changed in the lua menu, the kernel originally loaded before the menu was brought up is booted in the new boot environment. Since the kernel directory isn't mounted, this prevents modules from being loaded during boot. In addition, if the reason for using the boot environm= ent is to provide a known good kernel and environment, well... I've attached a patch. --=20 You are receiving this mail because: You are the assignee for the bug.=