From nobody Fri Apr 12 17:58:16 2024 X-Original-To: dev-commits-src-all@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 4VGPS84jcQz5HpS7; Fri, 12 Apr 2024 17:58:16 +0000 (UTC) (envelope-from git@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 4VGPS84Bc7z4F1w; Fri, 12 Apr 2024 17:58:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712944696; 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; bh=oQSKXEffL+WsL36uPoADXmsBZU7oBT8CNbSH4+Tts7E=; b=Y4QhRW44anzcLarjjhYVss4qnioboByAbQx3C6FKVPOIdN6ND5Qbis9KoaY1X/yPlDPAyH LqbcMg4WyShTQsLNDNs6F6/w67+kUBZMmr3KsPepFqjRQFyno2nbDufLEjQ48nai627gJD O+Ew1JZjzj2BFHG7AmQMj/+nGoZwqTLcpNuYeYj9GHU5RpKwco2QeQfQGXplTcsQQK+uqv zO5dc7DP+C4B8rbd+A4DdrlQTzYxB/kvsekGmGkkOyLJtfhjY+9NY7i2jI3O0lkVH2DqZY Na1lggXUL/egIG17ITcqbfLqhBfGFXjodiJQQcpkIevKC+T9kQdVPX8cutKWRw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712944696; a=rsa-sha256; cv=none; b=smnSFpGPq8XK9RQhEP40qWmjg8iycwqoDssQpjpgHiNw/MgSJuw9ufNWgRd5+ZMlbEcbQm PsZYjtesBn0pNjas3Njt3k4a3AsDCUNdaIS8/aANKPjbTMoGaggOni1mEmziYkpNFfl1PT XI5XZaf6UJrKSJVEgOmd/80+1k9wE7LtFWbhEgQE5wOsVWvbrsNvFZIjDpYcY7WF30VfsX p9QfDLfDV7bb2zrc+x43rAj1N8xemh5dy61L4Y7pjJ5VEaeJtUo35jjxRLihAgLVWAITS+ OrC0ass0zeokLtcePo3jSX0+qE1Yp7OAP7e4YZp5ulxZFNyI1MP5sTky+qC0Jg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712944696; 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; bh=oQSKXEffL+WsL36uPoADXmsBZU7oBT8CNbSH4+Tts7E=; b=KR4OdwkA4XIKrHxK2Av7RqQSulXjWm/3iOwk+mSL7Hamabh2pou6Dh1BWrqO19JzNocMaf ClM4QRrpWvoU+TnTXXcNamoMXxMB49DE3exBHiPJT+WuKYaKqsWntcCGj6caXOQwxtiLZO 216H3PAoxXsck95Ex7E+D8hk01FYHkoxInUWFc9BK2OaEMmv9IaiLWybFRN1sVwreZ1qOP 9prJ9IYbPPcER6ZqFR+fTJws9NBZV02Ih7M8Eptp5Rt8/cpkUnDkD6KDQG+EqgeaNiBJ2Y YyKGiAn/YZMtg3tZm5x6Vh2gk7z7W8XcZ0F2wdrSfUREqZjhpeI5xDLwamZX4w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4VGPS83pD7z102P; Fri, 12 Apr 2024 17:58:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43CHwGjg043884; Fri, 12 Apr 2024 17:58:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43CHwG1u043881; Fri, 12 Apr 2024 17:58:16 GMT (envelope-from git) Date: Fri, 12 Apr 2024 17:58:16 GMT Message-Id: <202404121758.43CHwG1u043881@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Colin Percival Subject: git: 6c3e01bf8578 - main - release: Randomize powerpc boot block file name List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cperciva X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6c3e01bf8578de54abc019832d799de80da7378c Auto-Submitted: auto-generated The branch main has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=6c3e01bf8578de54abc019832d799de80da7378c commit 6c3e01bf8578de54abc019832d799de80da7378c Author: Colin Percival AuthorDate: 2024-04-12 17:42:05 +0000 Commit: Colin Percival CommitDate: 2024-04-12 17:58:09 +0000 release: Randomize powerpc boot block file name With parallel builds enabled, we can end up building multiple ISOs at once, which causes problems if mkisoimages.sh uses a consistent file name "/tmp/hfs-boot-block". MFC after: 3 days --- release/powerpc/mkisoimages.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/release/powerpc/mkisoimages.sh b/release/powerpc/mkisoimages.sh index 8a802e6c62ae..e030ee41691c 100644 --- a/release/powerpc/mkisoimages.sh +++ b/release/powerpc/mkisoimages.sh @@ -67,14 +67,15 @@ fi if [ -n "$bootable" ]; then echo "Building bootable disc" + BOOTBLOCK=$(mktemp /tmp/hfs-boot-block.XXXXXX) + # Apple boot code - uudecode -o /tmp/hfs-boot-block.bz2 "`dirname "$0"`/hfs-boot.bz2.uu" - bzip2 -d /tmp/hfs-boot-block.bz2 - OFFSET=$(hd /tmp/hfs-boot-block | grep 'Loader START' | cut -f 1 -d ' ') + uudecode "`dirname "$0"`/hfs-boot.bz2.uu" | bunzip2 > $BOOTBLOCK + OFFSET=$(hd $BOOTBLOCK | grep 'Loader START' | cut -f 1 -d ' ') OFFSET=0x$(echo 0x$OFFSET | awk '{printf("%x\n",$1/512);}') - dd if="$BASEBITSDIR/boot/loader" of=/tmp/hfs-boot-block seek=$OFFSET conv=notrunc + dd if="$BASEBITSDIR/boot/loader" of=$BOOTBLOCK seek=$OFFSET conv=notrunc - bootable="-o bootimage=macppc;/tmp/hfs-boot-block -o no-emul-boot" + bootable="-o bootimage=macppc;$BOOTBLOCK -o no-emul-boot" # pSeries/PAPR boot code mkdir -p "$BASEBITSDIR/ppc/chrp" @@ -108,7 +109,9 @@ if [ -n "${METALOG}" ]; then fi makefs -D -N ${BASEBITSDIR}/etc -t cd9660 $bootable -o rockridge -o label="$LABEL" -o publisher="$publisher" "$NAME" "$MAKEFSARG" "$@" rm -f "$BASEBITSDIR/etc/fstab" -rm -f /tmp/hfs-boot-block +if [ n "$bootable" ]; then + rm $BOOTBLOCK +fi rm -rf "$BASEBITSDIR/ppc" if [ -n "${METALOG}" ]; then rm ${metalogfilename}