aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-05-11 12:31:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-05-11 12:31:50 +0200
commit7e3f3d12dafe9232bd622456b272816ab21a12d7 (patch)
tree7c1cab046938c8fcf91b87f696c33e9e21b6005b
parent6edb8a970e17a895d44c3b1401fbf9d02a1b7716 (diff)
Add btrfs force flag to remove-machine script
-rwxr-xr-xremove-machine4
1 files changed, 3 insertions, 1 deletions
diff --git a/remove-machine b/remove-machine
index febfac5..13ce31f 100755
--- a/remove-machine
+++ b/remove-machine
@@ -83,7 +83,9 @@ sv=($(ssh "$host" "shopt -s nullglob; echo $machines/$mname/$mname-*/"))
for d in "${sv[@]}"; do
set -x
- ssh "$host" btrfs property set -ts "$d" ro false
+ # See upload-machine on the -f (force) flags.
+ #
+ ssh "$host" btrfs property set -f -ts "$d" ro false
ssh "$host" btrfs subvolume delete "$d"
{ set +x; } 2>/dev/null
done