I've been reading on the forums on the possibility of having multiple OSes inside 1 EMMC for the Opi PC+. From what I understand, inside a typical EMMC installation, it has 3 partitions:
1) Bootloader partition, which runs first and starts the main partition
2) main partition, contains OS files
3) unallocated free space
suppose I have 2 devices:
1. Armbian Jammy Server
2. Armbian Jammy Desktop
Now I want to make another device that has 2 OS partitions, like so:
1) Bootloader
2) 1st OS main partition,
3) 2nd OS main partition,
4) unallocated free space
I'm thinking of using DD to extract the image out from 1 OS and dd it back into the other (booting the devices using another OS from SD card).
I'm guess taking out the desktop image and put it inside the server device...
If this is done, how do I make it so that the 2nd OS is bootable? It can be like this:
1) Select which OS to boot on startup ala GRUB
2) Boot into 1st OS, then boot into 2nd OS from 1st OS.
I want to make this as a way to make the 2nd OS robust. 2nd OS is the work OS, 1st OS is diagnostics OS. The idea is to make the 1st OS able to fsck/remote rsync the 2nd OS OS in case the 2nd OS corrupts/needs updates.