Ventura docs for M2 Macs in this comment: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd?permalink_comment_id=4555340#gistcomment-4555340
Old Monterey docs in this old revision: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd/32c410e3a1de73539c76fa13ea5486569c4e0c5d
Solution for Sonoma: https://gist.github.com/sghiassy/a3927405cf4ffe81242f4ecb01c382ac
Just wanted to give some feedback for my MBA M1 which I installed Monterey. Here are the modified steps I followed.
With full reinstall (recommended)
a. Boot into recovery. During reboot, wipe the hard drive using Disk Utility, and select reinstall macOS.
b. Initial installation will run for approximately 1 hour, and reboot. As it is rebooting, turn off Wifi router.
c. It will then show Mac setup screen to choose country. Go through the setup and boot into Mac OS, because you need to setup a user to run the commands in Main Procedure.
d. Boot into recovery mode. Follow Main Procedure. After that, turn on your WiFi router and reboot normally.
While running the commands on Main Procedure, you would need to enter the password of the user you created earlier.
When running the command
$ csrutil enable
, you will be asked to connect to the internet. At this point, turn on your Wifi router and connect to the internet and run the command again to enable csrutil.Reboot normally. Done.