diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-02-01 14:39:22 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-02-01 14:39:22 +0000 |
commit | 9b9e9ce4e797036d3ad7786ce60b061b6776a25f (patch) | |
tree | 908b4be71846b891963016079108a0dce97098b0 /run-bootstrap-in-chroot | |
parent | b03fe891c03c4d8150897107cbd0a604fceef2a4 (diff) | |
download | morph-9b9e9ce4e797036d3ad7786ce60b061b6776a25f.tar.gz |
Make caller specify $GITS for the location (dir) where git repos are
The original code was using $HOME, which gets expanded to /root
under sudo, and that's not useful. This avoid hardcoding paths into
the script.
Diffstat (limited to 'run-bootstrap-in-chroot')
-rwxr-xr-x | run-bootstrap-in-chroot | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/run-bootstrap-in-chroot b/run-bootstrap-in-chroot index f172165e..40ad0821 100755 --- a/run-bootstrap-in-chroot +++ b/run-bootstrap-in-chroot @@ -36,6 +36,7 @@ EOF fi if ([ "x$DEBIAN_MIRROR" = x ] && echo DEBIAN_MIRROR is unspecified >&2) || + ([ "x$GITS" = x ] && echo GITS is unspecified >&2) || ([ "x$LFS_MIRROR" = x ] && echo LFS_MIRROR is unspecified >&2) then echo It is recommended that mirrors are used @@ -97,7 +98,7 @@ fi # Update the git repos. mkdir -p "$dir/tree/baserock" rm -rf "$dir/tree/baserock/gits" -cp -rl "$HOME/baserock/gits" "$dir/tree/baserock/gits" +cp -rl "$GITS" "$dir/tree/baserock/gits" # Run pass2 of bootstrap. This actually runs pass1 too, but quickly, since # it's already built. |