extlinux: use sysfs to find the device node if need be
commit07f7e9b8005ee8c1879589d9b606c157f28f9f25
authorH. Peter Anvin <hpa@zytor.com>
Wed, 8 Feb 2012 18:15:50 +0000 (8 10:15 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 8 Feb 2012 18:18:36 +0000 (8 10:18 -0800)
tree5eb2713ae02ce3ac32940ac1a58a908ec78923b8
parentf49425356d7a6a9885eda269ee6261a425328ade
extlinux: use sysfs to find the device node if need be

If neither /proc/mounts nor /etc/mtab contains a functional pointer to
the device node for the installer, try to see if we can find the
device node by looking for a symlink in /sys/dev/block.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
extlinux/main.c