I'm running gentoo unstable, I recently downloaded wiper-3.1 and discovered that rdev is gone from util-linux-2.18.
The attached patch adds a very simple check to the rootdev variable, so that the /dev/root symlink may be used *before* using rdev.
It should work well as long as /dev/root is a symlink pointing to the root device. A regular block file won't do, "-h" explicitly checks for a symlink.
I'm not using lvm, dmcrypt or other layers so my /dev/root simply points to /dev/sda5.
If /dev/root always points to the correct root device and is updated by the kernel itself, I guess we can be sure that using it is a safe assumption. A root device on the device-mapper layer would point to /dev/mapper/rootfs following this reasoning. I'm unsure if this is what happens, though.
View and moderate all "patches Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Patches"
Patch to add /dev/root check