commit:     6c17f821de91c518556ea345a1a88abbe8706bc3
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 27 07:42:40 2020 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue Oct 27 07:42:40 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=6c17f821

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 <AT> gentoo.org>

 scripts/bootstrap-prefix.sh | 2 ++
 1 file changed, 2 insertions(+)

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} )

Reply via email to