use persistent name in kdump.conf of initramfs

In initramfs we should use persistent name created by udev to avoid
device rename issue.

fix by using udev persistent name when we copy the kdump.conf

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:14 +08:00
parent fea5fd770f
commit 7de0cc4a92
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ kdump_to_udev_name() {
dev=`blkid -L "${dev#LABEL=}"`
;;
esac
echo ${dev#/dev/}
echo $(get_persistent_dev "$dev")
}
kdump_is_bridge() {
@ -193,7 +193,7 @@ kdump_install_conf() {
do
case "$config_opt" in
ext[234]|xfs|btrfs|minix|raw)
sed -i -e "s#$config_val#/dev/$(kdump_to_udev_name $config_val)#" /tmp/$$-kdump.conf
sed -i -e "s#$config_val#$(kdump_to_udev_name $config_val)#" /tmp/$$-kdump.conf
;;
ssh|nfs)
kdump_install_net "$config_val"