[TinderBox] Building a 6.X or 5.X Jail on -CURRENT

2007/07/25
By

Quick note: refer to HEADS UP: Building a 6.X or 5.X Jail on -CURRENT

Get the patch: http://www.marcuscom.com/downloads/binutils.diff

Save the following code to 6.hook.sh:

#!/bin/sh

major_version=$(echo ${JAIL} | sed -E -e ‘s|(^.).*$|1|’)
if [ ${major_version} -le 6 ]; then
    cd ${SRCBASE}
    patch -p1 < /path/to/binutils.diff
fi
exit 0

and execute the command:

% `./tc updateHookCmd -h preJailBuild -c 6.hook.sh

Remember chmod u+x for 6.hook.sh.

發表迴響

您的電子郵件位址並不會被公開。 必要欄位標記為 *

*


*