View Single Post
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#51
Originally Posted by Sazpaimon View Post
Out of curiosity have you looked into booting nemo via a chroot ala nitdroid? I briefly tried to get it to work that way, but at the time I was trying to make a single kernel that booted both Nitdroid and Nemo, but ran into some issues and lost interest. Your way of actually separating the kernels is a lot better, and I think not having to sacrifice a partition on the EMMC would be a better solution to running Nemo. You could basically add something like a real_root argument to the kernel command line, and the preinit script could take that and use it to determine where to chroot before running init.
Mmmm. not a bad idea really. I have to try that.

Actually there is no need to add extra parameters to the kernel cmdline, it can be done the way I currently handle it;
I have separate preinit files for my kernels, like "/sbin/preinit_harmattan", "/sbin/preinit_nitdroid" and I just give that as the "init=xx" parameter when I boot off the selected kernel.
That way I can make all the selection&preparation stuff in the 1st-stage boot.