<commit_before>echo boot local...

SRC="`df | grep -m 1 ' /mnt/sd[a-z][0-9]' | awk '{ print $6 }' | sed 's/\/var.*//'`"
MYBOOT2DOCKER=$SRC/myboot2docker

rm /tmp/tce/optional -rf
ln -s  $MYBOOT2DOCKER/tmp/tce/optional        /tmp/tce/optional
ln -s  $MYBOOT2DOCKER/home/docker/build       /home/docker/build
ln -s  $MYBOOT2DOCKER/home/docker/.zpreztorc  /home/docker/.zpreztorc
ln -s  $MYBOOT2DOCKER/home/docker/.zshrc      /home/docker/.zshrc
ln -s  $MYBOOT2DOCKER/home/docker/.zprezto    /home/docker/.zprezto
ln -sf $MYBOOT2DOCKER/home/docker/.zhistory   /home/docker/.zhistory
ln -s  /home/docker/.zprezto/runcoms/zlogin   /home/docker/.zlogin
ln -s  /home/docker/.zprezto/runcoms/zlogout  /home/docker/.zlogout
ln -s  /home/docker/.zprezto/runcoms/zprofile /home/docker/.zprofile
ln -s  /home/docker/.zprezto/runcoms/zshenv   /home/docker/.zshenv

ln -s  $MYBOOT2DOCKER/usr/local/share/zsh     /usr/local/share/zsh
ln -s  $MYBOOT2DOCKER/usr/local/bin/tmux      /usr/local/bin/tmux
ln -s  $MYBOOT2DOCKER/usr/local/lib/zsh       /usr/local/lib/zsh
ln -s  $MYBOOT2DOCKER/usr/local/bin/zsh       /usr/local/bin/zsh
ln -s  $MYBOOT2DOCKER/tools/uninstall.sh      /usr/local/bin/myboot2docker_uninstall

ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent-2.0.so.5.1.10           /usr/local/lib/libevent.so
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent-2.0.so.5.1.10           /usr/local/lib/libevent-2.0.so.5
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent-2.0.so.5.1.10           /usr/local/lib/libevent-2.0.so.5.1.10
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent.a                       /usr/local/lib/libevent.a
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent.la                      /usr/local/lib/libevent.la
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_core-2.0.so.5.1.10      /usr/local/lib/libevent_core.so
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_core-2.0.so.5.1.10      /usr/local/lib/libevent_core-2.0.so.5
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_core-2.0.so.5.1.10      /usr/local/lib/libevent_core-2.0.so.5.1.10
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_core.a                  /usr/local/lib/libevent_core.a
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_core.la                 /usr/local/lib/libevent_core.la
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_extra-2.0.so.5.1.10     /usr/local/lib/libevent_extra.so
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_extra-2.0.so.5.1.10     /usr/local/lib/libevent_extra-2.0.so.5
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_extra-2.0.so.5.1.10     /usr/local/lib/libevent_extra-2.0.so.5.1.10
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_extra.a                 /usr/local/lib/libevent_extra.a
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_extra.la                /usr/local/lib/libevent_extra.la
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_openssl-2.0.so.5.1.10   /usr/local/lib/libevent_openssl.so
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_openssl-2.0.so.5.1.10   /usr/local/lib/libevent_openssl-2.0.so.5
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_openssl-2.0.so.5.1.10   /usr/local/lib/libevent_openssl-2.0.so.5.1.10
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_openssl.a               /usr/local/lib/libevent_openssl.a
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_openssl.la              /usr/local/lib/libevent_openssl.la
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_pthreads-2.0.so.5.1.10  /usr/local/lib/libevent_pthreads.so
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_pthreads-2.0.so.5.1.10  /usr/local/lib/libevent_pthreads-2.0.so.5
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_pthreads-2.0.so.5.1.10  /usr/local/lib/libevent_pthreads-2.0.so.5.1.10
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_pthreads.a              /usr/local/lib/libevent_pthreads.a
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_pthreads.la             /usr/local/lib/libevent_pthreads.la

# MUSL=$MYBOOT2DOCKER/tmp/tcloop/musl
# ln -s $MUSL/lib/ld-musl-x86_64.so.1 /lib/ld-musl-x86_64.so.1

ldconfig -X  # reload - ldd cache (after creating simlink...)

which zsh | tee -a /etc/shells > /dev/null
sed -i "/$(cat /etc/sysconfig/tcuser)/    s#:[^:]\+\$#:$(which zsh)#" /etc/passwd<commit_msg>set ldconfig output dev/null<commit_after>echo boot local...

SRC="`df | grep -m 1 ' /mnt/sd[a-z][0-9]' | awk '{ print $6 }' | sed 's/\/var.*//'`"
MYBOOT2DOCKER=$SRC/myboot2docker

rm /tmp/tce/optional -rf
ln -s  $MYBOOT2DOCKER/tmp/tce/optional        /tmp/tce/optional
ln -s  $MYBOOT2DOCKER/home/docker/build       /home/docker/build
ln -s  $MYBOOT2DOCKER/home/docker/.zpreztorc  /home/docker/.zpreztorc
ln -s  $MYBOOT2DOCKER/home/docker/.zshrc      /home/docker/.zshrc
ln -s  $MYBOOT2DOCKER/home/docker/.zprezto    /home/docker/.zprezto
ln -sf $MYBOOT2DOCKER/home/docker/.zhistory   /home/docker/.zhistory
ln -s  /home/docker/.zprezto/runcoms/zlogin   /home/docker/.zlogin
ln -s  /home/docker/.zprezto/runcoms/zlogout  /home/docker/.zlogout
ln -s  /home/docker/.zprezto/runcoms/zprofile /home/docker/.zprofile
ln -s  /home/docker/.zprezto/runcoms/zshenv   /home/docker/.zshenv

ln -s  $MYBOOT2DOCKER/usr/local/share/zsh     /usr/local/share/zsh
ln -s  $MYBOOT2DOCKER/usr/local/bin/tmux      /usr/local/bin/tmux
ln -s  $MYBOOT2DOCKER/usr/local/lib/zsh       /usr/local/lib/zsh
ln -s  $MYBOOT2DOCKER/usr/local/bin/zsh       /usr/local/bin/zsh
ln -s  $MYBOOT2DOCKER/tools/uninstall.sh      /usr/local/bin/myboot2docker_uninstall

ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent-2.0.so.5.1.10           /usr/local/lib/libevent.so
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent-2.0.so.5.1.10           /usr/local/lib/libevent-2.0.so.5
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent-2.0.so.5.1.10           /usr/local/lib/libevent-2.0.so.5.1.10
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent.a                       /usr/local/lib/libevent.a
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent.la                      /usr/local/lib/libevent.la
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_core-2.0.so.5.1.10      /usr/local/lib/libevent_core.so
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_core-2.0.so.5.1.10      /usr/local/lib/libevent_core-2.0.so.5
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_core-2.0.so.5.1.10      /usr/local/lib/libevent_core-2.0.so.5.1.10
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_core.a                  /usr/local/lib/libevent_core.a
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_core.la                 /usr/local/lib/libevent_core.la
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_extra-2.0.so.5.1.10     /usr/local/lib/libevent_extra.so
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_extra-2.0.so.5.1.10     /usr/local/lib/libevent_extra-2.0.so.5
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_extra-2.0.so.5.1.10     /usr/local/lib/libevent_extra-2.0.so.5.1.10
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_extra.a                 /usr/local/lib/libevent_extra.a
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_extra.la                /usr/local/lib/libevent_extra.la
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_openssl-2.0.so.5.1.10   /usr/local/lib/libevent_openssl.so
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_openssl-2.0.so.5.1.10   /usr/local/lib/libevent_openssl-2.0.so.5
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_openssl-2.0.so.5.1.10   /usr/local/lib/libevent_openssl-2.0.so.5.1.10
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_openssl.a               /usr/local/lib/libevent_openssl.a
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_openssl.la              /usr/local/lib/libevent_openssl.la
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_pthreads-2.0.so.5.1.10  /usr/local/lib/libevent_pthreads.so
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_pthreads-2.0.so.5.1.10  /usr/local/lib/libevent_pthreads-2.0.so.5
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_pthreads-2.0.so.5.1.10  /usr/local/lib/libevent_pthreads-2.0.so.5.1.10
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_pthreads.a              /usr/local/lib/libevent_pthreads.a
ln -s  $MYBOOT2DOCKER/usr/local/lib/libevent_pthreads.la             /usr/local/lib/libevent_pthreads.la

# MUSL=$MYBOOT2DOCKER/tmp/tcloop/musl
# ln -s $MUSL/lib/ld-musl-x86_64.so.1 /lib/ld-musl-x86_64.so.1

ldconfig -X > /dev/null # reload - ldd cache (after creating simlink...)

which zsh | tee -a /etc/shells > /dev/null
sed -i "/$(cat /etc/sysconfig/tcuser)/    s#:[^:]\+\$#:$(which zsh)#" /etc/passwd
{'fraction_non_alphanumeric': 0.16364515349286923, 'fraction_numerical': 0.04568527918781726, 'mean_word_length': 2.6582670203359857, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '856455', 'n_tokens_mistral': 3956, 'n_tokens_neox': 3822, 'n_words': 409}