#
#asahi · 2023-08-16 02:49
nicolas17marcan: is there anything particularly unique about a functional recoveryOS? does it need to be personalized and blessed by the bootpolicy or something?
#asahi · 2023-08-16 02:49
i509vcbBut then it refuses to allow the addVolume Recovery
#asahi · 2023-08-16 02:49
i509vcbI can run eraseVolume disk0s6
#asahi · 2023-08-16 02:49
i509vcbwhere 6 is the partition I messed up
#asahi · 2023-08-16 02:47
i509vcb6: Apple_APFS_Recovery
#asahi · 2023-08-16 02:47
i509vcb5: Linux Filesystem
#asahi · 2023-08-16 02:47
i509vcb4: EFI - ASAHI
#asahi · 2023-08-16 02:47
i509vcb3: Container disk2
#asahi · 2023-08-16 02:47
i509vcb2: Container disk3
#asahi · 2023-08-16 02:47
i509vcb1: APFS_ISC
#asahi · 2023-08-16 02:47
i509vcb0: GUID_Partiton_scheme
#asahi · 2023-08-16 02:47
i509vcbInitial state of disk0:
#asahi · 2023-08-16 02:45
marcanassuming there's nothing particularly unique about an empty APFS disk image
#asahi · 2023-08-16 02:45
marcanI wonder if I can just do this again and take a disk image of the empty recoveryOS container and publish it, that would make this mess a lot easier to solve for people
#asahi · 2023-08-16 02:42
marcanthanks
#asahi · 2023-08-16 02:40
Zeroinehave a great day!
#asahi · 2023-08-16 02:40
marcan(for those unaware: where I say "unrecoverable state" I mean without a full wipe. DFU full wipe always works but wipes your data.)
#asahi · 2023-08-16 02:40
Zeroinehi marcan
#asahi · 2023-08-16 02:37
marcan*recover
#asahi · 2023-08-16 02:37
marcanbut as long as you have Linux as the default OS and the installer did its job properly with recoveryOS (which it had to, otherwise step2 wouldn't have worked), you can recovery
#asahi · 2023-08-16 02:37
marcanthe reason this state is dangerous is that if there's a problem with your default boot OS/recoveryOS *then* you end up in an unrecoverable state as there's no way to switch OSes without a working recoveryOS
#asahi · 2023-08-16 02:35
marcan(for back to linux just reboot, assuming that's still your default boot OS)
#asahi · 2023-08-16 02:33
marcanthen back to linux and edit the partition type back to what it needs to be (modern fdisk should have it in the list), and set the name too just in case if it went away
#asahi · 2023-08-16 02:32
marcanthen finally `diskutil apfs deleteVolume <old default volume>` (to delete the other volume than Recovery that the eraseVolume created)
#asahi · 2023-08-16 02:32
marcanfor <container device> use the synthesized disk (disk2 or whatever shows up after you format it)
#asahi · 2023-08-16 02:32
marcanyes presumably
#asahi · 2023-08-16 02:32
i509vcbusing disk0s6 in my case?
#asahi · 2023-08-16 02:32
marcanthen `diskutil list` again to see what you have, `diskutil apfs addVolume <container device> apfs Recovery -role R` to create the Recovery volume
#asahi · 2023-08-16 02:30
marcan`diskutil list` to get the state of things, `diskutil eraseVolume apfs RecoveryOSContainer <partition>` to format the partition properly
#asahi · 2023-08-16 02:30
i509vcbDiskutil, right, I forgot to read
#asahi · 2023-08-16 02:30
i509vcbFrom there I do what?
#asahi · 2023-08-16 02:29
i509vcbAh ok
#asahi · 2023-08-16 02:29
marcanwhich is what you wiped
#asahi · 2023-08-16 02:29
marcanbecause that forces system recoveryOS fallback
#asahi · 2023-08-16 02:29
i509vcbWhy does a double tap not work?
#asahi · 2023-08-16 02:29
i509vcbHuh I did get something
#asahi · 2023-08-16 02:28
i509vcbDoing that
#asahi · 2023-08-16 02:28
marcanwhat happens if you hold the power button for 10s?
#asahi · 2023-08-16 02:28
marcanmake sure you hold it and don't double tap it or anything like that
#asahi · 2023-08-16 02:27
marcanthat should get you into paired recoveryOS for whatever OS is your default boot OS right now
#asahi · 2023-08-16 02:27
i509vcbI can still get to Linux but can't swap back to macOS
#asahi · 2023-08-16 02:27
marcanyes
#asahi · 2023-08-16 02:27
i509vcbYou hold the power button for 10s?
#asahi · 2023-08-16 02:27
marcanthat partition is the system/fallback recoveryOS
#asahi · 2023-08-16 02:27
marcanwhy not?
#asahi · 2023-08-16 02:27
i509vcbBut if a problem, I can't enter recoveryOS
#asahi · 2023-08-16 02:27
marcanit can recover from that state (empty but present and correct recovery container)
#asahi · 2023-08-16 02:27
marcanboot into recoveryOS, format it as APFS, create the Recovery container with the correct role ('R'), delete the default container it created, go back to Linux, fix the partition type GUID which diskutil will have screwed up (and make sure RecoveryOSContainer is still the name just in case), then do a Revive with Apple Configurator
#asahi · 2023-08-16 02:25
i509vcbWell I'm open to hear it
#asahi · 2023-08-16 02:25
marcantook me a while to figure it out

plus ›