bug fixes
[distro-setup] / mount-latest-subvol
index a277b55cbc9c9528542e222cc2ae4ce49aab5587..9bb324b918a20cd0a9357b7d125086f8506c2dfe 100644 (file)
@@ -330,7 +330,7 @@ for vol in q a o i; do
       if [[ $bsub ]]; then
         tmp=$(mktemp)
         # in testing, same subvol is 136 bytes. allow some overhead
-        btrfs send --no-data -p $bsub $leaf | head -c 1000 > $tmp
+        btrfs send --no-data -p $bsub $leaf | head -c 1000 > $tmp || [[ $? == 141 ]]
         if (( $(stat -c%s $tmp) < 1000)); then
           # example output for an empty diff:
           # Found a valid Btrfs stream header, version 1