Re: reserve_mem command line option causing a reboot but not by the kernel

From: Steven Rostedt
Date: Tue Oct 08 2024 - 13:23:03 EST


On Sun, 6 Oct 2024 13:32:33 -0400
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> I don't have time to debug further. Maybe I need to look at the legacy
> grub code. I just found this interesting and decided to share. Perhaps
> someone else might hit this too?

I found that one of my old test machines also uses legacy grub, and it too
has the same issue.

It appears that grub does indeed search for "mem=" (without looking for
something before it) in the kernel command line.

https://github.com/jezze/grub-legacy/blob/master/stage2/boot.c#L275

Thus, "reserve_mem=" (or any other "mem=" option) cannot be used with legacy
grub installs :-p

-- Steve