Signed-off-by: Andreas K. Hüttel <dilfri...@gentoo.org>
---
 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


Reply via email to