ipxe menu problem
-
@stiger said in ipxe menu problem:
Now I want to edit / delete the two item which i added , but i don’t know how to do.
FOG web gui -> FOG Configuration -> iPXE Menu Item Settings -> Find your item
-
I can find it .
Now the question is when I click the item name , nothing happen, I can’t see the delete and save changes button . -
@george1421 or @Sebastian-Roth can one of you confirm this issue? He’s saying once a new menu item is created, he can’t later edit it at all. It may be a normal bug, or it may be something with the strings he’s using (doubtful).
-
@stiger Sorry for taking so long to look into this. I can confirm this being an issue but only if a number is used as first character in the name! If you name it
ape
or justpe
you don’t have that issue. I have looked through the JS and CSS code but as I am not an expert with that stuff I couldn’t come up with a quick fix yet.Playing with an example of
fadeToggle
(which we use in the web UI) I see that this is not generally impossible the way we use it - our code and example website. Maybe someone else has some time to play with this and can figure this out.So back to your problem of not being able to edit that entry. Till we find a fix in the web UI you can modify the entry in the database by hand.
shell> mysql -u root -p Enter password: ... mysql> use fog; ... mysql> UPDATE pxeMenu SET pxeName='fog.0pe' where pxeName LIKE '%0pe%'; ... mysql> quit; shell>
Then reload the
iPXE Menu Item Settings
page and you should be able to edit the menu entry. You can still have0pe
as Description to be seen by users in the FOG menu on boot. -
Thanks a lots.
-
@stiger Did you solve it by changing the stuff in the database?
-
It’s work. I solved it. Thank you!
-
@stiger No I didn’t mean “mark this topic solved” but wanted to ask you how you solved the issue? It’s important to know for other people having the same issue.
I opened an issue on github for this. So we can leave this topic marked as solved.
-
@sebastian-roth
I modify the entry in the database by hand as you told me .shell> mysql -u root -p Enter password: mysql> use fog; mysql> UPDATE pxeMenu SET pxeName='fog.0pe' where pxeName LIKE '%0pe%'; mysql> quit; shell>
Now that everything is fine, I can edit or delete it.
-
I’ve made an edit to hopefully address this in working branch.