summaryrefslogtreecommitdiff
path: root/btrfs-receive-root.sh
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-04-26 04:12:57 -0400
committerAndrew Cady <d@jerkface.net>2016-04-26 04:12:57 -0400
commit195028924dfd63ca607deb589c9c5a40e9e8ceda (patch)
tree60331d30e944754292a4dbfdcb8951b95dabee63 /btrfs-receive-root.sh
parent34c2cb30d36a92525cc89dbf361265d6d72eee5b (diff)
more verbose output for btrfs-receive-root
Diffstat (limited to 'btrfs-receive-root.sh')
-rw-r--r--btrfs-receive-root.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/btrfs-receive-root.sh b/btrfs-receive-root.sh
index 3dee813..f553c2c 100644
--- a/btrfs-receive-root.sh
+++ b/btrfs-receive-root.sh
@@ -23,13 +23,13 @@ create_layer_filesystem()
23finish() 23finish()
24{ 24{
25 local subv_id 25 local subv_id
26 mv "$mountpoint"/ROOT "$mountpoint"/ROOT.old || return 26 sex mv "$mountpoint"/ROOT "$mountpoint"/ROOT.old || return
27 btrfs subvolume snapshot "$mountpoint"/"$receive_subv" "$mountpoint"/ROOT || return 27 sex btrfs subvolume snapshot "$mountpoint"/"$receive_subv" "$mountpoint"/ROOT || return
28 subv_id=$(btrfs_show_subvolume_id "$mountpoint"/ROOT) || return 28 subv_id=$(btrfs_show_subvolume_id "$mountpoint"/ROOT) || return
29 btrfs subvolume set-default "$subv_id" "$mountpoint" || return 29 sex btrfs subvolume set-default "$subv_id" "$mountpoint" || return
30 btrfs subvolume delete "$mountpoint"/ROOT.old || return 30 sex btrfs subvolume delete "$mountpoint"/ROOT.old || return
31 umount "$mountpoint" || return 31 umount "$mountpoint" || return
32 sex btrfstune -S1 "$layer_file" || return 32 sex btrfstune -S1 "$layer_file" || return
33 losetup -d "$layer_dev" 33 losetup -d "$layer_dev"
34} 34}
35 35