aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2016-06-04 12:43:44 -0400
committerAnthony G. Basile <blueness@gentoo.org>2016-06-04 12:52:15 -0400
commit5fd2d5edd3c4c1e99687beb9acc130bab162866b (patch)
tree24da12b7ea04ec301dcd3a36680e6f9bfc9a8e2b
parenttargets/support/chroot-functions.sh: remove machine-id for systemd stages (diff)
downloadcatalyst-5fd2d5ed.tar.gz
catalyst-5fd2d5ed.tar.bz2
catalyst-5fd2d5ed.zip
stage1-preclean-chroot.sh: export ROOT=/tmp/stage1root for setup_gcc()
setup_gcc() calls gcc-config to select a particular gcc profile. At stage1 this needs to be done in the /tmp/stage1root chroot. gcc-config looks for ROOT to choose the root directory in which to make the selection. If we don't export ROOT, then setup_gcc is ineffective. X-Gentoo-Bug: 584234 X-Gentoo-Bug-Url: https://bugs.gentoo.org/show_bug.cgi?id=584234 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-rwxr-xr-xtargets/stage1/stage1-preclean-chroot.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/targets/stage1/stage1-preclean-chroot.sh b/targets/stage1/stage1-preclean-chroot.sh
index a80fc92e..dc67521c 100755
--- a/targets/stage1/stage1-preclean-chroot.sh
+++ b/targets/stage1/stage1-preclean-chroot.sh
@@ -1,5 +1,6 @@
#!/bin/bash
+export ROOT=/tmp/stage1root
export RUN_DEFAULT_FUNCS="no"
source /tmp/chroot-functions.sh
@@ -8,8 +9,6 @@ update_env_settings
show_debug
# Now, some finishing touches to initialize gcc-config....
-unset ROOT
-
setup_gcc
setup_binutils