I tried to find this information in the github documentation and online, but failed. I'd like to know how NOOBS knows what OS was booted last? I'm assuming that it stores this a number in some variable and then on next boot it uses this information. The problem is that I want to work with a NOOBS install with two OS via ssh, and want to be able to "switch OS's" at times. If I issue reboot, it will but it will boot back into the same OS unless I locally chose otherwise in the splash screen. But the problem is that I am not available locally.
I realize that I can mount the partitions to access data on on the storage of the other OS, but some times I want to be able to run it also.
If there is indeed such a variable somewhere, then I could simply mount the NOOBs partition, edit that number and reboot. It would then boot into the "wrong OS" thinking that it was where it was last.
EDIT: in noobs.conf there is:
. I wonder if this is it?