- Map the given partition device name (/dev/sda3, /dev/hda7, /dev/mtdblock0p1, /dev/anythingIwant) to the major:minor device number
- Use those to create a temporary root device for major:0
- Perform actions on the temporary root device, and
- Delete the temporary root device.
Programming languages, Coding, executables, and scripting.
Since mapping between device names and device major:minor numbers is a convention not inherent to the kernel (e.g. mknod /dev/anythingIwant b 8 2), a general solution would simply ignore the string value.
Thanks cpoakes. That sheds some more light on the process. And what steps are needed to be performed. Which work for both conventional device nodes and mtb block naming schemes.