From nobody Fri Jan 06 08:57:45 2023 X-Original-To: amd64@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 4NpHKk6FXvz2p6v8 for ; Fri, 6 Jan 2023 08:57:46 +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 4NpHKk5Dq7z3rKS for ; Fri, 6 Jan 2023 08:57:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672995466; 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: in-reply-to:in-reply-to:references:references; bh=M63b6XFYTmhyhAxJVkk5nuKO3rBZyhAeY3K/1mbNxfc=; b=kVa56uU94XyClALZ5wWZZDIFqkiMjnpBT3aC7qSYlJGrk5v2D0qpI0s9tiQPv7iLBFzl4U +M1IPVkXnGHgu/EjQrzZ1BbxbIARYdQ2Vv4fkwL6iLHViv99YzKcL7nw0MuXZ3ZRlmKSEX kMmZ3Vu5/RWGwO/hp5OIcY4D5RECOTO2bNKjYxFYxYCfSDVqX2ig8OkyzpSKu49wS2GvC/ J3pBupgzVsjDtBjGdHUuUty2q3Y640Id55ZsXpWTsjsuT+B9ZN70b9GQ6ziJXjJrexoc+6 ntJYkvjj0CQpFLDcZ+aRysNfTGZpE3JVc7razhtNrp89+O6PT5WDrMRWfyKh3Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672995466; a=rsa-sha256; cv=none; b=GJXUF4Wf0VlCyW6Rr1JfZEXGUkKY0Rg2WmMpf4mQocUD9yneHCh3JspVGQSp7PJtCs+Q3h hNtZGKP/stoaA+GKUq+3k9uII+tJ8GIoU2WFsNwGNI2BMbSbdXX5fTM5In92oq7M+guMol jPFAm88TzW+YBfnR2/q3MVc+JdwNSN2HKJbCogzjTnQOC2IH7d7LGYYVdt0RII517VVgFb 9fvBfw2pdXJR/71VfDyj8qHoHU476Weu+BSPX2of6Ykrs6a2GsUEGpAg6JRZbsaV3Vyzn4 HcRlFmkIZeKjznglxtawM+lbTTYt9UqpVG+mMtPEuTIRoayvKYHeMjhc1Y0m1g== 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 4NpHKk4JkZzPKN for ; Fri, 6 Jan 2023 08:57:46 +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 3068vkFF067447 for ; Fri, 6 Jan 2023 08:57:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3068vkPP067446 for amd64@FreeBSD.org; Fri, 6 Jan 2023 08:57:46 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: amd64@FreeBSD.org Subject: [Bug 207940] stand/efi/boot1: Add boot partition selection Date: Fri, 06 Jan 2023 08:57:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, needs-qa, uefi X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: junchoon@dec.sakura.ne.jp X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: imp@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: Porting FreeBSD to the AMD64 platform List-Archive: https://lists.freebsd.org/archives/freebsd-amd64 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-amd64@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207940 --- Comment #43 from Tomoaki AOKI --- (In reply to Warner Losh from comment #42) Glad to know the plan! Once it is completed, I have no objection to retire boot1.efi. I should mention that... *When selected non-default partition, boot should be done as if selected partition is the default partition. Currently, as boot1.efi kickes loader.efi and /boot/loader.conf is handled by loader.efi, this is naturally achieved. *If possible (I know it would be difficult), partitions would be better shown just as booted FreeBSD, like ada0s1, da2p5,... Maybe, nvd* and nda case would be impossible, as it depends on /boot/loader.conf settings. BTW, current default partition (pool) selection order is different between boot1.efi and loader.efi. Is this intentional? Current default boot1.efi behaves like 1. ZFS has always higher priority than UFS in the same physical drive. 2. First, sniff the drive UEFI loaded boot1.efi itself. 3. If neither ZFS pools nor UFS partitions have /boot/loader.conf, seek for next drive. 4. Drives are sniffed the order UEFI firmware finds. 5. Boot from first pool/partition found. The 1. seems to be different on loader.efi, IIUC. 1. would be because Non-Root-on-ZFS pool wouldn't have /boot/loader.efi and admins would want ZFS pool over UFS if installed as Root-on-ZFS. --=20 You are receiving this mail because: You are on the CC list for the bug.=