From nobody Wed Feb 15 16:46:41 2023 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 4PH3rK4GCKz3qXW5 for ; Wed, 15 Feb 2023 16:46:41 +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 4PH3rK2nyYz3qjb for ; Wed, 15 Feb 2023 16:46:41 +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=1676479601; 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=zGfbMdTD5ZtJx/1uPD6f99lFwiW2UfKzDp01Ijjqm1w=; b=UCb8bLuT/S/MemH/BzcIfvm2lm80/fG0ZndVB0v4fHDMkYa3lRtX1Lnv3KAvdAHOfXa+ln TS984nABIhDkt5T1uLkASMcGGXwsPlyxS/qM/3fMK/lLa4Q/YLP8pYto7/ON0v8sFcUTXl T6XM3NuXEmGj4YIYb7AR9uRAXqkyxTrjRTuo9JgKsw5qXgpuAB9E8b4xAqZARfVb0DEQzy 4F4AXi8tdxtKPlaBH9K7LGSlmGcWQCI7XcXRjx2+EFrr+Fiaen4NxKdjoD2pI8JkwCEYux spjGzCyTIzDd39/Vn3EuAGD3aMq4Sr8gem1pZ7+Q2/UaLKodjDPulm7dL4q3dQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676479601; a=rsa-sha256; cv=none; b=ZILI91mAUb2bVXL/ljMrzUFcsk4lz3PtfFZ0KQ1I/jRTe9qv07LcVQWHfEhy5aPFgaHlPW 1xiGIRyoQMcap3ndwfIgq4hXBxZLtZrz8fh1+3/Mb+87iEcBhjAgeTGG7AHb0Y3OAji/E6 EKFoPFAREU4n/zVtrPBLZJv4OolvRdz2BuNRbcd74yUWScYx/RPX2o37frIHkkcRf/IYXe 2DiJCa6+BYSLdJjp87MeXjDE0S362A/WQ4pGqRAazPtZJYbkqx3DOb0ksTJcEAY12cc5XQ d6Sz2MZ9DWbn1CaVY7ZuKpiGeqNEc4R6Qzyi+ufV0EpyqbxIcdZslaKPqtwXRw== 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 4PH3rK1v9JzWrP for ; Wed, 15 Feb 2023 16:46:41 +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 31FGkfYH006881 for ; Wed, 15 Feb 2023 16:46:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 31FGkfQu006879 for bugs@FreeBSD.org; Wed, 15 Feb 2023 16:46:41 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 269564] efibootmgr does not work when using gptlabels Date: Wed, 15 Feb 2023 16:46:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: imp@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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: 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269564 Warner Losh changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |imp@FreeBSD.org --- Comment #2 from Warner Losh --- So, the problem here is that we have to walk through the geom tables to find the device the drive is on and then use that to get the meida id we need to create the UEFI path. tl;dr: The code knows about gpart, but not glabel. It can't do it generical= ly in geom because what do you say for gmirror / gstripe and other one to many= and many to one mappings of multiple devices (the many to one in glabel at leas= t is fine in that there's no ambiguity). All that code is in libefivar/efivar-dp-xlate.c:find_geom_efi_on_root has t= he code that I ran out of time debugging to try to make this work. So all the walking is effectively commented out. There's also find_geom_efimedia which handles the well-formed cases in gpart. I'm unsure when I'll get back to this, so I'm just commenting to maybe save people some time and to offer to review if somebody gets to this before I c= an scratch this itch. --=20 You are receiving this mail because: You are the assignee for the bug.=