From nobody Tue Aug 09 18:06:14 2022 X-Original-To: freebsd-arm@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 4M2Lc71RjQz4YjZW; Tue, 9 Aug 2022 18:06:31 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 4M2Lc55NK7z3LJw; Tue, 9 Aug 2022 18:06:29 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-ed1-f41.google.com with SMTP id w3so16177670edc.2; Tue, 09 Aug 2022 11:06:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=rzDGOXSJ4uuw/0ccw/r4aB3KQrA+4wGcWWEZ7zJIs30=; b=xocnNyjZ7PncKdDOrlzeAM3wB/iMk1UTMvEqKli6sSLeiww45tjb01jOBNNkH8JsuU Hvd4fQvT4DK3EkCTixEfpY5oMIbe2dhUYX5U2xbC3g7uRRRKPOvoz5LByfwR78EkP2w9 P+1QhUsrD/Rhx1eJUWZYBehev6v06th/Dg5BHA35EgkcFJaHQQ3jBCfcVMY09kIxjs1w dDq2XB32NQcZgUZwyuZ+rnXlWRkyEBSE1/oLddIZm59E8VItkIWo4yiNiu+xXm+hy4E+ fslQBIZCv3xLRF8UuvQsaNdzuaxXsLX7Q1FK4N9+K05PR7qr1HH28EV9QD1q7cdQd2yR jsGA== X-Gm-Message-State: ACgBeo0Ozq4pTKT/qBuY+Zof4nvdd0EUyE6BNQz1+KNPsXacpjauThzo eTBR94Coa9GMpHaeRaGdUnIwohPGzb+Gx4/saHk/JiXMYME= X-Google-Smtp-Source: AA6agR4ajXhg5R7hs9Ep2mpj2bGYGynsOSrq1BqjE+V+5zCNEjK9XAod1MJY//UXaeWTC1eRP1RnDV+83dSYp4p7828= X-Received: by 2002:a05:6402:27d2:b0:43e:3ff6:ad58 with SMTP id c18-20020a05640227d200b0043e3ff6ad58mr22607256ede.234.1660068387315; Tue, 09 Aug 2022 11:06:27 -0700 (PDT) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 References: <6AF28022-A8E7-46B3-B64E-99D217E9B6AC@yahoo.com> <0E0083BD-A749-4112-8FDA-62326EA95F8A@freebsd.org> In-Reply-To: <0E0083BD-A749-4112-8FDA-62326EA95F8A@freebsd.org> From: Ed Maste Date: Tue, 9 Aug 2022 14:06:14 -0400 Message-ID: Subject: Re: Looks like the arm 20220805 snapshots are still odd, so probably kern.geom.part.mbr.enforce_chs=0 was still in use To: Glen Barber Cc: Mark Millard , Warner Losh , "Rodney W. Grimes" , FreeBSD Hackers , freebsd-arm Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4M2Lc55NK7z3LJw X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of carpeddiem@gmail.com designates 209.85.208.41 as permitted sender) smtp.mailfrom=carpeddiem@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.996]; FORGED_SENDER(0.30)[emaste@freebsd.org,carpeddiem@gmail.com]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org,freebsd-arm@freebsd.org]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.208.41:from]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; RCVD_IN_DNSWL_NONE(0.00)[209.85.208.41:from]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FREEFALL_USER(0.00)[carpeddiem]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FROM_NEQ_ENVFROM(0.00)[emaste@freebsd.org,carpeddiem@gmail.com]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; DMARC_NA(0.00)[freebsd.org]; RCPT_COUNT_FIVE(0.00)[6]; FREEMAIL_CC(0.00)[yahoo.com,bsdimp.com,gndrsh.dnsmgr.net,freebsd.org] X-ThisMailContainsUnwantedMimeParts: N On Sun, 7 Aug 2022 at 18:43, Glen Barber wrote: > > Will do. I=E2=80=99ll commit the suggested change to main tomorrow. > > Thank you for your vigilant investigation. Shall I commit the enforce_chs check now? --- commit 6ee7d69e6b526f35789b23ba570025f1c3b39c1a Author: Ed Maste Date: Tue Jul 19 16:47:49 2022 -0400 release: ensure enforce_chs sysctl is 0 We do not want CHS-based alignment for VM or SD card release images. Sponsored by: The FreeBSD Foundation diff --git a/release/tools/arm.subr b/release/tools/arm.subr index 6e4ae731a0b9..01c5303cd4e1 100644 --- a/release/tools/arm.subr +++ b/release/tools/arm.subr @@ -62,6 +62,10 @@ umount_loop() { } arm_create_disk() { + if [ $(sysctl -n kern.geom.part.mbr.enforce_chs) !=3D 0 ]; then + return 1 + fi + # Create the target raw file and temporary work directory. chroot ${CHROOTDIR} gpart create -s ${PART_SCHEME} ${mddev} if [ "${PART_SCHEME}" =3D "GPT" ]; then