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 89A7F158087 for ; Mon, 17 Jan 2022 14:44:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 94FC72BC029; Mon, 17 Jan 2022 14:44:11 +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 54D222BC029 for ; Mon, 17 Jan 2022 14:44:11 +0000 (UTC) Received: (nullmailer pid 1292853 invoked by uid 1000); Mon, 17 Jan 2022 14:44:01 -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:55 +0100 Message-Id: <20220117144355.1292840-2-dilfridge@gentoo.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220117144355.1292840-1-dilfridge@gentoo.org> References: <20220117144355.1292840-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: 36b7e83b-fe68-4d2c-b1c0-a015c0c788c7 X-Archives-Hash: 9262408a0b6425eb2c9eb09a911976ac Signed-off-by: Andreas K. Hüttel --- targets/stage1/chroot.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/targets/stage1/chroot.sh b/targets/stage1/chroot.sh index 08b9da46..67b06986 100755 --- a/targets/stage1/chroot.sh +++ b/targets/stage1/chroot.sh @@ -59,6 +59,11 @@ fi export ROOT="${clst_root_path}" mkdir -p "$ROOT" +# Set up /run and its contents inside stage1root, see bug 816303 +mkdir "${ROOT}/run" +mount -t tmpfs stage1run "${ROOT}/run" || die +update_tmpfiles + ## START BUILD # First, we drop in a known-good baselayout [ -e ${clst_make_conf} ] && echo "USE=\"${USE} -build\"" >> ${clst_make_conf} @@ -104,3 +109,6 @@ done # Clear USE [ -e ${clst_make_conf} ] && sed -i -e "/^CATALYST_USE/d" ${clst_make_conf} [ -e ${clst_make_conf} ] && sed -i -e "/^USE=\"/s/\${CATALYST_USE} ${USE} ${BOOTSTRAP_USE}//" ${clst_make_conf} + +# Remove run tmpfs again, bug 816303 +umount "${ROOT}/run" || die -- 2.34.1