From: Thomas Glanzmann <thomas@glanzmann.de>
Date: Tue, 22 Feb 2022 17:29:39 +0000 (+0100)
Subject: here we go
X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/commitdiff_plain/ed9ee91748f4ac4d9c91a69826d6d39e093d132d?ds=inline;hp=a2845c74e267f0d75a8912a309882adbba880d2b

here we go
---

diff --git a/doc/marcan_sep_cleanup_script.txt b/doc/marcan_sep_cleanup_script.txt
new file mode 100644
index 0000000..bfb3874
--- /dev/null
+++ b/doc/marcan_sep_cleanup_script.txt
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# Fetch from https://marcan.st/paste/4wuJXyRX.txt
+# Written by marcan 2022-02-22
+
+cat > /tmp/uuids.txt <<EOF
+3D3287DE-280D-4619-AAAB-D97469CA9C71
+C8858560-55AC-400F-BBB9-C9220A8DAC0D
+EOF
+
+diskutil apfs listVolumeGroups >> /tmp/uuids.txt
+
+cd /System/Volumes/iSCPreboot
+
+for i in ????????-????-????-????-????????????; do
+    if grep -q "$i" /tmp/uuids.txt; then
+        echo "KEEP $i"
+    else
+        echo "RM $i"
+        rm -rf "$i"
+    fi
+done