mirror of
https://github.com/netbootxyz/netboot.xyz.git
synced 2026-04-25 07:05:56 +03:00
[GH-ISSUE #652] Add ability to change kernel command line options for every linux target #193
Labels
No labels
Hacktoberfest
Hacktoberfest
bootloader
bsd
bug
confirmed
documentation
duplicate
enhancement
enhancement
enhancement
eol
experimental-merged
freebsd
help wanted
invalid
investigate
ipxe
linux
live-os
memdisk
menu
no-issue-activity
no-issue-activity
pull-request
released
todo
upstream
windows
windows
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/netboot.xyz#193
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cmhe on GitHub (Jun 10, 2020).
Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/652
Originally assigned to: @antonym on GitHub.
In many instances it becomes necessary to customize the kernel command line before booting a image. For instance to customize the
console=*option for boards without screen and only serial connection. (I encountered that problem when trying to boot the system rescue cd on my pc engine apu2 board)One way to solve that would be to add a ipxe variable to every kernel command line and add a ipxe shell option to every menu item to allow customization of it. A first step would be to add the
consoleipxe variable to every kernel command line.I don't know enough about ipxe to know if there a better ways to modify string variables from a menu. Or if there is a way to edit ipxe scripts in memory like it is in grub.
Creating custom scripts for this does not seem feasible, since that would have to be done for every linux target.
@antonym commented on GitHub (Jun 10, 2020):
I think we can probably add a menu option under Utilities that allows you to set a variable that is then placed anytime a kernel command line is loaded. Then we'd just need to load the variable if set. Would something like that work?
@cmhe commented on GitHub (Jun 10, 2020):
Sounds like it would be enough. Full parameter preview and editing capabilities would be optimal, but at least adding some optional parameters would be great.
@antonym commented on GitHub (Jun 10, 2020):
Yeah, just thinking on how to avoid creating an option for every menu page.
I could just import a jinja template for each menu that reflects those settings but it might be overkill to start. Adding the single global override option should get you what you would need to start.
@bluecmd commented on GitHub (Jun 19, 2020):
+1! I need to be able to set serial console boot options as well, this would be great :-)