=== removed file 'conf/chroot.sh-amd64' --- conf/chroot.sh-amd64 2011-11-25 03:44:51 +0000 +++ conf/chroot.sh-amd64 1970-01-01 00:00:00 +0000 @@ -1,73 +0,0 @@ -#!/bin/bash -SCRIPT=$(readlink -f $0) -DIR="`dirname "$SCRIPT"`" -EXE="${1:-$SHELL}" - -cd "$DIR" - -declare -A NEW_ENV -NEW_ENV[HOST]="`basename $DIR`" -NEW_ENV[TERM]="${TERM%-256color}" -NEW_ENV[HOME]=/root/ -NEW_ENV[PATH]="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin" - -do_chroot() { - local -a environ - for key in "${!NEW_ENV[@]}" - do - environ+=( "${key}=${NEW_ENV[$key]}" ) - done - env -i - "${environ[@]}" setarch x86_64 chroot . "$@" -} - -UMOUNT="" - -trymount() { - for DST in "$@"; do true; done - if mount | grep -q "$DIR/$DST" - then - echo "$DST already mounted" - else - echo "mounting $DST" - mount "$@" - UMOUNT="$DST $UMOUNT" - fi -} - -#set -x - -#trymount --bind {/,}dev -mkdir -v -p dev/{pts,shm} -trymount -t devpts devpts dev/pts -trymount -t tmpfs tmpfs dev/shm - -trymount -t proc none proc - -[[ -d usr/portage ]] && \ -trymount --bind {/,}usr/portage -[[ -d var/portage/distfiles ]] && \ -trymount --bind {/,}var/portage/distfiles - -trymount -t tmpfs -o size=3G tmpfs var/tmp -trymount -t tmpfs tmpfs tmp - -cp -v /etc/resolv.conf etc/ -cat proc/mounts >etc/mtab - - -#if [ -n "$DISPLAY" ] && [ -x ./usr/bin/xauth ] -#then -# echo "copying over X Authentication for $DISPLAY" -# xauth extract - $DISPLAY | do_chroot /bin/bash -x -c '/usr/bin/xauth merge -' -# NEW_ENV[DISPLAY]="127.0.0.1${DISPLAY}" -#fi - -do_chroot "$EXE" -RET=$? - -for M in $UMOUNT -do - echo "unmouting $M" - umount "$M" -done -exit $? === removed directory 'conf/gentoo_scripts' === removed file 'conf/gentoo_scripts/rebuild_stage3.sh' --- conf/gentoo_scripts/rebuild_stage3.sh 2011-11-25 03:44:51 +0000 +++ conf/gentoo_scripts/rebuild_stage3.sh 1970-01-01 00:00:00 +0000 @@ -1,13 +0,0 @@ -#!/bin/bash -set -x -env-update && \ -source /etc/profile && \ -emerge -q portage && \ -emerge -qu gcc && \ -gcc-config `gcc-config -l | awk '{p=$2} END{print p}'` && \ -source /etc/profile && \ -emerge -qe @world && \ -emerge -qn gentoolkit && \ -emerge --depclean && \ -emerge -q @preserved-rebuild && \ -revdep-rebuild