summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-05-02 21:45:31 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-05-02 21:45:31 -0400
commiteed537603fc5c80122753871276652b2c1d7065c (patch)
tree0d0c68bfff8095c1cb20d47a500adba6ed1d149d
parent6373878a73c0e0cb4859a8494379a88cfc6de55e (diff)
librechroot: improve message output
-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