From nobody Tue Nov 10 19:36:18 2026 X-Original-To: dev-commits-src-main@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 4jPH2V3Qshz6vKXH for ; Tue, 10 Nov 2026 19:36:18 +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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jPH2V18x9z3H14 for ; Tue, 10 Nov 2026 19:36:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794339378; 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=Mu33bfv7z8HL7dGhot+cwcaohkqw/dl2Yi4Mv+XGFnA=; b=q2BH8yLhkh7v/eh14EX2Zlv9GzvU0GilvSXwIJ6sKnfVaRJA74V2nHFy6/QggizCDfG7dB B9rcFi81PNYRjHRhFlW5R68P/Y+rfBBCdy7LTDIf+vi80h6+woYU5gkDOqn/Tj0AL0FRp3 Mw7k7PfzLDr2jPn07ZhphzWsv71C2eBZg9VAaXqA+LBKxr6xaXhQrgzcUPgLiuGWBF6rYE DbVmqx/plr9C01J+IcHFQWi4u7nKGOjHPrTbBYaeq1dsN0+/DdDNGG8k+RvJh9u+p476a3 HPF1YqYFLkhcmGPNuYM1NWz4MpNhwrwRu+OAR4Y5ebNbdnew8K5Kb2cgmWP2lg== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794339378; b=MyYHMRlNhsaw+VxHMPBaIslOV5hmR/62puYwGIJleoiYgjaQnZjh9JWcsK73f2kfmsGAdV Hp6s+l/wY9Y39ukKLizbRgkeOP0+jli+z0kLvwhqyySlR7KhNNx+UYvbYTVoIEsf1zbvv3 RcIXjidsIRZU4yAQPB5DAA+YK93a3w6THe4wHmrT3KFcJhNNuGh76mmBedSIvhgoRZziCI KL9yzrMgAQu/c3eD4sVacmrO/JrdTjZNXsL5c+qSCotKVBse8KsulUMsMspTXQTOojpzeg zzoNZFdLlFA4wrZSYTteHAh2usbxYqX0xtB8cAyCroVQuuTh9+JZ1hnM+wApGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794339378; 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=Mu33bfv7z8HL7dGhot+cwcaohkqw/dl2Yi4Mv+XGFnA=; b=dUSAM65vBj7vrdKNkLsjN5KiRywA1SCVR0hL+8yS3QXMN1BLF31WanNppmQmOV/ueG3fat gHyFcv4ehj5HQYWyYV/RuyKeUeyZKPPqas/UHwc/+Br9o4OWImQwjxAsNN5VSYxP4OCCq4 j/U1HOde6Ug05VAaQkvB5kJkskNBvDDuy4aW9Wn+6kYmMO+Bz0/21AUJFCCbuwiG6XJxPM hsb1Sax+5FyZBoUq8YXP2Mk+xpoedFenNt8ag8nT1JlpDtZRSZS4+O6gxp1bHNCNhH5wM5 7Uu2dgAHEc3i4OPQLqZaGF2XY31vSicOzDon3M/NW4xpl4G3ycAdO0fft5qKPA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jPH2V0ZR6zjX9 for ; Tue, 10 Nov 2026 19:36:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1f79d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 10 Nov 2026 19:36:18 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Colin Percival Subject: git: a7163bd76986 - main - bsdinstall: Set TMPDIR in pkgbase install List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main X-BeenThere: dev-commits-src-main@freebsd.org List-Id: Commit messages for the main branch of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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: a7163bd76986282fdcb059b91301d3214da49642 Auto-Submitted: auto-generated Date: Tue, 10 Nov 2026 19:36:18 +0000 Message-Id: <6af37232.1f79d.7480dd64@gitrepo.freebsd.org> The branch main has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=a7163bd76986282fdcb059b91301d3214da49642 commit a7163bd76986282fdcb059b91301d3214da49642 Author: Colin Percival AuthorDate: 2026-11-10 02:34:43 +0000 Commit: Colin Percival CommitDate: 2026-11-10 19:36:02 +0000 bsdinstall: Set TMPDIR in pkgbase install The FreeBSD-base repository (aka "pkgbase") is now created using 'pkg repo -l' in order to make 'pkg rwhich' work. Unfortunately this makes the data.pkg file considerably larger, and FreeBSD 15.2-BETA1 fails to install using a remote repository since the installer has a small /tmp (20 MB). Run pkg commands with 'env TMPDIR=/tmp' since the /tmp in the system being installed is considerably larger than the tmpfs which the installer runs with. Create /tmp first so we can ensure it has 1777 permissions. Reviewed by: bapt MFC after: 1 day Differential Revision: https://reviews.freebsd.org/D61380 --- usr.sbin/bsdinstall/scripts/pkgbase.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/usr.sbin/bsdinstall/scripts/pkgbase.in b/usr.sbin/bsdinstall/scripts/pkgbase.in index 11b6c42d1bc0..596d716df5c7 100755 --- a/usr.sbin/bsdinstall/scripts/pkgbase.in +++ b/usr.sbin/bsdinstall/scripts/pkgbase.in @@ -345,10 +345,15 @@ local function pkgbase() assert(os.execute("cp -R /usr/share/keys/* " .. chroot .. "/usr/share/keys/")) end + -- Create /tmp and point at it with TMPDIR; otherwise pkg uses + -- /tmp which is a small tmpfs in the installer environment and fails + -- to extract data.pkg. -- We must use --repo-conf-dir rather than -o REPOS_DIR here as the latter -- is interpreted relative to the --rootdir. BSDINSTALL_PKG_REPOS_DIR must -- be allowed to point to a path outside the chroot. - local pkg = "pkg --rootdir " .. chroot .. + assert(os.execute("mkdir -p " .. chroot .. "/tmp")) + assert(os.execute("chmod 1777 " .. chroot .. "/tmp")) + local pkg = "env TMPDIR=" .. chroot .. "/tmp pkg --rootdir " .. chroot .. " --repo-conf-dir " .. repos_dir .. " -o IGNORE_OSVERSION=yes " while not os.execute(pkg .. "update") do