]> git.zerfleddert.de Git - m1-debian/commitdiff
here we go
authorThomas Glanzmann <thomas@glanzmann.de>
Tue, 22 Feb 2022 17:29:39 +0000 (18:29 +0100)
committerThomas Glanzmann <thomas@glanzmann.de>
Tue, 22 Feb 2022 17:29:39 +0000 (18:29 +0100)
doc/marcan_sep_cleanup_script.txt [new file with mode: 0644]

diff --git a/doc/marcan_sep_cleanup_script.txt b/doc/marcan_sep_cleanup_script.txt
new file mode 100644 (file)
index 0000000..bfb3874
--- /dev/null
@@ -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
Impressum, Datenschutz