卸载Asahi Linux

由于实在没有时间折腾桌面,也由于一些客观原因,我暂时放弃继续在Macbook M1笔记本上使用Linux:

所以我通过以下方式抹去Asahi Linux:

卸载 Asahi Linux 只需要一条命令(使用 root 执行)
curl -L https://alx.sh/wipe-linux | sh

需要翻墙执行(否则脚本下载会超时),执行结果输出:

卸载 Asahi Linux 的输出信息
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   169  100   169    0     0    184      0 --:--:-- --:--:-- --:--:--   186
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100  1108  100  1108    0     0    349      0  0:00:03  0:00:03 --:--:--   903
THIS SCRIPT IS DANGEROUS!
DO NOT BLINDLY RUN IT IF SOMEONE JUST SENT YOU HERE.
IT WILL INDISCRIMINATELY WIPE A BUNCH OF PARTITIONS
THAT MAY OR MAY NOT BE THE ONES YOU WANT TO WIPE.

You are much better off reading and understanding this guide:
https://github.com/AsahiLinux/docs/wiki/Partitioning-cheatsheet

Press enter twice if you really want to continue.
Press Control-C to exit.
Started APFS operation on disk3
Deleting APFS Container with all of its APFS Volumes
Unmounting Volumes
Unmounting Volume "Asahi Linux - Data" on disk3s1
Unmounting Volume "Asahi Linux" on disk3s2
Unmounting Volume "Preboot" on disk3s3
Unmounting Volume "Recovery" on disk3s4
Unmounting Volume "Update" on disk3s5
Deleting Volumes
Deleting Container
Wiping former APFS disks
Switching content types
1 new disk created or changed due to APFS operation
Disk from APFS operation: disk0s3
Finished APFS operation on disk3
Removing disk0s3 from partition map
Started erase on disk0s4 (EFI - ASAHI)
Unmounting disk
Finished erase on disk0
Started erase on disk0s5
Unmounting disk
Finished erase on disk0
Started erase on disk0s7
Unmounting disk
Finished erase on disk0
Started erase on disk0s8
Unmounting disk
Finished erase on disk0
Started erase on disk0s9
Unmounting disk
Finished erase on disk0
KEEP 3D3287DE-280D-4619-AAAB-D97469CA9C71
RM 5A9D28C8-918E-4A69-8010-8BCDE164B908
rm: 5A9D28C8-918E-4A69-8010-8BCDE164B908/LocalPolicy: Operation not permitted
rm: 5A9D28C8-918E-4A69-8010-8BCDE164B908: Operation not permitted

根据官方FAQ,可以忽略最后的 operation not permitted 错误(或者在recovery模式下执行)

完成后,使用 macOS 的 Disk Utility 检查可以看到 Asahi Linux 的分区被完全抹去(全部显示为 free space ),此时就可以使用 Disk Utility 将macOS分区扩展到全部磁盘,恢复最初的macOS使用状态

参考