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


Reply via email to