]>
Commit | Line | Data |
---|---|---|
ed9ee917 TG |
1 | #!/bin/sh |
2 | ||
3 | # Fetch from https://marcan.st/paste/4wuJXyRX.txt | |
4 | # Written by marcan 2022-02-22 | |
5 | ||
6 | cat > /tmp/uuids.txt <<EOF | |
7 | 3D3287DE-280D-4619-AAAB-D97469CA9C71 | |
8 | C8858560-55AC-400F-BBB9-C9220A8DAC0D | |
9 | EOF | |
10 | ||
11 | diskutil apfs listVolumeGroups >> /tmp/uuids.txt | |
12 | ||
13 | cd /System/Volumes/iSCPreboot | |
14 | ||
15 | for i in ????????-????-????-????-????????????; do | |
16 | if grep -q "$i" /tmp/uuids.txt; then | |
17 | echo "KEEP $i" | |
18 | else | |
19 | echo "RM $i" | |
20 | rm -rf "$i" | |
21 | fi | |
22 | done |