summaryrefslogtreecommitdiff
path: root/btrfs-receive-root.sh
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-04-26 04:10:53 -0400
committerAndrew Cady <d@jerkface.net>2016-04-26 04:10:53 -0400
commit34c2cb30d36a92525cc89dbf361265d6d72eee5b (patch)
tree064c0e0790325740cc862679db85b38d77f5b009 /btrfs-receive-root.sh
parentdc442988ffba9d0f34a21a364773252320fb3856 (diff)
btrfs-receive script uses ".part" on partially received fs
Diffstat (limited to 'btrfs-receive-root.sh')
-rw-r--r--btrfs-receive-root.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/btrfs-receive-root.sh b/btrfs-receive-root.sh
index 62504bf..3dee813 100644
--- a/btrfs-receive-root.sh
+++ b/btrfs-receive-root.sh
@@ -45,9 +45,11 @@ receive_subv=$2
45mountpoint=$(realpath -m --relative-base=. "$receive_dest") 45mountpoint=$(realpath -m --relative-base=. "$receive_dest")
46 46
47seed_file=sami/debian-live-8.4.0-amd64-standard.btrfs 47seed_file=sami/debian-live-8.4.0-amd64-standard.btrfs
48layer_file=sami/debian-live-8.4.0-amd64-standard.layer.$receive_subv.btrfs 48layer_file_FINAL=sami/debian-live-8.4.0-amd64-standard.layer.$receive_subv.btrfs
49layer_file=$layer_file_FINAL.part
49layer_size=1000 50layer_size=1000
50 51
51create_layer_filesystem 52create_layer_filesystem
52with_stdout sex btrfs receive "$mountpoint" 53with_stdout sex btrfs receive "$mountpoint"
53finish 54finish
55mv "$layer_file" "$layer_file_FINAL"