From 7e3f3d12dafe9232bd622456b272816ab21a12d7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 11 May 2023 12:31:50 +0200 Subject: Add btrfs force flag to remove-machine script --- remove-machine | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'remove-machine') 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 -- cgit v1.1