mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-21 16:39:39 +00:00
tool: support to set menuentry of GRUB
manually to self chosen value, by overwritting the tcl procedure grub_menuentry, e.g.: proc grub_menuentry { } { return "'My OS' --option_of_your_choice " } Fix #5398
This commit is contained in:
committed by
Christian Helmuth
parent
5665e8059a
commit
4da68e11b6
@ -2,6 +2,7 @@ proc binary_name_ld_lib_so { } { return "ld-linux.lib.so" }
|
||||
proc binary_name_core { } { return "core-linux" }
|
||||
proc binary_name_timer { } { return "linux_timer" }
|
||||
|
||||
proc grub_menuentry { } { return "'Genode on Linux'" }
|
||||
|
||||
##
|
||||
# Populate boot directory with binaries on Linux
|
||||
@ -56,7 +57,7 @@ proc run_boot_dir {binaries} {
|
||||
|
||||
set fh [open "[run_dir]/boot/grub/grub.cfg" "WRONLY CREAT TRUNC"]
|
||||
puts $fh "set timeout=0"
|
||||
puts $fh "menuentry 'Genode on Linux' {"
|
||||
puts $fh "menuentry [grub_menuentry] {"
|
||||
puts $fh " insmod linux"
|
||||
puts $fh " linux /vmlinuz console=ttyS0,115200 amd_iommu=off intel_iommu=off"
|
||||
puts $fh " initrd /initrd"
|
||||
|
Reference in New Issue
Block a user