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:
parent
fea5fd770f
commit
7de0cc4a92
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user