Hi folks. Just finished reading the manual, and trying to figure if what I want to do is doable.
I see that I can install a config file into grub, using "grub-mkimage -c". I'd like the config file to do something like this:
If (this is my laptop) then (run the config file in Partition 1)
else if (this is my desktop) then (run the config file in Partition 2)
else (run the config file in Partition 3)
The idea being to have one USB stick that hold multiple boot partitions, one for each of my machines, plus one for an OS that completely resides on the USB.
For this to work, I need some way of probing some characteristics of the machine, to figure out which one I'm on. I won't be able to probe the disks for UUID's since they will be encrypted, holding nothing but apparently random data. I tried cpuid, but even after insmod'ing it, it's response is completely empty (at least on my laptop). I don't see anything else here I might be able to use. Thoughts?
On a related issue that may be more appropriately asked elsewhere (?), how do I get a Debian-like system (Ubuntu) to insert that config into grub (or use the new core.img) when grub updates?