diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-01-18 15:54:22 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-01-19 12:13:38 +0000 |
commit | cfe5114a6006f140cd75684ce0179e4b615dfdeb (patch) | |
tree | e3c32966430995c2b66feb1a9bfe5d1ce1751b28 /run-bootstrap-in-chroot | |
parent | f0531394958d2ce3fb44ca4e5f1ae204a599fda7 (diff) | |
download | morph-cfe5114a6006f140cd75684ce0179e4b615dfdeb.tar.gz |
make run-bootstrap-in-chroot build the whole bootstrap, not just pass1
Diffstat (limited to 'run-bootstrap-in-chroot')
-rwxr-xr-x | run-bootstrap-in-chroot | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/run-bootstrap-in-chroot b/run-bootstrap-in-chroot index cdcf0612..34250beb 100755 --- a/run-bootstrap-in-chroot +++ b/run-bootstrap-in-chroot @@ -4,7 +4,12 @@ set -e export LC_ALL=C -dir="squeeze-chroot" +if [ "x$1" = x ] +then + dir="squeeze-chroot" +else + dir="$1" +fi mirror="http://192.168.1.185/debian" mkdir "$dir" @@ -22,10 +27,12 @@ cat <<EOF > "$dir/etc/hosts" EOF cp baserock-bootstrap "$dir/." +mkdir -p "$dir/tree/baserock" +cp -r "$HOME/baserock/gits" "$dir/tree/baserock/gits" sed 's,^.*/,http://192.168.1.185/lfs/,' wget-list > "$dir/wget-list" mount -t proc proc "$dir/proc" mount -t sysfs sysfs "$dir/sys" -if chroot "$dir" bash -x baserock-bootstrap yes +if chroot "$dir" bash -x baserock-bootstrap no then exit=0 else |