diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-05-11 12:31:50 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-05-11 12:31:50 +0200 |
commit | 7e3f3d12dafe9232bd622456b272816ab21a12d7 (patch) | |
tree | 7c1cab046938c8fcf91b87f696c33e9e21b6005b | |
parent | 6edb8a970e17a895d44c3b1401fbf9d02a1b7716 (diff) |
Add btrfs force flag to remove-machine script
-rwxr-xr-x | remove-machine | 4 |
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 |