From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0473C158087 for ; Mon, 17 Jan 2022 14:43:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EB1412BC010; Mon, 17 Jan 2022 14:43:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7B74C2BC010 for ; Mon, 17 Jan 2022 14:43:48 +0000 (UTC) Received: (nullmailer pid 1292820 invoked by uid 1000); Mon, 17 Jan 2022 14:43:40 -0000 From: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= To: gentoo-catalyst@lists.gentoo.org Cc: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= Subject: [gentoo-catalyst] [PATCH 2/2] Make a proper /run (and more) also in stage1 /tmp/stage1root Date: Mon, 17 Jan 2022 15:43:30 +0100 Message-Id: <20220117144330.1292807-2-dilfridge@gentoo.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220117144330.1292807-1-dilfridge@gentoo.org> References: <20220117144330.1292807-1-dilfridge@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 0d1d23e0-eaf6-4387-957b-08ddf86a4227 X-Archives-Hash: 25dbf475c1dc447b1470b7384c164925 Signed-off-by: Andreas K. Hüttel --- targets/stage1/stage1-chroot.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/targets/stage1/stage1-chroot.sh b/targets/stage1/stage1-chroot.sh index 99539886..27389620 100755 --- a/targets/stage1/stage1-chroot.sh +++ b/targets/stage1/stage1-chroot.sh @@ -52,6 +52,11 @@ fi [ -e ${clst_make_conf} ] && ${clst_sed} -i -e "/^USE=\"${BINDIST} ${USE}\"/d" ${clst_make_conf} make_destpath /tmp/stage1root +# Set up /run and its contents inside stage1root, see bug 816303 +make_destpath /tmp/stage1root/run +mount -t tmpfs stage1run /tmp/stage1root/run || die +ROOT=/tmp/stage1root update_tmpfiles + ## START BUILD # First, we drop in a known-good baselayout [ -e ${clst_make_conf} ] && echo "USE=\"${USE} -build\"" >> ${clst_make_conf} @@ -97,3 +102,6 @@ done # Clear USE [ -e ${clst_make_conf} ] && ${clst_sed} -i -e "/^CATALYST_USE/d" ${clst_make_conf} [ -e ${clst_make_conf} ] && ${clst_sed} -i -e "/^USE=\"/s/\${CATALYST_USE} ${USE} ${BOOTSTRAP_USE}//" ${clst_make_conf} + +# Remove run tmpfs again, bug 816303 +umount /tmp/stage1root/run || die -- 2.34.1