From: WANG Chao Date: Mon, 28 Jul 2014 14:26:28 +0000 (+0800) Subject: dracut-functions: get_persistent_dev() fall back to the original name X-Git-Tag: 039~43 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a628b7caf52459a31c46463744fafc42bb8f3407;p=thirdparty%2Fdracut.git 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 --- diff --git a/dracut-functions.sh b/dracut-functions.sh index 6cdfea0f5..b07063fdd 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -388,6 +388,7 @@ get_persistent_dev() { return fi done + echo $1 } expand_persistent_dev() {