#asahi · 2021-01-10 10:21
marcanShiz: the sshd user is not who chroots#asahi · 2021-01-10 10:21
marcansshd should only be chrooting and then doing ~nothing with the OS AIUI#asahi · 2021-01-10 10:20
marcanI *think* that's ok?#asahi · 2021-01-10 10:20
marcan2021-01-10 10:20:24.026914+0000 0x1106 Default 0x0 0 0 kernel: (AppleMobileFileIntegrity) AMFI: hook..execve() killing pid 416: not allowed in chroot#asahi · 2021-01-10 10:20
marcan2021-01-10 10:20:24.026893+0000 0x1106 Default 0x0 0 0 kernel: (AppleMobileFileIntegrity) AMFI: hook..execve() hardened runtime not allowed in chroot#asahi · 2021-01-10 10:20
marcanah but this is just for execve#asahi · 2021-01-10 10:20
marcanactually wait#asahi · 2021-01-10 10:19
marcanchroot itself seems to work (in the terminal) so it's not some security stuff#asahi · 2021-01-10 10:16
marcanmeh, annoying, apple's 11.0.1 drop has openssh 7.1 but the current version is 8.1p1#asahi · 2021-01-10 10:12
marcanby the way, this is the current sshd problem: Jan 10 10:11:51 fuwa sshd[398]: fatal: chroot("/var/empty"): Operation not permitted [preauth]#asahi · 2021-01-10 10:04
marcanif it doesn't, we know it won't#asahi · 2021-01-10 10:04
marcanif it works, I might be able to set up customkc before official support, and it'll be useful for future similar experiments#asahi · 2021-01-10 10:04
marcanso now I'm tempted to just try hacking this with python#asahi · 2021-01-10 09:56
marcanyeah that's what I meant#asahi · 2021-01-10 09:52
marcanShiz: bputil actually doesn't default to anything, if you have more than one volume it prompts :)#asahi · 2021-01-10 09:36
marcanwonder if those external boots then get another key#asahi · 2021-01-10 09:36
marcancool#asahi · 2021-01-10 09:32
marcanthough I guess it only has the vguid, hm#asahi · 2021-01-10 09:30
marcanhave you dumped those img4s yet?#asahi · 2021-01-10 09:30
marcanbut I mean, it could be two things in the boot policy, vuid of the preboot volume and vgid to boot#asahi · 2021-01-10 09:29
marcanyeah#asahi · 2021-01-10 09:29
marcanyeah but I'm not sure how that gets passed to darwin#asahi · 2021-01-10 09:29
marcannot necessarily, if it just boots from an internal partition I guess?#asahi · 2021-01-10 09:27
marcanit could be in there or it could be a separate volume#asahi · 2021-01-10 09:27
marcanin particular, just run `find /System/Volumes/iSCPreboot` and see if there is anything other than LocalPolicy (a couple img4 files per dir) and SFR/ related stuff#asahi · 2021-01-10 09:26
marcanand then run diskutil info on each#asahi · 2021-01-10 09:26
marcanor just look for everything under /dev/disk*#asahi · 2021-01-10 09:26
marcandiskutil list -plist shows most things (but in plist format)#asahi · 2021-01-10 09:25
marcanremember diskutil hides things from you#asahi · 2021-01-10 09:25
marcanlook at iSC too#asahi · 2021-01-10 09:19
marcanpresumably at least part or all of the Preboot volume#asahi · 2021-01-10 09:19
marcanand I'd like to know where and how#asahi · 2021-01-10 09:18
marcanyes, but what I mean is that once you have booted the external OS at least once, there should be stuff from that external OS copied to the internal SSD *somewhere*#asahi · 2021-01-10 09:16
marcanand where it gets copied#asahi · 2021-01-10 09:16
marcanbut it'll be really interesting to see how that works#asahi · 2021-01-10 09:16
marcanin principle all the preboot stuff should get copied over, because iBoot can't *actually* boot from an external disk#asahi · 2021-01-10 09:16
marcanalso, can you look at your internal volumes in recovery, after booting from the external disk?#asahi · 2021-01-10 09:15
marcansounds like a bputil bug in that case#asahi · 2021-01-10 09:15
marcanhuh, that's odd#asahi · 2021-01-10 09:10
marcan*terrible#asahi · 2021-01-10 09:10
marcanthis is also the kind of thing where there is room for Apple to make life easier for us in the future (hint hint nudge nudge) so it's not terribly if it's clunky initially#asahi · 2021-01-10 09:10
marcananyway, I guess for the time being I will resort to doing a proper macOS install, and punt reducing this process to later#asahi · 2021-01-10 09:08
marcanthe quotes matter.#asahi · 2021-01-10 09:07
marcanthere's something broken about the personalization process (picks the wrong preboot path), but I was able to fix it with a silly symlink#asahi · 2021-01-10 09:07
marcan(which I suspected might happen)#asahi · 2021-01-10 09:07
marcanunfortunately, the next problem is there is no admin user in that OS partition to authorize downgrading security#asahi · 2021-01-10 09:07
marcansuccess! I got it to "boot" "Linux" :-)#asahi · 2021-01-10 07:50
marcanso it should be in bputil soon#asahi · 2021-01-10 07:50
marcanbut at least that's in the manpage#asahi · 2021-01-10 07:50
marcanif Apple makes life easier for us in the future I will be eternally grateful :)