From 9a013c7e8a92566624320896baa1e232ce31d4b3 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 25 Nov 2018 22:06:26 +0000 Subject: make vasile use our new portage configuration layout --- src/backend/f_modeswitch.sh | 11 +++++------ 1 file 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 } -- cgit v1.2.3