ipxe menu problem
-
today i create a iPXE New Menu Entry , use 0pe as Menu Item. but when i save it , i can’t edit it. the 0pe menu is on the top and when i click it , nothing happed.
-
@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. -
@stiger We need to know all of the parameters you used to create the item, not just it’s title.
-
When I create the item this time,
I think I filled those field (I’m not sureMenu Item : 0pe
Description : 0pe
Parameters :kernel http://${fog-ip}/iso/pe/dat10.dat vga=788 force_modules=usbhid quiet initrd http://${fog-ip}/iso/pe/dat11.dat http://${fog-ip}/iso/pe/dat12.dat boot
Menu Show with : All Hosts
-
@stiger What version of FOG?
-
It’s 1.5 RC 10
I test it again:
Menu Item : 0pe1
Description : 0pe1
Parameters :kernel http://${fog-ip}/iso/pe/dat10.dat vga=788 force_modules=usbhid quiet initrd http://${fog-ip}/iso/pe/dat11.dat http://${fog-ip}/iso/pe/dat12.dat boot
Menu Show with : All Hosts
same problem
-
@stiger What’s dat10.dat and dat11.dat ? Those filenames don’t sound like a kernel and init to me. What is it you’re trying to boot through fog?
-
@wayne-workman
It’s bootable files from Acronis True Image 2017 New Generation x64 Linux Boot CD -
@stiger Look at this post:
https://forum.acronis.com/forum/acronis-true-image-home-forum-older-versions/pxe-boot-possible
I’m copy/pasting the important part in case the resource goes away:
After the installation of Acronis on your Desktop DON’T create an ISO.
Start a creation of an USB stick. Then on the USB Stick you’ll find the files
dat3.dat / dat2.dat.
The file dat3.dat ist the kernel.dat.
File dat2.dat ist the ramdisk.datSo you could rename them and copy it to you’re tftp.
The menu should so look something like:SAY 02 Acronis true Image 2010 Home
LABEL 02
kernel acronis/kernel.dat
append initrd=/acronis/ramdisk.dat vga=791 root=/dev/ram0 quiet -
Thank you very much.
Now I want to edit / delete the two item which i added , but i don’t know how to do.
-
@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.