Score:0

How can I find the full list of acceptable `boot=` option of kernel?

de flag

I usually see options like boot=casper or boot=live. However, I cannot find anything describe the actual meaning of this option and I cannot find any piece of code handle this option at all. From kernel documents it said:

Parameters denoted with BOOT are actually interpreted by the boot loader, and have no meaning to the kernel directly.

So I guess this option is actually handled by whatever bootloader we used. However, I cannot find any code in grub2 or systemd-boot responsible for parsing boot=. Can anyone point me a direction where should I supposed to find out the code parsing the boot= option?

updates

hmmm... I think I found it. It is in /init, which do BOOT=${x#boot=} and then . /scripts/${BOOT}. So this actually depends on distro. I guess.

John Mahowald avatar
cn flag
Consider answering your own question. Enables better tracking of whether or not you got an answer. As to your question, please edit it to mention which software distro. Yes, its Linux because of kernel.org and systemd, but we should not have to guess, and Linux distros are wildly different.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.