summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-11-25 22:06:26 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-11-25 22:06:26 +0000
commit9a013c7e8a92566624320896baa1e232ce31d4b3 (patch)
tree5de04a0bdbc07b6295409b49383d4f99084c1571 /src
parent1ec93bf69be5d8966cddddf718e3534a749684fd (diff)
make vasile use our new portage configuration layout
Diffstat (limited to 'src')
-rw-r--r--src/backend/f_modeswitch.sh11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/backend/f_modeswitch.sh b/src/backend/f_modeswitch.sh
index 7d50d0d..a0accf1 100644
--- a/src/backend/f_modeswitch.sh
+++ b/src/backend/f_modeswitch.sh
@@ -50,12 +50,11 @@ getportcfgtree () {
popd > /dev/null 2>&1
}
-setmakeconf () {
+setportage () {
ln -sf "$jailportcfgsource" "$jailportcfgtarget"
- ln -sf "$jailportcfgtarget"/make.conf.amd64-generic "$jailportcfgtarget"/make.conf
}
-setmakeopts () {
+setjobs () {
einfo "I am setting portage to use $(getconf _NPROCESSORS_ONLN) jobs to compile packages"
# default MAKEOPTS value is -j64, but that's overkill for lower spec machines
# this will adjust MAKEOPTS to a value detected by $(getconf _NPROCESSORS_ONLN)
@@ -64,7 +63,7 @@ setmakeopts () {
}
setprofile () {
- eselect profile set default/linux/amd64/17.0/hardened
+ eselect profile set "default/linux/amd64/17.0/hardened"
env-update
. /etc/profile
}
@@ -84,7 +83,7 @@ setup () {
getmainporttree
getaddonporttree
getportcfgtree
- setmakeconf
- setmakeopts
+ setportage
+ setjobs
setprofile
}