use by-uuid firstly in get_persistent_dev
authorDave Young <dyoung@redhat.com>
Mon, 24 Sep 2012 02:16:26 +0000 (10:16 +0800)
committerHarald Hoyer <harald@redhat.com>
Mon, 24 Sep 2012 11:12:26 +0000 (13:12 +0200)
commitf3f97774970e4f83af82ac58d4aab47a4d2ca1c7
treee2c7e4d31d3eb76b9283e4a4019fc00dc224b7ec
parent5596b70bd0e6276861842390829f362c1edf4a2d
use by-uuid firstly in get_persistent_dev

For devices with filesystem, udev /dev/disk/by-uuid/* links are always
reliable. So improve the get_persistent_dev() by using by-uuid/* firstly,
and fallback to use by-id/*

Signed-off-by: Dave Young <dyoung@redhat.com>
dracut-functions.sh