r7478 Advanced Boot Menu not worked

  • 0_1462367542212_untitled.png

    item --gap – ---------------- AntiVirus Diagnostics ----------
    item avg AVG
    item kav Kaspersky
    item panda Panda
    item --gap – ---------------- Memory Diagnostics -------------
    item memtest Memtest86+ 5.01
    item msm Windows Memory Diagnostic
    item --gap – ---------------- HDD Diagnostics ----------------
    item fujitsu Fujitsu HDD Diagnostic
    item ibm IBM / Hitachi (OLD) HDD Diagnostic
    item samsung Samsung HDD Diagnostic
    item seagate Seagate HDD Diagnostic
    item seagateold Seagate Old HDD Diagnostic
    item seagatefirm Seagate HDD Firmware Diagnostic
    item seagatens Seagate HDD Barracuda ES Firmware Diagnostic
    item toshiba Toshiba HDD Diagnostic
    item wd Western Digital HDD Diagnostic
    item wdold Western Digital Old HDD Diagnostic
    item --gap – ---------------- Partition Managment --------------
    item mbrwizd MBR Rewrite
    item fog.fastwipe FastWipe
    item gparted GParted
    item src System Rescue
    item --gap – ---------------- Password Recovery ----------------
    item owpre Offline Windows Password & Registry Editor
    item return return to previous menu
    choose --default return --timeout 15000 target && goto ${target}
    initrd http://${fog-ip}/IMG/wd.img
    chain memdisk keeppxe ||
    goto MENU2
    initrd http://${fog-ip}/ISO/wdold.img
    chain memdisk raw keeppxe ||
    goto MENU2
    initrd http://${fog-ip}/IMG/ibm.img
    chain memdisk keeppxe ||
    goto MENU2
    initrd http://${fog-ip}/IMG/seagate.img
    chain memdisk keeppxe ||
    goto MENU2
    initrd http://${fog-ip}/IMG/seagateold.img
    chain memdisk keeppxe ||
    goto MENU2
    initrd http://${fog-ip}/ISO/SeagateFirmware.iso
    chain memdisk iso raw ||
    goto MENU2
    initrd http://${fog-ip}/ISO/ST31000340NS.iso
    chain memdisk iso raw ||
    goto MENU2
    initrd http://${fog-ip}/IMG/samsung.img
    chain memdisk keeppxe ||
    goto MENU2
    initrd http://${fog-ip}/IMG/fujitsu.img
    chain memdisk keeppxe ||
    goto MENU2
    initrd http://${fog-ip}/IMG/toshiba.img
    chain memdisk keeppxe ||
    goto MENU2
    initrd http://${fog-ip}/ISO/mt501.iso
    chain memdisk iso raw ||
    goto MENU2
    initrd http://${fog-ip}/IMG/msm.img
    chain memdisk keeppxe ||
    goto MENU2
    kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 keymap= web=${fog-ip}/fog consoleblank=0 loglevel=4 capone=1 mode=wipe wipemode=fast mac=00:00:00:00:00:00
    imgfetch init_32.xz
    boot ||
    goto MENU2
    kernel http://${fog-ip}/ISO/Gparted/vmlinuz boot=live username=user config keyboard-layouts=us components quiet noswap nomodeset vga=791 fetch=http://${fog-ip}/ISO/Gparted/filesystem.squashfs
    initrd http://${fog-ip}/ISO/Gparted/initrd.img
    boot ||
    goto MENU2
    kernel http://${fog-ip}/ISO/SRC/rescue32 setkmap=us dostartx netboot=http://${fog-ip}/ISO/SRC/sysrcd.dat
    initrd http://${fog-ip}/ISO/SRC/initram.igz
    boot ||
    goto MENU2
    initrd http://${fog-ip}/IMG/mbrwizd.img
    chain memdisk keeppxe ||
    goto MENU2
    kernel http://${fog-ip}/ISO/KAV/rescue root=live kav_lang=en udev liveimg doscsi nomodeset
    initrd http://${fog-ip}/ISO/KAV/rescue.igz
    boot ||
    goto MENU2
    kernel http://${fog-ip}/ISO/AVG/vmlinuz max_loop=255 vga=791 init=linuxrc reboot=bios ramdisk_size=100000
    initrd http://${fog-ip}/ISO/AVG/initrd.lzm
    boot ||
    goto MENU2
    kernel http://${fog-ip}/ISO/Panda/vmlinuz boot=live union=aufs noswap fetch=http://${fog-ip}/ISO/Panda/filesystem.squashfs
    initrd http://${fog-ip}/ISO/Panda/initrd.img
    boot ||
    goto MENU2
    initrd http://${fog-ip}/ISO/cd140201.iso
    chain memdisk iso raw ||
    goto MENU2
    chain http://${fog-ip}/${fog-webroot}/service/ipxe/boot.php?mac=${net0/mac} ||
    goto MENU2

  • Path correct , problem with & in the script and how it stored

  • Developer

    @sgennadi is your path correct? You’re defining {boot-url} but you’re using {fog-ip} in the path to your image files

  • @sgennadi What HTML parser?

    Somethings gone wrong with how that information is stored (which is pretty obvious), but FOG has not caused that, at least not directly.

  • @sgennadi What @Sebastian-Roth is saying, is your script works perfectly fine. What we need is error logs to helps us at least with a starting point of what is going on.

  • Centos 7 (latest updates ) If I check boot.php
    http://x.x.x.x/fog/service/ipxe/boot.php I see problem with ampersand symbol $

  • Moderator

    Sometimes the code looks fine, but the structure is actually not filled in properly which causes stuff like this. I’m guessing something went wrong here :

    item return return to previous menu
    choose --default return --timeout 15000 target && goto ${target}

    It’s probably formatted accidentally something like

    item return return to previous menu
     --default return --timeout 15000 target && goto ${target}

    So expand the code box and double check all that.

  • I made new menu from faq sample - not worked

    Maybe problem with html parser

    I made new menu Bios with description Bios & Firmware



    Previous fog version now problem with “&” and description

  • I know what is my script worked and must work but no…
    when I choose Diagnostics
    0_1462429620499_2.JPG 0_1462429656458_error_log

  • Moderator

    @sgennadi If you don’t know where to find those logs check out the signature below my message…

    I just copy&pasted your script into my advanced menu config and it works like a charm.


  • @sgennadi apache error logs.

  • @Tom-Elliott
    Which log exactly you need?

  • @sgennadi Still, error logs? anything we can use to help figure out the issue? My guess, if I had to have one, is your pxe_menu_timeout value is not set currently. Because of this the menu is not setup correctly. Again this is just a guess, but error logs would certainly go a long way, and is there a real need for all this to be in the advanced menu? I ask because trunk allows you to put this all on the main menu screen now. Maybe it will have better luck that way?

  • I have 3 advanced menu item in the boot menu list, after svn update
    First menu with password not worked. Second worked fine. Third
    then i choose menu item i recieve error (see picture)… Menus worked fine for a long time ± 6 six month ( and I don’t do any changes)

  • Just because it doesn’t work does not automatically mean it’s a bug. Because of the way adv menu works, there is a high likelihood your code is the culprit for this “bug”. Of course a TON more information will be needed because your menu just shows us the menu structure. What’s causing the issue is totally unknown.

  • Moderator

    Any error messages you could share?

    It’s most likely a formatting issue, though.