aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-09-10 12:46:49 +0300
committerCem Keylan <cem@ckyln.com>2020-09-10 12:46:49 +0300
commit28d86c20594c066e8f7cbe1dc783f75f501704ad (patch)
treea307f571678aab179518792c0635b43a90d3a8cd
parent6f36eadf15185ce29fd49430afb03e96057b78bf (diff)
downloadmkrootfs-28d86c20594c066e8f7cbe1dc783f75f501704ad.tar.gz
mkrootfs: do not copy the repository to /var/db/cpt/repo
-rwxr-xr-xmkrootfs.sh2
1 files changed, 0 insertions, 2 deletions
diff --git a/mkrootfs.sh b/mkrootfs.sh
index d6c54fc..2d3660c 100755
--- a/mkrootfs.sh
+++ b/mkrootfs.sh
@@ -75,14 +75,12 @@ case $REPO in
mkdir -p "$MNTDIR/var/db/cpt" /tmp
rm -rf /tmp/repo "$MNTDIR/var/db/cpt/repo"
rsync -avCz --include=core --delete "$REPO/" /tmp/repo
- cp -r /tmp/repo "$MNTDIR/var/db/cpt/repo"
;;
*)
msg "Cloning repository"
mkdir -p "$MNTDIR/var/db/cpt" /tmp
rm -rf /tmp/repo "$MNTDIR/var/db/cpt/repo"
git clone --depth 1 "$REPO" /tmp/repo
- cp -r /tmp/repo "$MNTDIR/var/db/cpt/repo"
esac
# Install extra repositories defined in a 'repositories'