diff --git a/kdumpst-load.sh.in b/kdumpst-load.sh.in index c28b925..02552e5 100644 --- a/kdumpst-load.sh.in +++ b/kdumpst-load.sh.in @@ -26,6 +26,11 @@ grub_update() { fi if [ "$1" = "pstore" ] && [ "${CRASHK}" -ne 0 ]; then + # Let's be sure our cmdline is there... + if ! grep -q "${GRUB_CMDLINE}" "${GRUB_CFG_FILE}"; then + return 0 + fi + sed -i "s/\"${GRUB_CMDLINE}/\"/g" "${GRUB_CFG_FILE}" if ! grub-mkconfig -o "${GRUB_BOOT_FILE}" 1>/dev/null; then