AsahiLinux / asahi-installer

Asahi Linux installer
MIT License
790 stars 104 forks source link

[Tracker] Uninstall option #83

Open marcan opened 2 years ago

marcan commented 2 years ago

If your issue got duped to this one: Please see this page for manual uninstall instructions.

Needs thinking about how to handle the multiple partitions. For a first approximation it seems in non-expert mode we should look for APFS stubs optionally followed by an EFI partition optionally further followed by a Linux partition. In expert mode we should just allow deleting individual partitions (since we can make it a lot easier than diskutil).

jacksongoode commented 1 year ago

Just to clarify (I hope this is a good place to post this question), an installation could be wiped clean with the install script - being that no manual partitioning took place before or after the standard install? I ask as I want to wipe the KDE install and use the minimal image.

franton commented 4 weeks ago

I read the uninstall script and was pretty horrified. I'm not expert Linux but I do know my way around macOS.

Anyway, I don't particularly want to clone the entire project to make a single commit to a script that's had zero love in the last couple years, so here you go. It's still rough as hell, and it'll forcibly nuke more than one linux install but at least i've trimmed the assumptions out of it down to looking for Fedora or Ubuntu installs.

EDIT: I am releasing the script (as attached txt file) as is, no warranty but also no license. Feel free to use this in any way or as the basis of your own code with your own license. I've tested this successfully on my own machine but YMWV.

asahi-uninstall.txt