diff options
author | V3n3RiX <venerix@rogentos.ro> | 2016-04-17 12:48:50 +0100 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2016-04-17 12:48:50 +0100 |
commit | d4d566b85fb34ca4f57fee06c5f4b52bb675d687 (patch) | |
tree | d32d4d11e63a8c4184a69eab2fb065717b34a33e /build | |
parent | 90c33e09c1e1868b80f3594475e90c1ea765c99e (diff) |
allow argent version of vasile to be installed side by side
Diffstat (limited to 'build')
-rwxr-xr-x | build | 40 |
1 files changed, 40 insertions, 0 deletions
@@ -0,0 +1,40 @@ +#!/usr/bin/env bash + +# Vasile needs root privileges and a proper kernel to run + +kernelconfig +checkroot + +chrootpreparex64 () { + # check our environment for sanity + # if safe, trigger start && break the loop to build packages + # else trigger stop && cleanup && check again + while : true ; do + if [[ ! -d "$rodir" && ! -d "$rwdir" && ! -d "$workdir" && ! -d "$overlaydir" ]] ; then + for i in "$rodir" "$rwdir" "$workdir" "$overlaydir" ; do + mkdir "$i" + done + chrootstartx64 + break + elif [[ -d "$rodir" && -d "$rwdir" && -d "$workdir" && -d "$overlaydir" ]] ; then + chrootstop + for i in "$rodir" "$rwdir" "$workdir" "$overlaydir" ; do + rm -rf "$i" + done + continue + fi + done +} + +main () { + chrootchecksumx64 + chrootpreparex64 + chrootoverlaysx64 + chrootbuildsystemx64 + chrootbuildx64 + chrootx64 + chrootstop +} + +main +exit 0 |