#asahi · 2022-02-22 04:27
marcanyou can do that in the main installer, that's literally what I'm about to implement, er, right now#asahi · 2022-02-22 04:26
marcankit_ty_kate: why would you copy uboot/kernel/partition image in step2?#asahi · 2022-02-22 04:26
marcanwhich is what I do now#asahi · 2022-02-22 04:26
marcanthough I'd hope it means we have to specify the partition that is *physically* before the free space we want to use#asahi · 2022-02-22 04:26
marcantpw_rules: that is something I'd like people to test#asahi · 2022-02-22 04:25
marcanpushed & updated installer#asahi · 2022-02-22 04:21
marcanalready implemented it, about to test#asahi · 2022-02-22 04:21
marcanjust need to get all partition info first, *then* sort, *then* walk the list and insert free space#asahi · 2022-02-22 04:18
marcanok, that changes the logic a bit#asahi · 2022-02-22 04:16
marcanbut is this something you want the installer to do?#asahi · 2022-02-22 04:16
marcanI mean nothing stops you from just opening up another terminal tab and copying some files manually#asahi · 2022-02-22 04:16
marcankit_ty_kate: what is your use case?#asahi · 2022-02-22 04:15
marcanbut I also want to know whether the disk0sN numbering is consistent with partition order (I don't think it is after making changes, but maybe it always is on boot?)#asahi · 2022-02-22 04:15
marcanso I can sort by offset and compute free space properly, if the data is good#asahi · 2022-02-22 04:15
marcanit only lists partition offsets and sizes#asahi · 2022-02-22 04:15
marcanthe plist doesn't have a concept of free space#asahi · 2022-02-22 04:14
marcanwe certainly don't parse the user-friendly output ;)#asahi · 2022-02-22 04:14
marcanyes#asahi · 2022-02-22 04:14
marcanwhat I want to know is what diskutil info -plist <partition> says, in particular PartitionMapPartitionOffset and TotalSize#asahi · 2022-02-22 04:09
marcanbut we need to know exactly what happens#asahi · 2022-02-22 04:09
marcanso if we determine diskutil gets confused with out-of-order partitions and there is no workaround, I can add a cross-check to detect that case#asahi · 2022-02-22 04:09
marcanwe can read the EFI GPT partition map directly from the installer, but we can't write to it#asahi · 2022-02-22 04:08
marcanfor everyone messing with partitions: it would help a lot if you can narrow down what happens in confusing cases, like when partitions are out of order#asahi · 2022-02-22 00:45
marcanthat one is DCP's job#asahi · 2022-02-22 00:45
marcankettenis: don't think backlight is supposed to go through GPIO directly#asahi · 2022-02-22 00:44
marcan*for the lid#asahi · 2022-02-22 00:44
marcanso in fact we can't for that one, it sends special case events instead :-)#asahi · 2022-02-22 00:43
marcanwe *can* support interrupts for the GPIOs, but GPIO1 behaves differently anyway#asahi · 2022-02-22 00:43
marcanthere's an SMC HID driver planned#asahi · 2022-02-22 00:43
marcanwe do not support interrupts; lid is a special case#asahi · 2022-02-22 00:43
marcankettenis: SMC sends HID events for the key, we wouldn't be using the GPIO directly#asahi · 2022-02-21 15:19
marcanyes#asahi · 2022-02-21 15:11
marcanthis is system firmware#asahi · 2022-02-21 15:11
marcanyou mean when you come from x86 UEFI :p#asahi · 2022-02-21 15:11
marcanit just means "the user held down the power button once and a proper recovery was booted"#asahi · 2022-02-21 15:10
marcan(yes the name is kind of terrible)#asahi · 2022-02-21 15:10
marcan1TR is not a thing, it's a mode#asahi · 2022-02-21 15:09
marcanthat is called System Recovery and is part of system firmware and nobody should ever delete it#asahi · 2022-02-21 15:08
marcanthat is not 1TR, that was a misunderstanding that became invalid with 12.x#asahi · 2022-02-21 15:07
marcanthe kernel always boots from internal disk#asahi · 2022-02-21 15:07
marcanas400[m]: indirectly, yes#asahi · 2022-02-21 14:12
marcaneventually it's entirely possible we'll figure out how to trigger a run the updater ramdisks (I think it's a ramdisk?) from linux#asahi · 2022-02-21 14:11
marcanI think that one ends up requiring internet activation due to its nature#asahi · 2022-02-21 14:11
marcanthere's also the idevicerestore way of updating SFR, though it's a big hammer and probably not a good idea to recommend#asahi · 2022-02-21 14:11
marcanI just haven't tested if all that works properly from an external one yet#asahi · 2022-02-21 14:11
marcanj`ey: yes, I mean if you have an install in an external HDD nothing stops you from deleting the internal one#asahi · 2022-02-21 13:42
marcanj`ey: nothing stops you from deleting macOS if you want post facto, and I guess I should make the installer be able to recognize a external install for auth purposes... though I'm not sure if that works with Apple's own tooling to begin with, need to test#asahi · 2022-02-21 04:15
marcanwe just install the code, but there's no way for us to screw that up since it's signed, and once you make macOS the default none of the stuff we touched comes into play any more#asahi · 2022-02-21 04:15
marcanall that boot options screen and recovery mode stuff is Apple code#asahi · 2022-02-21 04:14
marcanzv: if this still happens after setting the macOS volume as default, this is a monitor or Apple problem; nothing we can do about that unfortunately