summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2015-06-30 22:56:41 +0100
committerV3n3RiX <venerix@rogentos.ro>2015-06-30 22:56:41 +0100
commita959faa8b466a5f21aa80a79d66b9533edf13eb0 (patch)
treec4e9c2bc72c9dfde0c129dd5896dd5d6ee17b38a
parentc92e66d74c049eadafaa3d855aeb1be241de92d7 (diff)
separate overlay injection from buildsystem injection
-rwxr-xr-xvasile37
1 files changed, 22 insertions, 15 deletions
diff --git a/vasile b/vasile
index 8f4b98a..af7e425 100755
--- a/vasile
+++ b/vasile
@@ -146,19 +146,31 @@ envkogaionchroot() {
fi
}
-envkogaionbuildsystem() {
- # since squashed chroot is barebones, we need to set it up
- # add our overlays && set up our buildsystem
+envkogaionoverlays() {
+ # inject our overlays into squashfs + overlayfs chroot
if [[ "$(uname -m)" = "x86_64" ]] ; then
- export local envkogaionmakeconf="ln -sf /opt/build/conf/intel/portage/make.conf.amd64 /etc/portage/make.conf"
- export local envkogaionprofile="eselect profile set 1"
- echo "Adding Kogaion Linux Main Overlay"
+ echo "Injecting Kogaion Linux Main Overlay into x86_64 environment"
sleep 1
chroot "$overlaydir" su - "$envkogaionuser" -c "$envkogaionoverlay"
- echo "Adding Kogaion Linux Desktop Overlay"
+ echo "Injecting Kogaion Linux Desktop Overlay into x86_64 environment"
sleep 1
chroot "$overlaydir" su - "$envkogaionuser" -c "$envkogaiondesktopoverlay"
- echo "Adding Kogaion Linux X86_64 Buildsystem && Setting up Portage && Setting up make.conf"
+ elif [[ "$(uname -m)" = "i686" ]] ; then
+ echo "Injecting Kogaion Linux Main Overlay into i686 environment"
+ sleep 1
+ linux32 chroot "$overlaydir" su - "$envkogaionuser" -c "$envkogaionoverlay"
+ echo "Injecting Kogaion Linux Desktop Overlay into i686 environment"
+ linux32 chroot "$overlaydir" su - "$envkogaionuser" -c "$envkogaiondesktopoverlay"
+ fi
+}
+
+
+envkogaionbuildsystem() {
+ # inject our buildsystem into squashfs + overlayfs chroot
+ if [[ "$(uname -m)" = "x86_64" ]] ; then
+ export local envkogaionmakeconf="ln -sf /opt/build/conf/intel/portage/make.conf.amd64 /etc/portage/make.conf"
+ export local envkogaionprofile="eselect profile set 1"
+ echo "Injecting Kogaion Linux X86_64 Buildsystem && Setting up Portage && Setting up make.conf"
echo ""
sleep 1
for cmd in "$envkogaionbuildgit" "$envkogaionportageconfig" "$envkogaionmakeconf" "$envkogaionprofile" "$envkogaionenvupdate" ; do
@@ -167,13 +179,7 @@ envkogaionbuildsystem() {
elif [[ "$(uname -m)" = "i686" ]] ; then
export local envkogaionmakeconf="ln -sf /opt/build/conf/intel/portage/make.conf.x86 /etc/portage/make.conf"
export local envkogaionprofile="eselect profile set 1"
- echo "Adding Kogaion Linux Main Overlay"
- sleep 1
- linux32 chroot "$overlaydir" su - "$envkogaionuser" -c "$envkogaionoverlay"
- echo "Adding Kogaion Linux Desktop Overlay"
- sleep 1
- linux32 chroot "$overlaydir" su - "$envkogaionuser" -c "$envkogaiondesktopoverlay"
- echo "Adding Kogaion Linux i686 Buildsystem && Setting up Portage && Setting up make.conf"
+ echo "Injecting Kogaion Linux i686 Buildsystem && Setting up Portage && Setting up make.conf"
echo ""
sleep 1
for cmd in "$envkogaionbuildgit" "$envkogaionportageconfig" "$envkogaionmakeconf" "$envkogaionprofile" "$envkogaionenvupdate" ; do
@@ -208,6 +214,7 @@ main () {
if envcheckroot ; then
envkogaionsquashfsintegrity
envkogaionprepare
+ envkogaionoverlays
envkogaionbuildsystem
envkogaionbuild
envkogaionchroot