From nobody Wed Mar 22 14:42:38 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 4PhWR21hQYz40vpR for ; Wed, 22 Mar 2023 14:42:38 +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 4PhWR16Ytdz4kps for ; Wed, 22 Mar 2023 14:42:37 +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=1679496157; 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=t8EdpSOR7gB7tHIa8qLJOlIbBDiJA4DBdRLtFPbi3Eg=; b=hk5OYk3IWdUJvyI0FGnEZ0DIyV1tw0W65+PH+6Hfq04XGqguRb88ICIwhOGEYIyz3VWiwd VqS9iX9CPn87EC6naiPMZyHbHh5RF6NPZsqijUkX4WogmjTX6CPaR0kav59sACoS3TNZk9 BkLAMYemo4vsvSc4KcM0B1EVa7qrhOVT+p/0mRwNKE3Skz7S1FWXfJLTyAWUYmP/4fh//k mNXoL9dhWz3WUg0qI+Rw5s8htW10un3xsaHgr1yrn7s6XOBfWICLvFn0WP1ld88f8djT3C rjqU9foFd4J3IcWKG+i2UIWYz6QrZMAbFi+uJ7N/eM4/+BG4vSgWXmfY5c3gzQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679496157; a=rsa-sha256; cv=none; b=QKwBbh+ipw9he4d7aFFfwvo4jgxp7YGkc7FUdzqdo926e7s88xqesuDcM3gcx83QEdxBGV ARYRpz//iAXntNvFaAPeHZsF3w9z9CtHxmzDUBMblNBKYZBrxS2zGtcspZuPKmoH+jqglt luROx7tKir93nyeBZkwnz82P7FyiSud4CmOskyWLMpUElsqfSDQgqwRI3UMKBGXcV+FK1C dc65CZNKAFiB+g1KJd5s4RjV/1+Lesh3x5GyWVgbQhcEJ5d8iPbAbgY5JxXWYLm6Fji7gZ dKitV7V7zi9VjjBjHobtMOE74qQh2Q4Uy9+/dDoA9j1bJ6TvLIZK0jyH6xafhw== 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 4PhWR15dMszxX7 for ; Wed, 22 Mar 2023 14:42:37 +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 32MEgbVp001188 for ; Wed, 22 Mar 2023 14:42:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 32MEgb9I001187 for bugs@FreeBSD.org; Wed, 22 Mar 2023 14:42:37 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 270393] hybrid ISO images report broken partition table Date: Wed, 22 Mar 2023 14:42:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@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: 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=3D270393 --- Comment #1 from Ed Maste --- They hybrid ISOs are created by copying the first 32K from a GPT image into= the output image, overwriting the iso9660 system area: 113 # Create a GPT image containing the partitions we need for hybrid boot. 114 hybridfilename=3D$(mktemp /tmp/hybrid.img.XXXXXX) 115 if [ "$(uname -s)" =3D "Linux" ]; then 116 imgsize=3D`stat -c %s "$NAME"` 117 else 118 imgsize=3D`stat -f %z "$NAME"` 119 fi 120 $MKIMG -s gpt \ 121 --capacity $imgsize \ 122 -b "$BASEBITSDIR/boot/pmbr" \ 123 -p freebsd-boot:=3D"$BASEBITSDIR/boot/isoboot" \ 124 $espparam \ 125 -o $hybridfilename 126 127 # Drop the PMBR, GPT, and boot code into the System Area of= the ISO. 128 dd if=3D$hybridfilename of=3D"$NAME" bs=3D32k count=3D1 con= v=3Dnotrunc 129 rm -f $hybridfilename This completely ignores the secondary GPT. We need to copy it as well, enlarging the original ISO image if necessary. --=20 You are receiving this mail because: You are the assignee for the bug.=