From nobody Tue Aug 09 18:15:13 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 4M2LpK1Z5gz4Yl8C; Tue, 9 Aug 2022 18:15:21 +0000 (UTC) (envelope-from gjb@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (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 "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M2LpK0xl1z3N9q; Tue, 9 Aug 2022 18:15:21 +0000 (UTC) (envelope-from gjb@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660068921; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wKmAGPrZc3JTHzSg0KUKiXU1myAjP1ULcgxHocVHjmg=; b=TfyBezOSS+QExbCdGsnqPsXCZFS+GwjJBOmu63++Gytj8+JtHyr3oKL633KZNDq7Oya0F0 OZJdR8pntJF+YAQ/RwlsK33saHIHPM89rPYP/xbmnND0poSGj3xqWqOnWbjTirdeXi3Ucq PkEAUZc9mt3trKyMZKrTAveCXjHlQYmyDvuRVaccioMAeTJedpsyoLNZ8w1aEtuymMFwBy Hg2SczEt4xCN/2ievcLOZaXYu8YXf+hk94HsTu+PXpMZ6QYv2jrAGs/11Wp08cZmG2YS/e 229PBvXgHvm2ydMWXG0i0baTratn29kPD9rJCZvGhPxi8xCDBnwMHDLupgRUvg== Received: from FreeBSD.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by freefall.freebsd.org (Postfix) with ESMTPS id 74B2816220; Tue, 9 Aug 2022 18:15:20 +0000 (UTC) (envelope-from gjb@freebsd.org) Date: Tue, 9 Aug 2022 18:15:13 +0000 From: Glen Barber To: Ed Maste Cc: Mark Millard , Warner Losh , "Rodney W. Grimes" , FreeBSD Hackers , freebsd-arm Subject: Re: Looks like the arm 20220805 snapshots are still odd, so probably kern.geom.part.mbr.enforce_chs=0 was still in use Message-ID: <20220809181513.GG30607@FreeBSD.org> References: <6AF28022-A8E7-46B3-B64E-99D217E9B6AC@yahoo.com> <0E0083BD-A749-4112-8FDA-62326EA95F8A@freebsd.org> 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 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="JO68zLCmjMElvUWJ" Content-Disposition: inline In-Reply-To: ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660068921; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wKmAGPrZc3JTHzSg0KUKiXU1myAjP1ULcgxHocVHjmg=; b=ueJLJZXGdYy+1fetMMfTTzv5zLwWws8ww6TgNA7KcTZ3Q4Xhi85R8o4+4TQ8PR3VF99hJJ 946fUqgFn/JgB2uRZdLHtRQfE1uFw0q6exfjgD+LOxZgRD0MeoIj6o5+yBk6RmtAg/6P++ cZlN/9i8/+c7uWqh5Xfp3ngsbSBxTHulvhThFyW6xXvurOxc2h98p66PWEyVtA5dCqB9F2 ZyhDljUkOmngECacuP/Nw/HLcHVa25ln0wwfERsS3DQ1nFDIdADLKDbPdzMmnYYAqq1k14 HSmS28K0C2G4WI2uXR5fQf9oXihccZkWOFZif1zJfysitdUQp39Pc30QPsuJVQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660068921; a=rsa-sha256; cv=none; b=rMMSVo/jvzfdFpH7oV2+2tphdbCbE4bhLospwO8rYoGTjYjHX4zyKWdold0+ogECOIJ1T0 r3rpSij3iDqsCHDPb+eVoxUQGlvXaEz5npq6GsDzBzUjoaXeH5MP9DPGklfEYLc+EW2rBI eitAjUzAfF0KEkVQAmZmgNG/FKPd668oD7fPucgyw0trRPmzJpjG5VPD2ueHqtX3L3l8k4 yTQ8OKVlMEm+M2hdZ0kI8yZBwTQYzbNpAUn3zkF1GGSISCNGEWWOEQk61ITHZDQoA+NsUN gmi8G56taAuGRD3awF4jU/YVUQ7Hpnvd5DqQ6ynmuzx84xZnrqXpjeBmq52rUQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N --JO68zLCmjMElvUWJ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 09, 2022 at 02:06:14PM -0400, Ed Maste wrote: > 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. >=20 > Shall I commit the enforce_chs check now? > --- > commit 6ee7d69e6b526f35789b23ba570025f1c3b39c1a > Author: Ed Maste > Date: Tue Jul 19 16:47:49 2022 -0400 >=20 > release: ensure enforce_chs sysctl is 0 >=20 > We do not want CHS-based alignment for VM or SD card release images. >=20 > Sponsored by: The FreeBSD Foundation >=20 > 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() { > } >=20 > 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 >=20 Good question. Do we still want to ensure it is set to '0'? I'm a bit confused from the back-and-forth on the original thread. If we do want to ensure it is set to '0', yes, please go ahead. Glen --JO68zLCmjMElvUWJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEjRJAPC5sqwhs9k2jAxRYpUeP4pMFAmLypCwACgkQAxRYpUeP 4pPj4A//fpME+l0kRIO41QC6b/TFUDVGi7cNITaNjYr27uaqKVyub9A1Hx4OlUuj VpIZhjm7zmvdscd02HZKqg5LiZyNopH2fd4Y9pXvFBoUamBqX6QwYzUlPN6WKkEF wXwcquYFZ355F3fN/2iJTkyvMEbhzcHRods+IupJkOC0Lbfxg4hXkv/9Ro2nEw0D uITxwgpfQUL9v/l7D+gd7XL/6HRY+Hx8s4LUt4GZDMqEWZX9r5d1GUHEZAEu3AWf yWuFMDsxygI3U2n+zrSG9L+kDEKKAzrORGVfDiAkN5Y/kIkSueitZer0Wyk0Kf+W InhZvFZZvfBBRw0b5ZUWQRoNXVrSydRFEAKrxOvh1uaC3WTZuc44lJVttuL0wLIW 6m2lJU9hvGJSYwv9xd3lwak9JXjYIfc0GhrpvPjIYaIQdUL7ahsvExJrSvlWYlm+ Ncil0a32gb0uwPJQPxFwdpH9DUmukJd2JfeenSIoaNYFWsUD6pJ2o9oIsNrTr4ZE ffDK+0qFhS2dQfshZwK/E4GNBinLeuJPsBBr5/dVUC2LIs3glYUwcTpkwNiLZZAS v/Qrt6ytjXwmjAvD2Xt2FU9Fvn1/44Uc/+5p0WG52g0W76Dbw3PIsknHoTKzMlE+ 9EpQBP2bR6ca8eWz4qiaGxBb+LtDEGsHwMsknRcaU820h3JXvYA= =Rsh+ -----END PGP SIGNATURE----- --JO68zLCmjMElvUWJ--