dsnap-sync: correct btrfs handling if subvolumes is in a subdir

This commit is contained in:
2018-07-12 13:24:05 +02:00
parent e1bbe55784
commit 3b43db5328

View File

@@ -1031,7 +1031,7 @@ run_finalize () {
src_host=$(eval cat /etc/hostname)
src_uuid=$(eval findmnt --noheadings --output UUID --target $SUBVOLUME)
src_subvolid=$(eval findmnt --noheadings --output OPTIONS $SUBVOLUME | sed -e 's/.*subvolid=\([0-9]*\).*/\1/')
src_subvolid=$(eval findmnt --noheadings --output OPTIONS --target $SUBVOLUME | sed -e 's/.*subvolid=\([0-9]*\).*/\1/')
# Tag new snapshots key/value parameter
if [ $verbose -ge 1 ]; then