This probably can be simplified further. Instead of finding ofbootpartnr, just use
ofboot=&device;:&partition;
This probably can be simplified further. Instead of finding ofbootpartnr, just use
ofboot= &device; :&partition;