From nobody Wed Nov 11 16:02:46 2026 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 4jPpFg09fFz70PDj for ; Wed, 11 Nov 2026 16:02:47 +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 4jPpFf6h8Yz4ZMt for ; Wed, 11 Nov 2026 16:02:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794412966; 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=Y1nZLmjgDLVxNp8GX/kP4vfrbjMIEWT3sDQLSDjwY7s=; b=yoKsfieUW5S5lD5I2RvkceW5NHw2ncwIjzHWyGYd0pfBrbiQyWg4wsHK2WzZqs0/XqtZhW m67oUr95+p2vFfLDZljLpLyu8wbBuSIySrhi93JbB1bw9gvcfXGR0/HR32/EUzpsrnxm2g U5hCdeSgVzDH5y4Te5NSv1Ce/7UtIqVNvUbvfTg1QkZFavFSc0JzwF80KoFFgoC5q3y/5X ekbY1++BJ7xP9PDgj61DwsJ6kljZGAbnZCMecAkpPIuKmznMSnYCaZj7Nh9otm6R422cvi FpkZKRda6Y+K+eZHE8aar0enzFdosytlf37ijWJN3FmkUSGO5FOg2YUHroiCxA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794412966; b=S7IRDkJV5gfUof1oCTj2vXg/o9VNbBbY8TZZHVs3jjPZcPO7aSOI8Ws44I3JFPp3HimpWH +5ANkERPfzOAGuMqFFKX/Xy98DH/KvhrAbqR7/kjKgeZtjwdLGNHabXELM37QOoYn9kky0 IPVYfD/u7PgJM59iIPjbiW1EY96n/qIIg/3jd5ypwsmiqKd4B9CnLfFuUiHxdsWanXlvd5 DjFGWTq7qwq1QwEwzK/tAQPxOaq/TZf2ydhjY+BiA0pCqcBm33V9gPTf7tNS+348aka2Tr np1dZhytqXKgMMGjprxiJ3zb25vIDn8rrkObP5PxsABBAbG5SoFfti6Ti4nXeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794412966; 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=Y1nZLmjgDLVxNp8GX/kP4vfrbjMIEWT3sDQLSDjwY7s=; b=QhykyOhdLrj1XSgbyyGJuiO87njNlnAEmEpfwiVi6kryOLEuL1uWMlZUDKEbfFb/ToHMZs YKxKxDupbpjWHSeSiE/TmJX3wQSNN7SNMw2RjBcwM9qSTekjyDcxY/3e9Za4t6aFEImIH0 VGDuqmIk/6Ig8xfSr3jM+DB4vIzPNBQiZKA8DHZOp9Lk+UbcZnYP+jF0l4yJkNZsUD7oRm fWVrrO2ouaUsn6jJB887CLC6ogCdhwUCfdgC1X4tS5reBJlvD/9xnmCCqYhzn1yOvzehn5 LLYczwGdHBRYJ7D2k1kRfZqSaxtuUyIDQitx2QxvIfPnnTbeAyVFsXdUgXv5QA== 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 4jPpFf6M1hzLkx for ; Wed, 11 Nov 2026 16:02:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 18799 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 11 Nov 2026 16:02:46 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Colin Percival Subject: git: f3555a0e240a - stable/15 - bsdinstall: Set TMPDIR in pkgbase install List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches 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/stable/15 X-Git-Reftype: branch X-Git-Commit: f3555a0e240ae2b26fdf0db2e3f68ec6846bbb58 Auto-Submitted: auto-generated Date: Wed, 11 Nov 2026 16:02:46 +0000 Message-Id: <6af491a6.18799.2f57659e@gitrepo.freebsd.org> The branch stable/15 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=f3555a0e240ae2b26fdf0db2e3f68ec6846bbb58 commit f3555a0e240ae2b26fdf0db2e3f68ec6846bbb58 Author: Colin Percival AuthorDate: 2026-11-10 02:34:43 +0000 Commit: Colin Percival CommitDate: 2026-11-11 16:02:37 +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 (cherry picked from commit a7163bd76986282fdcb059b91301d3214da49642) --- 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 2c7d6bcae904..b872e9ad8d67 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