From 2ad631dc766efdf45e699dc24ae4d036911e9211 Mon Sep 17 00:00:00 2001 From: Thomas Glanzmann Date: Tue, 1 Mar 2022 13:22:42 +0100 Subject: [PATCH] new wipe script --- doc/{marcan_sep_cleanup_script.txt => wipe-linux.sh} | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) rename doc/{marcan_sep_cleanup_script.txt => wipe-linux.sh} (57%) diff --git a/doc/marcan_sep_cleanup_script.txt b/doc/wipe-linux.sh similarity index 57% rename from doc/marcan_sep_cleanup_script.txt rename to doc/wipe-linux.sh index bfb3874..69ca850 100644 --- a/doc/marcan_sep_cleanup_script.txt +++ b/doc/wipe-linux.sh @@ -1,7 +1,9 @@ #!/bin/sh -# Fetch from https://marcan.st/paste/4wuJXyRX.txt -# Written by marcan 2022-02-22 +# Source: https://mrcn.st/wipe-linux.sh - 2022-03-01 + +diskutil list | grep Apple_APFS | grep '2\.5 GB' | sed 's/.* //g' | xargs -n 1 diskutil apfs deleteContainer +diskutil list /dev/disk0 | grep -Ei 'asahi|linux|EFI' | sed 's/.* //g' | xargs -n 1 diskutil eraseVolume free free cat > /tmp/uuids.txt <