summaryrefslogtreecommitdiff
path: root/src/chroot-tools/librechroot
diff options
context:
space:
mode:
Diffstat (limited to 'src/chroot-tools/librechroot')
-rwxr-xr-xsrc/chroot-tools/librechroot4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot
index 9be36ff..45aec10 100755
--- a/src/chroot-tools/librechroot
+++ b/src/chroot-tools/librechroot
@@ -152,15 +152,17 @@ main() {
# Keep this lock as long as we are running
# Note that '9' is the same FD number as in (mk)archroot
lock_open_write 9 "$copydir" \
- "Waiting for existing lock on \`$copydir' to be released"
+ "Waiting for existing lock on chroot copy to be released: [$COPY]"
if [[ ! -d $rootdir ]]; then
+ msg "Creating 'root' copy for chroot [$CHROOT]"
set +u # if archroot_args is empty, it counts as unbound
archroot "${archroot_args[@]}" -m "$rootdir" base-devel
set -u
fi
if [[ ! -d $copydir ]] || [[ $mode == sync ]]; then
+ msg "Syncing copy [$COPY] with root copy"
normshell chroot_sync "$CHROOTDIR/$CHROOT" "$COPY"
fi