2014-12-19 14:13:30 -05:00
|
|
|
function holla_atcha_boi {
|
2014-12-20 12:41:14 -05:00
|
|
|
|
|
|
|
if [[ "${I_AM_A_RACECAR}" == "y" ]];
|
|
|
|
then
|
|
|
|
RACECAR_CHK='nice -n -19 '
|
|
|
|
else
|
|
|
|
RACECAR_CHK=""
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2014-12-19 14:13:30 -05:00
|
|
|
# Do we have an existing chroot set up yet? If not, create.
|
|
|
|
if [[ ! -d "root.x86_64/root" || ! -d "root.i686/root" ]];
|
|
|
|
then
|
|
|
|
echo "No existing chroot environment found. Creating..."
|
|
|
|
rm -f ${LOCKFILE}
|
2014-12-20 12:41:14 -05:00
|
|
|
${RACECAR_CHK} ${BASEDIR}/lib/mk.chroot.sh
|
2014-12-19 14:13:30 -05:00
|
|
|
touch ${LOCKFILE}
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|