Submenus through chain loading. Any drawbacks?
|
2013-11-27, 15:52
(This post was last modified: 2013-11-28 09:12 by lawnmover.)
Post: #1
|
|||
|
|||
Submenus through chain loading. Any drawbacks?
Hi all,
while playing with iPXE lately and having a working setup working distros came flying in so my main menu got a bit crowed and I decided to go with submenus. Following the example on https://gist.github.com/robinsmidsrod/22...u-ipxe-L16 I found the file a bit to big and tried to split the submenus into seperate files calling them with chain filename. This worked reall easy. Just now I wonder if there might be any drawbacks in the method I'm using? This calls menu-inst.ipxe just fine and presents the submenu. Code: # calling the submenu from main menu The back item just calls the main menu with chain and were back at the main menu. Code: #!ipxe I right now have on main menu file and three sub menu files. All neat and clean and easy to read. Also some code is duplicated like failed back and cancel but thats no deal for me. Any comments or thoughts you have calling submenus like that? Regards Lawnmover |
|||
2013-11-27, 21:50
Post: #2
|
|||
|
|||
RE: Submenus through chain loading. Any drawbacks?
That is as good a method as any. The reason I've got it all in one file in the example is that it is easier to copy and paste when I need to update the example. Using multiple files is more modular, and absolutely a Good Thing. I actually had my menus setup in multiple files, and then slowly combined them into a single one as I learned more about how to do things. What works for you is all dependent on your use-case.
|
|||
2013-11-28, 09:16
Post: #3
|
|||
|
|||
RE: Submenus through chain loading. Any drawbacks?
That sounds good. So I will procede with my way.
Thanks for such a nice and easy software. |
|||
2013-12-02, 08:23
Post: #4
|
|||
|
|||
RE: Submenus through chain loading. Any drawbacks?
Also some code is duplicated like failed back and cancel but thats no deal for me.
***UsEr*** |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)