summaryrefslogtreecommitdiffstats
path: root/ch
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-03-21 10:12:18 +0100
committerFlorian Pritz <bluewind@xinu.at>2017-03-21 10:12:18 +0100
commita4297472468e8f980ccaa5fa8123aea49a15c06f (patch)
tree8fdcd5521157ecec081f0ecf177938149d9b86a9 /ch
parent4f3d637eb1996cfdd9fff0c35b0a2c9e6a679e13 (diff)
downloadbin-a4297472468e8f980ccaa5fa8123aea49a15c06f.tar.gz
bin-a4297472468e8f980ccaa5fa8123aea49a15c06f.tar.xz
ch: Delete /var/lib/machines if it exists
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'ch')
-rwxr-xr-xch1
1 files changed, 1 insertions, 0 deletions
diff --git a/ch b/ch
index 2715d8f..bcc759b 100755
--- a/ch
+++ b/ch
@@ -131,6 +131,7 @@ chkill() {
__chrootalias_resolve "$1" || return
for dir in "$CHROOTS/$chroot/"*/; do
+ sudo btrfs subvolume delete "$dir/var/lib/machines" || true
sudo btrfs subvolume delete "$dir"
done
sudo rm -rf "$CHROOTS/$chroot"