summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/chroot-tools/librechroot3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot
index 92bbb94..5027938 100755
--- a/src/chroot-tools/librechroot
+++ b/src/chroot-tools/librechroot
@@ -168,6 +168,8 @@ main() {
set +u # if archroot_args is empty, it counts as unbound
archroot "${archroot_args[@]}" -m "$rootdir" base-devel
set -u
+ mkdir -p "${rootdir}/repo"
+ bsdtar -czf "${rootdir}/repo/repo.db.tar.gz" -T /dev/null
fi
if [[ ! -d $copydir ]] || [[ $mode == sync ]]; then
@@ -230,6 +232,7 @@ main() {
enter) archroot -r "$copydir" bash;;
clean-repo)
rm -rf "${copydir}/repo/*"
+ mkdir -p "${copydir}/repo"
bsdtar -czf "${copydir}/repo/repo.db.tar.gz" -T /dev/null
ln -s "repo.db.tar.gz" "${copydir}/repo/repo.db"
;;