]> git.ipfire.org Git - thirdparty/dracut.git/commit
dracut-functions: get_persistent_dev() fall back to the original name
authorWANG Chao <chaowang@redhat.com>
Mon, 28 Jul 2014 14:26:28 +0000 (22:26 +0800)
committerHarald Hoyer <harald@redhat.com>
Fri, 15 Aug 2014 10:35:01 +0000 (12:35 +0200)
commita628b7caf52459a31c46463744fafc42bb8f3407
tree3e2235c75a8d872e1893251930b769d6234068ec
parent11b5db88c2d9290fc438b12a79a50bdd1d327203
dracut-functions: get_persistent_dev() fall back to the original name

In case of raw disk/partition, ex. /dev/vda1, which doesn't contain any
filesystem on it. get_persistent_dev() would return empty. Now fix it to
return its original name, /dev/vda1 in above case. So that we don't have
to check its return string every time.

Signed-off-by: WANG Chao <chaowang@redhat.com>
dracut-functions.sh