diff options
author | Andrew Cady <d@jerkface.net> | 2016-04-26 04:10:53 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-04-26 04:10:53 -0400 |
commit | 34c2cb30d36a92525cc89dbf361265d6d72eee5b (patch) | |
tree | 064c0e0790325740cc862679db85b38d77f5b009 /btrfs-receive-root.sh | |
parent | dc442988ffba9d0f34a21a364773252320fb3856 (diff) |
btrfs-receive script uses ".part" on partially received fs
Diffstat (limited to 'btrfs-receive-root.sh')
-rw-r--r-- | btrfs-receive-root.sh | 4 |
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 | |||
45 | mountpoint=$(realpath -m --relative-base=. "$receive_dest") | 45 | mountpoint=$(realpath -m --relative-base=. "$receive_dest") |
46 | 46 | ||
47 | seed_file=sami/debian-live-8.4.0-amd64-standard.btrfs | 47 | seed_file=sami/debian-live-8.4.0-amd64-standard.btrfs |
48 | layer_file=sami/debian-live-8.4.0-amd64-standard.layer.$receive_subv.btrfs | 48 | layer_file_FINAL=sami/debian-live-8.4.0-amd64-standard.layer.$receive_subv.btrfs |
49 | layer_file=$layer_file_FINAL.part | ||
49 | layer_size=1000 | 50 | layer_size=1000 |
50 | 51 | ||
51 | create_layer_filesystem | 52 | create_layer_filesystem |
52 | with_stdout sex btrfs receive "$mountpoint" | 53 | with_stdout sex btrfs receive "$mountpoint" |
53 | finish | 54 | finish |
55 | mv "$layer_file" "$layer_file_FINAL" | ||