From 43da5c516d66a496791fb2d7140da5c816c45d96 Mon Sep 17 00:00:00 2001 From: WANG Chao Date: Thu, 27 Jun 2013 23:42:07 +0800 Subject: [PATCH] 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 Signed-off-by: Vivek Goyal Acked-by: Vivek Goyal --- mkdumprd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mkdumprd b/mkdumprd index b408b37..69c91a5 100644 --- a/mkdumprd +++ b/mkdumprd @@ -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() {