aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2019-12-10 03:09:21 +0300
committerCem Keylan <cem@ckyln.com>2019-12-10 03:09:21 +0300
commitf39169c3cc55fc00bc74fbf3aa90a973fb83c6df (patch)
tree3ae8cfab2fec7560ab5562a4889b7dc4d225df3f
parent97c3dbf644cf44638d70d5f95068d60f48ee1cfb (diff)
downloadmkrootfs-f39169c3cc55fc00bc74fbf3aa90a973fb83c6df.tar.gz
clone repository to chroot
-rwxr-xr-xmkrootfs.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/mkrootfs.sh b/mkrootfs.sh
index 7bd334a..9f905df 100755
--- a/mkrootfs.sh
+++ b/mkrootfs.sh
@@ -64,6 +64,8 @@ if [ -n "$REPO" ]; then
# Remove if /tmp/repo already exists
rm -rf /tmp/repo
git clone --depth 1 "$REPO" /tmp/repo
+ msg "Cloning repository to /var/db/kiss/repo"
+ git clone "$REPO" "$MNTDIR/var/db/kiss/repo"
export KISS_PATH="${HOST_REPO_PATH:-/tmp/repo/core}"
else
msg "REPO variable does not exist, current repository