From 9b9e9ce4e797036d3ad7786ce60b061b6776a25f Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 1 Feb 2012 14:39:22 +0000 Subject: 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. --- run-bootstrap-in-chroot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'run-bootstrap-in-chroot') 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. -- cgit v1.2.1