mkdumprd: get_persistent_dev() return original dev if no persistent dev exists.

kvm virtio-blk device, for example /dev/vdb, doesn't have serial id by
default. So there's no persistent device node under /dev/disk/ for
/dev/vdb.
In case no persistent dev for dump target, we should use the original
device name directly, not failing the mkdumprd.

v2: update warn message from Vivek.

Signed-off-by: WANG Chao <chaowang@redhat.com>
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
WANG Chao 2013-06-27 23:42:07 +08:00 committed by Baoquan He
parent ee7d1588f4
commit 43da5c516d

View File

@ -41,7 +41,8 @@ get_persistent_dev() {
fi
done
perror_exit "Persistent device name of $1 is not found."
perror "WARNING: Persistent device name of $1 not found. Using $1 as dump target name"
echo $1
}
add_dracut_arg() {