From 7f9d4f917aeec1c3034bf8b3b5bc19d2066a1ffa Mon Sep 17 00:00:00 2001 From: Dave Young Date: Thu, 20 Sep 2012 11:03:04 +0800 Subject: [PATCH] remove useless uuid and label handling When we intall kdump.conf to initramfs we have converted the UUID and LABEL to device name. So in initramfs these convert code is not used indeed. Signed-off-by: Dave Young Acked-by: Vivek Goyal --- dracut-kdump.sh | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/dracut-kdump.sh b/dracut-kdump.sh index 75c4a4e..8828472 100755 --- a/dracut-kdump.sh +++ b/dracut-kdump.sh @@ -66,24 +66,9 @@ get_mp() echo "$_mp" } -to_dev_name() -{ - local dev="$1" - - case "$dev" in - UUID=*) - dev=`blkid -U "${dev#UUID=}"` - ;; - LABEL=*) - dev=`blkid -L "${dev#LABEL=}"` - ;; - esac - echo $dev -} - dump_fs() { - local _dev=`to_dev_name $1` + local _dev=$1 local _mp=`get_mp $_dev` if [ -z "$_mp" ]; then