diff options
Diffstat (limited to 'src/chroot-tools/librechroot.gpl2')
-rwxr-xr-x[-rw-r--r--] | src/chroot-tools/librechroot.gpl2 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/chroot-tools/librechroot.gpl2 b/src/chroot-tools/librechroot.gpl2 index 6ba361f..1b5d90a 100644..100755 --- a/src/chroot-tools/librechroot.gpl2 +++ b/src/chroot-tools/librechroot.gpl2 @@ -19,20 +19,21 @@ sync() { exit 1 fi - lock_open_read 8 "$rootdir" "Locking clean chroot" + lock_open_read 8 "$rootdir" \ + "Waiting for existing lock on \`$rootdir' to be released" stat_busy 'Creating clean working copy' local use_rsync=false if type -P btrfs >/dev/null; then [[ -d $copydir ]] && btrfs subvolume delete "$copydir" &>/dev/null - btrfs subvolume snapshot "$chrootdir/root" "$copydir" &>/dev/null || use_rsync=true + btrfs subvolume snapshot "$rootdir" "$copydir" &>/dev/null || use_rsync=true else use_rsync=true fi if $use_rsync; then mkdir -p "$copydir" - rsync -a --delete -q -W -x "$CHROOTDIR/$CHROOT/root/" "$copydir" + rsync -a --delete -q -W -x "$rootdir/" "$copydir" fi stat_done |