diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-05-22 18:01:02 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-05-22 18:01:02 -0400 |
commit | b5a2ca0dc092e113344072ebba6555f3da07cf88 (patch) | |
tree | 8886a63bae1d64fd258a65158851b7025cd50d86 /src | |
parent | fc9e5c56403fc53e373f7c9bc8cc448d1c00af21 (diff) |
fix https://labs.parabola.nu/issues/335
Diffstat (limited to 'src')
-rwxr-xr-x | src/chroot-tools/librechroot | 3 |
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" ;; |