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 <dyoung@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
Dave Young 2012-09-20 11:03:04 +08:00
parent 9171cb3020
commit 7f9d4f917a

View File

@ -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