From nobody Thu Aug 18 06:18:57 2022 X-Original-To: freebsd-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 4M7ZTl2TFfz4ZWDv for ; Thu, 18 Aug 2022 06:19:07 +0000 (UTC) (envelope-from sjg@juniper.net) Received: from mx0a-00273201.pphosted.com (mx0a-00273201.pphosted.com [208.84.65.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.pphosted.com", Issuer "Thawte RSA CA 2018" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M7ZTj14PKz46hn; Thu, 18 Aug 2022 06:19:04 +0000 (UTC) (envelope-from sjg@juniper.net) Received: from pps.filterd (m0108156.ppops.net [127.0.0.1]) by mx0a-00273201.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27I1FKY1010443; Wed, 17 Aug 2022 23:19:02 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; h=to : cc : subject : in-reply-to : references : from : mime-version : content-type : content-id : content-transfer-encoding : date : message-id; s=PPS1017; bh=6LjEMEmfEIHypI2qV0n9e6cfYg/y/lb2jTmJUn3z/IM=; b=fKbRMqq0aHXI1VZohW3i+l7DxKu7Iuy+O7pn4Jm9TOgGYFgemdXHtk/zjMng93mJG/Ri ovkGRAY6kUoVzbcCsNxWQzH8+Jp4hnzmUlTNwEvYjygYF3BXcFLFbaTYMkKzYCAIQ6M4 ZinQO3onzhPxDDykK70vepEesIfoVU3+dUveq82aIFycDemjYqpkKkEorwMDMuG3eNHf rYbpQ1WEwLDYVv979R4jIbbkCCwZhIMNRsr4tUizMsMCPkOiXmwU2pR26aBQw2a3Orwc czVjtpbkA7DDF38saYb8Oz0XGwiDHcv2Ze/Q+BtvWDTrkoYeiRF7RcQ3GVNPXqhoU/cw yA== Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2106.outbound.protection.outlook.com [104.47.55.106]) by mx0a-00273201.pphosted.com (PPS) with ESMTPS id 3j0yk4sqae-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 Aug 2022 23:19:02 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iSA7XGwOE2hoPxtAKf1lR9JDTOQv1qeSSROJrLbvGccietkwaDeQvZ6BFBop5sTBS6kit4M4h26a3B1hDXPxyWTbNMKmcrwSjuYzvlQOIll1C/vr01BwS9MzoNrEGLYzL+y3DghsaZd2yc3KOkFfOKQRZ1TX6CspbNQaD/xZSJ3FTfcO7gXbn1KgBmEnVchGy0MpGZIIzkgetno9hjo1BpB/eGPWP5w3BFmC49YIE6ow6Vo4ibnwWrEifziy0hLlw886hqiXN60XLjW99tcTcX2ABhr/hEyJYNJMT/bsB/IIEhPPOqRFSsbszzOZOFdqNxI2zQZhIXykvB3hYSLcDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6LjEMEmfEIHypI2qV0n9e6cfYg/y/lb2jTmJUn3z/IM=; b=SCB7YqXpda4XwSPKbAD0iGz4IQuYZMKpVfHOvHIqo8rasPs+PWIixt/AyLGUQkuGMLSdUvnlfSTR1Ix9/W5Zv+CIlV04DK1tvXpS1Ui/ds8BTSENvg0st+xQR55gp2QWzy5GLCDoe7TLTlYXxmL1NN4gWfh0ZeNnb7++pq+4IpRJyAxpybgVl8ZBvCgdOyiXIwiG07ihZkW9Wn9zwHczy9lzsaKekstws/7xDgwagiCGHSltoZzAxv4Ce4NXMFJ3C26O+fdgRFskitpWdC/aN06Z1HLEBOoTi43tAfV4Jm+M8iuA2G0/4fgx74dB/7PnVHm/MiVi52wKxGg6sDk0IQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=softfail (sender ip is 66.129.239.15) smtp.rcpttodomain=nomadlogic.org smtp.mailfrom=juniper.net; dmarc=fail (p=reject sp=reject pct=100) action=oreject header.from=juniper.net; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6LjEMEmfEIHypI2qV0n9e6cfYg/y/lb2jTmJUn3z/IM=; b=SulDWVMt7tDP7SrGwp5wHGZdmSaiBHRvNnKZdokurFFZDT2Hv0tNFMhhTjusWbSC8tdZowve7Tq6aLFAO5QLi7FzxA9kDKjd8461UU+32OddcETEwtvfTmSSXCeYJW4pRqUmCFU/MaG9FFbjjQerZ76K+8dZl4Y+I4feWO5J73Q= Received: from DM6PR08CA0025.namprd08.prod.outlook.com (2603:10b6:5:80::38) by SA0PR05MB7259.namprd05.prod.outlook.com (2603:10b6:806:bf::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5546.14; Thu, 18 Aug 2022 06:18:59 +0000 Received: from DM6NAM12FT061.eop-nam12.prod.protection.outlook.com (2603:10b6:5:80:cafe::3d) by DM6PR08CA0025.outlook.office365.com (2603:10b6:5:80::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.23 via Frontend Transport; Thu, 18 Aug 2022 06:18:59 +0000 X-MS-Exchange-Authentication-Results: spf=softfail (sender IP is 66.129.239.15) smtp.mailfrom=juniper.net; dkim=none (message not signed) header.d=none;dmarc=fail action=oreject header.from=juniper.net; Received-SPF: SoftFail (protection.outlook.com: domain of transitioning juniper.net discourages use of 66.129.239.15 as permitted sender) Received: from p-exchfe-eqx-02.jnpr.net (66.129.239.15) by DM6NAM12FT061.mail.protection.outlook.com (10.13.179.123) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.4 via Frontend Transport; Thu, 18 Aug 2022 06:18:58 +0000 Received: from p-exchbe-eqx-02.jnpr.net (10.104.9.15) by p-exchfe-eqx-02.jnpr.net (10.104.9.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Thu, 18 Aug 2022 01:18:58 -0500 Received: from p-exchbe-eqx-02.jnpr.net (10.104.9.15) by p-exchbe-eqx-02.jnpr.net (10.104.9.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Thu, 18 Aug 2022 01:18:58 -0500 Received: from p-mailhub01.juniper.net (10.104.20.6) by p-exchbe-eqx-02.jnpr.net (10.104.9.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5 via Frontend Transport; Thu, 18 Aug 2022 01:18:57 -0500 Received: from kaos.jnpr.net (kaos.jnpr.net [172.23.255.201]) by p-mailhub01.juniper.net (8.14.4/8.11.3) with ESMTP id 27I6IvNR027598; Wed, 17 Aug 2022 23:18:57 -0700 (envelope-from sjg@juniper.net) Received: by kaos.jnpr.net (Postfix, from userid 1377) id 6E475A0002; Wed, 17 Aug 2022 23:18:57 -0700 (PDT) Received: from kaos.jnpr.net (localhost [127.0.0.1]) by kaos.jnpr.net (Postfix) with ESMTP id 6B7F09FF9C; Wed, 17 Aug 2022 23:18:57 -0700 (PDT) To: Warner Losh CC: Pete Wright , Stefan Esser , "FreeBSD Current" , Yasuhiro Kimura , Oleg Lelchuk , Subject: Re: Updating EFI boot loader results in boot hangup In-Reply-To: References: <20220814.095721.849461222067829352.yasu@FreeBSD.org> <20220814.110850.1703361053728529792.yasu@FreeBSD.org> <45007308-136a-8938-33d0-bb2509ee6ae7@FreeBSD.org> <20220814192609.wyfcogl3dwzteuva@colony.nomadlogic.org> Comments: In-reply-to: Warner Losh message dated "Sun, 14 Aug 2022 13:57:05 -0600." From: "Simon J. Gerraty" X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 27.2 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 Content-Type: text/plain; charset="us-ascii" Content-ID: <15140.1660803537.1@kaos.jnpr.net> Content-Transfer-Encoding: quoted-printable Date: Wed, 17 Aug 2022 23:18:57 -0700 Message-ID: <16144.1660803537@kaos.jnpr.net> X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d5435f64-1fea-4ae4-97a8-08da80e1896a X-MS-TrafficTypeDiagnostic: SA0PR05MB7259:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qeHFo4GdNrPtObxg6QOlO8MvteqxN5GWzgqf1gHyh3kEVabOdVyDqgCKPbIBbQWKHl7TgI5jDioGiF0dZc9e0FaR1B+/BnxlvsL/dGLrl3FS8i4juL0FUsoisjF+TEbT2fVRiqgoZHTOVnX72Heqw+HsE8HVmC+v2U/KNjE9twORlPMVk9+lBovWPOS7nlphb1HqfiZZCvBgTOwlCrCe28q/HHR3cT3nJtm2adTt1El5/I8tdHFuY/BCMNZptY3kv28li7fDpa1pfLKJ6rbhs52/1dRK6/GlohxWiV6JNwc/BAgVIMBD8aBlZOqW8aFa5vcRb4IASb1F+cIsV1tsgxBRBrl6K2inZB9ErwqmTXVy+ODbDiCW38INc+vV6wqEPjugukiui9dlX4bQ+ychNGNdUz8BnrkbgIMPQJ4DxSdfhirp1rgX6sM+5IpYQ/mmEY7MHX7aHsAb1zhOJOQURRY52YW7PGsKzMEUPH20mDINFyfJwb78GNpfaWKVj9XYqVZKj1InwR74YTBZCf6MQixRkvDKE1h1rtmlERvf0gQKPYCwslvqyMkMD36tBVyrcg1y+n8xsSGkjX1pTe1loDtetiNRgeMiIsx5VkVqkNFNDqMMXMBU/z57GlyOCsNDryZEildJ1s/GntaCmn79xOHnDnlVBWSxCMPjSV/zutONn3MTvJpWci1TnVvMUECZvVhIL+N+8wB32Ny313GrqCWkLl+82iFrRSSe0Xrf81YsEYDai3sMWFKlO+JAy4RmCAHXNhyg2Q5BQjE5s42kcX5sl0EL75HeYpPMrAhuVBLwTGaky541OCwz6da8oPbKc1R79k7znOol4xkJMdCy2t7/1IG89q4DkoUy63n9dE0= X-Forefront-Antispam-Report: CIP:66.129.239.15;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:p-exchfe-eqx-02.jnpr.net;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230016)(4636009)(39860400002)(396003)(346002)(136003)(376002)(36840700001)(46966006)(40470700004)(55016003)(82310400005)(86362001)(2906002)(40480700001)(8936002)(82740400003)(356005)(81166007)(4744005)(9686003)(83380400001)(47076005)(186003)(26005)(7126003)(7696005)(6266002)(107886003)(36860700001)(336012)(41300700001)(478600001)(4326008)(70586007)(6916009)(70206006)(316002)(8676002)(5660300002)(40460700003)(54906003)(36900700001);DIR:OUT;SFP:1102; X-OriginatorOrg: juniper.net X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Aug 2022 06:18:58.6870 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d5435f64-1fea-4ae4-97a8-08da80e1896a X-MS-Exchange-CrossTenant-Id: bea78b3c-4cdb-4130-854a-1d193232e5f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bea78b3c-4cdb-4130-854a-1d193232e5f4;Ip=[66.129.239.15];Helo=[p-exchfe-eqx-02.jnpr.net] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM12FT061.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR05MB7259 X-Proofpoint-GUID: YEFFH-IfMvhr0viUm4bYcRt9xlETil_C X-Proofpoint-ORIG-GUID: YEFFH-IfMvhr0viUm4bYcRt9xlETil_C X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-18_02,2022-08-16_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 phishscore=0 priorityscore=1501 bulkscore=0 malwarescore=0 mlxlogscore=632 suspectscore=0 adultscore=0 clxscore=1011 mlxscore=0 spamscore=0 impostorscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2208180018 X-Rspamd-Queue-Id: 4M7ZTj14PKz46hn X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=juniper.net header.s=PPS1017 header.b=fKbRMqq0; dkim=pass header.d=juniper.net header.s=selector1 header.b=SulDWVMt; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=reject) header.from=juniper.net; spf=pass (mx1.freebsd.org: domain of sjg@juniper.net designates 208.84.65.16 as permitted sender) smtp.mailfrom=sjg@juniper.net X-Spamd-Result: default: False [-5.10 / 15.00]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[juniper.net,reject]; R_SPF_ALLOW(-0.20)[+ip4:208.84.65.16]; R_DKIM_ALLOW(-0.20)[juniper.net:s=PPS1017,juniper.net:s=selector1]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[208.84.65.16:from]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEFALL_USER(0.00)[sjg]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:26211, ipnet:208.84.65.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWELVE(0.00)[12]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCPT_COUNT_SEVEN(0.00)[7]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[104.47.55.106:received]; FREEMAIL_CC(0.00)[nomadlogic.org,freebsd.org,gmail.com,juniper.net]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[juniper.net:+] X-ThisMailContainsUnwantedMimeParts: N Warner Losh wrote: > I think I broke it with my latest updates. I don't have a good ZFS testi= ng setup > so I'm spending a little time enhancing the bootable image generator to = have > one that I can easily test boot with qemu. FWIW bhyve is *excellent* for mucking about with EFI and loader in general= . I did all the UEFI support for Junos using bhyve (initially so I could test LOADER_VERIEXEC), and I regurlarly use it to test various install processes - pxe boot and net install, usb install, etc. I build loader.efi from a branch off main, everyting else is from stable/12 at present. The combination of makefs, mkimg and bhyve - make hacking the low level boot bits much safer. Byhve is quick too - my Junos VM's take about 40-50s from start to login prompt. --sjg