]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
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)
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

index 6cdfea0f5d900d7823fb7d900d6b9b7d8f848349..b07063fddc093546412b13a6a35652be25dc7d64 100755 (executable)
@@ -388,6 +388,7 @@ get_persistent_dev() {
             return
         fi
     done
+    echo $1
 }
 
 expand_persistent_dev() {