help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

menuentry vs submenu


From: Adam Vodopjan
Subject: menuentry vs submenu
Date: Fri, 16 Jun 2023 01:34:09 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0

Looking into grub-core/normal/menu.c and grub-core/commands/menuentry.c I could
think the only difference between menuentry and submenu is the latter executes
its body in a new context. So these two pieces are literally the same:

menuentry 'some title' {
    configfile some.cfg
}

submenu 'some title' {
    source some.cfg
}

Is it so indeed?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]