Posts
And what is also interesting - the mounting. The easiest methods to do are either use vfs_switch_root call from kernel using PAC bypass or use mount() with correct apfs_mount_args. But they decided to do other way. First it creates a new tmpfs overlay at /var.. then it copies all /usr/lib to it and mounr_apfs util, after that switches root to tmpfs and mounts newly created disks to the following directories in tmpfs and then switches root back overwriting original volumes. This is crazy approach
The method how Fugu15_Rootful is achieving rootful is insanely interesting and hacky. The common way to think is that it creates one new APFS disk, copies rootfs to it and then remounts / to the new volume. But that is wrong. It creates 6 new disks and instead of copying full rootfs to them it copies only some directories (/usr, /etc, /Library, ...) and does not copy /System with its heavy DSC. It consumes less than 1 GiB! Linus Henze and tihmstar are genius! Thank you, still using it!
Was playing around one if my laptops and well, void linux on this 15 years old laptop is way bettyer than MacOS Ventura installed through Opencore. I even can play Minecraft on it in 50 fps, and more - I can reverse the private frameworks two times faster than on my main MacBook Air 2018!