From nobody Fri Jan 10 14:24:31 2025 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 4YV3nW2gX9z5kQKn; Fri, 10 Jan 2025 14:24:31 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YV3nW23S0z4r2H; Fri, 10 Jan 2025 14:24:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736519071; 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=FHoncOpMeMCcpD/yJzi102h8YYsT2bykF7xEn6KKLok=; b=AEaz10v+l2EHi7KO94sonHIWqz+B88dUzsA7LsXlhPhXW4k1LNmXMqQ66UxRBQ24LS8xta EouROHQ+fQgaI2XoI5KyboXKw6OAvkGY7Un1Bhpi4sZw3ifbbLcfJB71Dj3DPUl/Vtyc+H 3p6PvB2wGoXyFueKtX3VhBAds1YU2CCMwqnXXNfDzUhyNGZ9uX5hPzHlbbW/UKNEGhyZXk O4by4MLDg/wrb8/NUFhQRvSm2rA5XVs8QjSRc7LjioJF0Z5YMqPLxrA2oiCo+gQshfMpSc /vkranXxPRBS4pcwz7MUv+2eeHGTgomztbcuZl6t+LEF5CzPdtwB5Gbfh8CDGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736519071; 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=FHoncOpMeMCcpD/yJzi102h8YYsT2bykF7xEn6KKLok=; b=Y5PTNPVrCve04DOOpVc606l/+dxXjCEwrTiMwdaGWtEVEL+hwd7N0QMLFhH1RgCi7F1xUf eK5V87l1hNE/lvBaYEq+RQPQ6AiyTkL+luHkCJhe+9KEXOoCWy49EVhScQYlkyEqWEW1qR niDxSkvNKLFGDA0FD/eTzO5sftMM0mrpIWpYr0xz12nBETwfoB8wEgFwu+wsaMUUQCmMQO B4dEVzKSm7cwOYtZzDEmR+b4pJGxW76SOgQwgIt/vgra6JMChyMgrHrveviOTXgCmErBmf 2TQF7eYM44X4jWbYb3lb0cf3mxKBCexkhaRfBMjURjnb59cxFYtPluRmkp+Fxg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736519071; a=rsa-sha256; cv=none; b=DUaGo9NVlWr3sZpTAOKDQhxYyz5206UzMq801F7SrP/cXzWkwND4daRACFw9+S7YYeG9pv ihcZ1hWviwgS/YoBdSPKZFnGp+Eu0iSX9CuxbZEY/kEZzOse4SWSlSIw08GWAAD4j/SX8R eliaQ2En5lQEF27pxfsY+9Zkb38LtiJ177efMzbV7IamNeO6acceh9qkHZOjAh/0ShkW9O Ux7twRq/DeyD9lB867A4zXmWhuefzte6bize66W6XoStZpFMeoO1inh2JX530Ury7kIQnT bd+LnksGLjrF1hBE8X5yHB8z+3h2579J/djc2nEGD0Jvccm/WhN4FhYvdfM6Cg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YV3nW11xyz1Vq; Fri, 10 Jan 2025 14:24:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 50AEOVek081948; Fri, 10 Jan 2025 14:24:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50AEOVU0081945; Fri, 10 Jan 2025 14:24:31 GMT (envelope-from git) Date: Fri, 10 Jan 2025 14:24:31 GMT Message-Id: <202501101424.50AEOVU0081945@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Doug Rabson Subject: git: bc77aa7df733 - main - release: install etc files from the source tree, not the host 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 Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dfr X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bc77aa7df7339b166c0d6394526fe59dea89f4b1 Auto-Submitted: auto-generated The branch main has been updated by dfr: URL: https://cgit.FreeBSD.org/src/commit/?id=bc77aa7df7339b166c0d6394526fe59dea89f4b1 commit bc77aa7df7339b166c0d6394526fe59dea89f4b1 Author: Doug Rabson AuthorDate: 2024-12-23 10:19:27 +0000 Commit: Doug Rabson CommitDate: 2025-01-10 14:21:10 +0000 release: install etc files from the source tree, not the host Reviewed by: cperciva MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D48180 --- release/Makefile.oci | 2 ++ release/tools/oci-image-static.conf | 21 ++++++++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/release/Makefile.oci b/release/Makefile.oci index 461c95f49636..da35156c5a95 100644 --- a/release/Makefile.oci +++ b/release/Makefile.oci @@ -24,6 +24,8 @@ OCI_DEPS_minimal= container-image-dynamic.txz .for _IMG in ${OCI_IMAGES} OCI_TARGETS+= container-image-${_IMG}.txz container-image-${_IMG}.txz: ${OCI_DEPS_${_IMG}} + # Adjust PATH so that we run pwd_mkdb from the bootstrap tools + env PATH=${OBJTOP}/tmp/legacy/bin:${PATH:Q} \ sh ${.CURDIR}/scripts/make-oci-image.sh ${.CURDIR} ${REVISION} ${BRANCH} ${TARGET_ARCH} ${_IMG} skopeo copy \ containers-storage:localhost/freebsd${REVISION:R}-${_IMG}:latest \ diff --git a/release/tools/oci-image-static.conf b/release/tools/oci-image-static.conf index 27cfb3c6778c..552328e66f3c 100644 --- a/release/tools/oci-image-static.conf +++ b/release/tools/oci-image-static.conf @@ -7,17 +7,20 @@ OCI_BASE_IMAGE= oci_image_build() { - mtree -deU -p $m/ -f /etc/mtree/BSD.root.dist > /dev/null - mtree -deU -p $m/var -f /etc/mtree/BSD.var.dist > /dev/null - mtree -deU -p $m/usr -f /etc/mtree/BSD.usr.dist > /dev/null - mtree -deU -p $m/usr/include -f /etc/mtree/BSD.include.dist > /dev/null - mtree -deU -p $m/usr/lib -f /etc/mtree/BSD.debug.dist > /dev/null + local srcdir=${curdir}/.. + mtree -deU -p $m/ -f ${srcdir}/etc/mtree/BSD.root.dist > /dev/null + mtree -deU -p $m/var -f ${srcdir}/etc/mtree/BSD.var.dist > /dev/null + mtree -deU -p $m/usr -f ${srcdir}/etc/mtree/BSD.usr.dist > /dev/null + mtree -deU -p $m/usr/include -f ${srcdir}/etc/mtree/BSD.include.dist > /dev/null + mtree -deU -p $m/usr/lib -f ${srcdir}/etc/mtree/BSD.debug.dist > /dev/null install_packages ${abi} ${workdir} $m FreeBSD-caroot FreeBSD-zoneinfo - cp /etc/master.passwd $m/etc + cp ${srcdir}/etc/master.passwd $m/etc pwd_mkdb -p -d $m/etc $m/etc/master.passwd || return $? - cp /etc/group $m/etc || return $? - cp /etc/termcap.small $m/etc/termcap.small || return $? - cp /etc/termcap.small $m/usr/share/misc/termcap || return $? + cp ${srcdir}/etc/group $m/etc || return $? + # termcap.small is generated so we get it from OBJDIR - make sets our + # working directory to OBJDIR/release + cp ../etc/termcap/termcap.small $m/etc/termcap.small || return $? + cp ../etc/termcap/termcap.small $m/usr/share/misc/termcap || return $? env DESTDIR=$m /usr/sbin/certctl rehash # Generate a suitable repo config for pkgbase case ${branch} in