kdump-lib: strip grub device from kdump_bootdir
When trying to setup kdump for fedora-coreos, kdumpctl start fails to find the correct boot directory since BOOT_IMAGE start with the grub device name Signed-off-by: Yuval Turgeman <yturgema@redhat.com>
This commit is contained in:
parent
e07fc3e071
commit
4714c7c8a3
@ -667,7 +667,7 @@ check_boot_dir()
|
|||||||
kdump_bootdir="/boot"
|
kdump_bootdir="/boot"
|
||||||
else
|
else
|
||||||
eval $(cat /proc/cmdline| grep "BOOT_IMAGE" | cut -d' ' -f1)
|
eval $(cat /proc/cmdline| grep "BOOT_IMAGE" | cut -d' ' -f1)
|
||||||
kdump_bootdir="/boot"$(dirname $BOOT_IMAGE)
|
kdump_bootdir="/boot"$(dirname ${BOOT_IMAGE#*)})
|
||||||
fi
|
fi
|
||||||
echo $kdump_bootdir
|
echo $kdump_bootdir
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user