#asahi-dev · 2021-05-15 08:29
marcanjust the power button#asahi-dev · 2021-05-15 08:29
marcanbecause iBoot can barely show an apple on the screen and an oops message, and doesn't even take keyboard input#asahi-dev · 2021-05-15 08:29
marcan(e.g. for dual-boot)#asahi-dev · 2021-05-15 08:29
marcaneven the damn boot menu is in 1TR for this reason#asahi-dev · 2021-05-15 08:29
marcanand not built into the bootloader#asahi-dev · 2021-05-15 08:29
marcanthis is why 1TR is macos#asahi-dev · 2021-05-15 08:29
marcan(iBoot is deliberately *way* smaller than any UEFI)#asahi-dev · 2021-05-15 08:29
marcan(I know why they did this. All USB stacks are vulnerable messes.)#asahi-dev · 2021-05-15 08:28
marcanonly sometimes :P#asahi-dev · 2021-05-15 08:28
marcanit can *barely* boot from external macos media (which by the way works by copying the kernel/bootloader to internal disk; the low-level bootloader cannot boot from USB/TB)#asahi-dev · 2021-05-15 08:27
marcanso there's this whole complex boot system and the tooling is... not quite there yet#asahi-dev · 2021-05-15 08:27
marcanthe M1 launch was very obviously rushed#asahi-dev · 2021-05-15 08:27
marcanbut again this is all somewhat dependent on finer points, and we might run into issues; I'm hopeful if it comes down to stupid bugs I can get Apple to fix them eventually#asahi-dev · 2021-05-15 08:27
marcanso in principle fully offline installs are possible#asahi-dev · 2021-05-15 08:26
marcan(but on M1 it is not a hard requirement iff you attest via 1TR as usual, unlike on iOS)#asahi-dev · 2021-05-15 08:26
marcan(this is to avoid e.g. someone installing a vulnerable OS and then compromising a machine that way; they only sign the latest few versions)#asahi-dev · 2021-05-15 08:26
marcanso I think we can have a flow that never requires that#asahi-dev · 2021-05-15 08:26
marcanthe installer will prompt you to go to reduced security if that doesn't work#asahi-dev · 2021-05-15 08:26
marcan"normal" installation of macOS requires phoning home, but it is not mandatory on M1#asahi-dev · 2021-05-15 08:25
marcanoh, that's another thing;#asahi-dev · 2021-05-15 08:25
marcanyes#asahi-dev · 2021-05-15 08:25
marcanI'm hoping Apple fixes it this year#asahi-dev · 2021-05-15 08:25
marcanbuut right now that's all broken#asahi-dev · 2021-05-15 08:25
marcanand at that point we can just create a macOS credential database and direct users to the Apple flow to make it work#asahi-dev · 2021-05-15 08:24
marcanbecause that means they will have to be able to import credentials from disk into the SEP#asahi-dev · 2021-05-15 08:24
marcanwhich right now is quite broken on these machines#asahi-dev · 2021-05-15 08:24
marcanthe thing that will fix this is when Apple fixes "importing" foreign external macOS installs#asahi-dev · 2021-05-15 08:24
marcanwe require some blobs from macOS to provision m1n1, but I have already proved that that works manually; but then I run into the creds issue#asahi-dev · 2021-05-15 08:24
marcanto downgrade security you need provisioned credentials, and to provision credentials you need to boot (signed) macOS, which means right now the install flow is "install macOS, then replace it with m1n1 and optionally shrink the APFS container and delete most of macOS"#asahi-dev · 2021-05-15 08:23
marcanso right now we have a chicken and egg problem with credentials#asahi-dev · 2021-05-15 08:22
marcanthe commandline one is fine, thankfully#asahi-dev · 2021-05-15 08:22
marcanyou can also install macos from there#asahi-dev · 2021-05-15 08:22
marcanand the graphical disk utility, though that thing is a buggy mess#asahi-dev · 2021-05-15 08:22
marcanit has a web browser#asahi-dev · 2021-05-15 08:22
marcanyou could run a graphical app if you wanted to#asahi-dev · 2021-05-15 08:22
marcanyes#asahi-dev · 2021-05-15 08:21
marcanwhich comes with some limitations due to said bugs#asahi-dev · 2021-05-15 08:21
marcanso we depend on shelling out to Apple tools for that#asahi-dev · 2021-05-15 08:21
marcanhowever they do still have entitlements, so we can't directly interface with boot policy stuff, which is a shame#asahi-dev · 2021-05-15 08:21
marcanno python#asahi-dev · 2021-05-15 08:21
marcanand as of a few releases ago you can run your own binaries (you used not to be able to due to codesigning)#asahi-dev · 2021-05-15 08:21
marcanit even has perl#asahi-dev · 2021-05-15 08:21
marcanyes#asahi-dev · 2021-05-15 08:20
marcanbut unless we hit a major blocker, my idea for our install flow is that we tell users "hold down the power button, go to "Options", open a terminal, and type curl alx.sh | sh"#asahi-dev · 2021-05-15 08:20
marcanfwiw there are open questions around boot provisioning; right now the install flow does require a macos install to clobber at least, and part of this is blocked on Apple bugs (yes) and further investigation#asahi-dev · 2021-05-15 08:20
marcanheh#asahi-dev · 2021-05-15 08:19
marcan(I'm mostly testing at 16K, curious what breaks at 4K, hope nothing major)#asahi-dev · 2021-05-15 08:19
marcangood#asahi-dev · 2021-05-15 08:19
marcanso I hope you have devicetree kernels with 4K or 16K pages :)#asahi-dev · 2021-05-15 08:18
marcanand they also require ACPI, which will never ever be a thing here