summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2020-10-27 08:42:40 +0100
committerFabian Groffen <grobian@gentoo.org>2020-10-27 08:42:40 +0100
commit6c17f821de91c518556ea345a1a88abbe8706bc3 (patch)
treee6c85d186f3d65fed0b1f40e7354d21729040311
parentscripts/bootstrap-prefix: don't pull in python2 for clang any more, bug #751412 (diff)
downloadprefix-6c17f821de91c518556ea345a1a88abbe8706bc3.tar.gz
prefix-6c17f821de91c518556ea345a1a88abbe8706bc3.tar.bz2
prefix-6c17f821de91c518556ea345a1a88abbe8706bc3.zip
scripts/bootstrap-prefix: pre-create portroot
For some reason linking the portage tree in the tmp image fails, so ensure whilst setting up all other dirs in /tmp that also the portroot is created. Bug: https://bugs.gentoo.org/751421 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rwxr-xr-xscripts/bootstrap-prefix.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index a3ada85d3b..46a5ec10c4 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -1349,6 +1349,8 @@ bootstrap_stage1() {
# best.
# See comments in do_tree().
+ local portroot=${PORTDIR%/*}
+ mkdir -p "${ROOT}"/tmp/${portroot#${ROOT}/}
for x in lib sbin bin; do
mkdir -p "${ROOT}"/tmp/usr/${x}
[[ -e ${ROOT}/tmp/${x} ]] || ( cd "${ROOT}"/tmp && ln -s usr/${x} )