• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    SOLVED > Cannot return in my old pxe menu

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    7
    1.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • x23piracyX
      x23piracy
      last edited by x23piracy

      Hi,

      i use my old menu from an older fog installation and i cannot return (go back) within my menu, that worked before. I think i miss something or need so change some line, can someone help please?

      This is my menu (i’ve shortened to desired lines):

      :MENU
      menu
      item return<---
      :return
      chain http://${fog-ip}/${fog-webroot}/service/ipxe/boot.php?mac=${net0/mac} ||
      prompt
      goto MENU
      autoboot
      

      When i try to return to main menu i get this:

      alt text

      Regards X23

      ║▌║█║▌│║▌║▌█

      1 Reply Last reply Reply Quote 0
      • Q
        Quazz Moderator
        last edited by

        What do you get when you manually go to boot.php in your browser?

        According to the ipxe website this happens when you try to goto to an unexisting label. Seeing as :MENU does exist, this indicates a formatting issue in your menu somewhere, imo.

        It’s possible something slightly shifted during an updated, likely a space or hard return or something similar that’s screwing up things. Do the other menu items all work? (particularily the ones just before/after the return item)

        x23piracyX 1 Reply Last reply Reply Quote 0
        • x23piracyX
          x23piracy @Quazz
          last edited by x23piracy

          @Quazz

          i get the following when calling: http://172.19.102.17/fog/service/ipxe/boot.php

          #!ipxe
          set fog-ip 172.19.102.17
          set fog-webroot fog
          set boot-url http://${fog-ip}/${fog-webroot}
          cpuid --ext 29 && set arch x86_64 || set arch i386
          goto get_console
          :console_set
          colour --rgb 0x00567a 1 ||
          colour --rgb 0x00567a 2 ||
          colour --rgb 0x00567a 4 ||
          cpair --foreground 7 --background 2 2 ||
          goto MENU
          :alt_console
          cpair --background 0 1 ||
          cpair --background 1 2 ||
          goto MENU
          :get_console
          console --picture http://172.19.102.17/fog/service/ipxe/bg.png --left 100 --right 80 && goto console_set || goto alt_console
          :MENU
          menu
          colour --rgb 0xff0000 0 ||
          cpair --foreground 1 1 ||
          cpair --foreground 0 3 ||
          cpair --foreground 4 4 ||
          item --gap Host is NOT registered!
          item --gap -- -------------------------------------
          item fog.local von Festplatte booten
          item fog.memtest Memtest86+ starten
          item fog.reginput Host Registrieren & Inventarisieren
          item fog.reg Schnellregistrierung & Inventarisierung
          item fog.quickimage Direktes Image
          item fog.multijoin Multicast Session beitreten
          item fog.sysinfo Client Compatibility System Information
          item fog.advancedlogin Erweitertes Menu
          choose --default fog.local --timeout 5000 target && goto ${target}
          :fog.local
          sanboot --no-describe --drive 0x80 || goto MENU
          :fog.memtest
          kernel memdisk iso raw
          initrd memtest.bin
          boot || goto MENU
          :fog.reginput
          kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 keymap= web=172.19.102.17/fog/ consoleblank=0 rootfstype=ext4 loglevel=4 mode=manreg
          imgfetch init_32.xz
          boot || goto MENU
          :fog.reg
          kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 keymap= web=172.19.102.17/fog/ consoleblank=0 rootfstype=ext4 loglevel=4 mode=autoreg
          imgfetch init_32.xz
          boot || goto MENU
          :fog.quickimage
          login
          params
          param mac0 ${net0/mac}
          param arch ${arch}
          param username ${username}
          param password ${password}
          param qihost 1
          isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
          isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
          :fog.multijoin
          login
          params
          param mac0 ${net0/mac}
          param arch ${arch}
          param username ${username}
          param password ${password}
          param sessionJoin 1
          isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
          isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
          :fog.sysinfo
          kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 keymap= web=172.19.102.17/fog/ consoleblank=0 rootfstype=ext4 loglevel=4 mode=sysinfo
          imgfetch init_32.xz
          boot || goto MENU
          :fog.advancedlogin
          login
          params
          param mac0 ${net0/mac}
          param arch ${arch}
          param username ${username}
          param password ${password}
          param advLog 1
          isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
          isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
          :bootme
          chain -ar http://172.19.102.17/fog/service/ipxe/boot.php##params ||
          goto MENU
          autoboot
          

          Or do you need http://172.19.102.17/fog/service/ipxe/boot.php?mac=mac ?

          http://172.19.102.17/fog/service/ipxe/boot.php?mac=08002792CA64 brings

          #!ipxe
          set fog-ip 172.19.102.17
          set fog-webroot fog
          set boot-url http://${fog-ip}/${fog-webroot}
          cpuid --ext 29 && set arch x86_64 || set arch i386
          goto get_console
          :console_set
          colour --rgb 0x00567a 1 ||
          colour --rgb 0x00567a 2 ||
          colour --rgb 0x00567a 4 ||
          cpair --foreground 7 --background 2 2 ||
          goto MENU
          :alt_console
          cpair --background 0 1 ||
          cpair --background 1 2 ||
          goto MENU
          :get_console
          console --picture http://172.19.102.17/fog/service/ipxe/bg.png --left 100 --right 80 && goto console_set || goto alt_console
          :MENU
          menu
          colour --rgb 0xff0000 0 ||
          cpair --foreground 1 1 ||
          cpair --foreground 0 3 ||
          cpair --foreground 4 4 ||
          item --gap Host is NOT registered!
          item --gap -- -------------------------------------
          item fog.local von Festplatte booten
          item fog.memtest Memtest86+ starten
          item fog.reginput Host Registrieren & Inventarisieren
          item fog.reg Schnellregistrierung & Inventarisierung
          item fog.quickimage Direktes Image
          item fog.multijoin Multicast Session beitreten
          item fog.sysinfo Client Compatibility System Information
          item fog.advancedlogin Erweitertes Menu
          choose --default fog.local --timeout 5000 target && goto ${target}
          :fog.local
          sanboot --no-describe --drive 0x80 || goto MENU
          :fog.memtest
          kernel memdisk iso raw
          initrd memtest.bin
          boot || goto MENU
          :fog.reginput
          kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 keymap= web=172.19.102.17/fog/ consoleblank=0 rootfstype=ext4 loglevel=4 mode=manreg
          imgfetch init_32.xz
          boot || goto MENU
          :fog.reg
          kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 keymap= web=172.19.102.17/fog/ consoleblank=0 rootfstype=ext4 loglevel=4 mode=autoreg
          imgfetch init_32.xz
          boot || goto MENU
          :fog.quickimage
          login
          params
          param mac0 ${net0/mac}
          param arch ${arch}
          param username ${username}
          param password ${password}
          param qihost 1
          isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
          isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
          :fog.multijoin
          login
          params
          param mac0 ${net0/mac}
          param arch ${arch}
          param username ${username}
          param password ${password}
          param sessionJoin 1
          isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
          isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
          :fog.sysinfo
          kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 keymap= web=172.19.102.17/fog/ consoleblank=0 rootfstype=ext4 loglevel=4 mode=sysinfo
          imgfetch init_32.xz
          boot || goto MENU
          :fog.advancedlogin
          login
          params
          param mac0 ${net0/mac}
          param arch ${arch}
          param username ${username}
          param password ${password}
          param advLog 1
          isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
          isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
          :bootme
          chain -ar http://172.19.102.17/fog/service/ipxe/boot.php##params ||
          goto MENU
          autoboot
          

          Since i am not sure if i need mac separated by : …
          http://172.19.102.17/fog/service/ipxe/boot.php?mac=08:00:27:92:CA:64 brings:

          #!ipxe
          set fog-ip 172.19.102.17
          set fog-webroot fog
          set boot-url http://${fog-ip}/${fog-webroot}
          cpuid --ext 29 && set arch x86_64 || set arch i386
          goto get_console
          :console_set
          colour --rgb 0x00567a 1 ||
          colour --rgb 0x00567a 2 ||
          colour --rgb 0x00567a 4 ||
          cpair --foreground 7 --background 2 2 ||
          goto MENU
          :alt_console
          cpair --background 0 1 ||
          cpair --background 1 2 ||
          goto MENU
          :get_console
          console --picture http://172.19.102.17/fog/service/ipxe/bg.png --left 100 --right 80 && goto console_set || goto alt_console
          :MENU
          menu
          colour --rgb 0xff0000 0 ||
          cpair --foreground 1 1 ||
          cpair --foreground 0 3 ||
          cpair --foreground 4 4 ||
          item --gap Host is NOT registered!
          item --gap -- -------------------------------------
          item fog.local von Festplatte booten
          item fog.memtest Memtest86+ starten
          item fog.reginput Host Registrieren & Inventarisieren
          item fog.reg Schnellregistrierung & Inventarisierung
          item fog.quickimage Direktes Image
          item fog.multijoin Multicast Session beitreten
          item fog.sysinfo Client Compatibility System Information
          item fog.advancedlogin Erweitertes Menu
          choose --default fog.local --timeout 5000 target && goto ${target}
          :fog.local
          sanboot --no-describe --drive 0x80 || goto MENU
          :fog.memtest
          kernel memdisk iso raw
          initrd memtest.bin
          boot || goto MENU
          :fog.reginput
          kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 keymap= web=172.19.102.17/fog/ consoleblank=0 rootfstype=ext4 loglevel=4 mode=manreg
          imgfetch init_32.xz
          boot || goto MENU
          :fog.reg
          kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 keymap= web=172.19.102.17/fog/ consoleblank=0 rootfstype=ext4 loglevel=4 mode=autoreg
          imgfetch init_32.xz
          boot || goto MENU
          :fog.quickimage
          login
          params
          param mac0 ${net0/mac}
          param arch ${arch}
          param username ${username}
          param password ${password}
          param qihost 1
          isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
          isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
          :fog.multijoin
          login
          params
          param mac0 ${net0/mac}
          param arch ${arch}
          param username ${username}
          param password ${password}
          param sessionJoin 1
          isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
          isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
          :fog.sysinfo
          kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 keymap= web=172.19.102.17/fog/ consoleblank=0 rootfstype=ext4 loglevel=4 mode=sysinfo
          imgfetch init_32.xz
          boot || goto MENU
          :fog.advancedlogin
          login
          params
          param mac0 ${net0/mac}
          param arch ${arch}
          param username ${username}
          param password ${password}
          param advLog 1
          isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
          isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
          :bootme
          chain -ar http://172.19.102.17/fog/service/ipxe/boot.php##params ||
          goto MENU
          autoboot
          

          All other Items work as expected.

          Regards X23

          ║▌║█║▌│║▌║▌█

          Q 1 Reply Last reply Reply Quote 0
          • Q
            Quazz Moderator @x23piracy
            last edited by

            @x23piracy Either works, just needed to be sure it loaded properly. The mac address just changes certain things if it’s registered as a host for example it will display certain items it otherwise wouldn’t and vica versa.

            I think posting the full advanced menu would be more useful as I think the problem is there somewhere, I’ve had this issue in the past where something small got altered during an update.

            x23piracyX 1 Reply Last reply Reply Quote 0
            • x23piracyX
              x23piracy @Quazz
              last edited by

              @Quazz here it is:

              :MENU
              menu
              item --gap -- Verder Scientific - PXE Boot Menu - JOS IT
              item --gap --
              item bootlocal Festplatte booten
              item --gap Betriebssystem installieren
              item --key 7 win7 Windows 7 x64 Vollautomatisch! PE 4.0
              item --key 2 win72 Windows 7 x64 Festplatten-Dialog PE 4.0
              item --key 3 win73 Windows 7 x64 Festplatten-Dialog PE 5.0
              item --gap Partition/Image/Backup
              item --key b acronis2014 Acronis True Image 2014
              item --key c acronis20142 Acronis True Image 2014 PE
              item --key r acronis20143 Acronis True Image 2014 PE RT
              item --key p easeuspms EaseUS Partition Master Server
              item --gap Password/Recovery/Restore/Repair
              item --key e erd2005 ERD Commander Windows XP
              item --key d dart7 DaRT 7.0 Windows 7 Server 2008 R2
              item --gap --
              item return<---
              choose --default bootlocal --timeout 60000 target && goto ${target}
              :bootlocal
              sanboot --no-describe --drive 0x80 || goto MENU
              :win7
              initrd http://${fog-ip}/iso/win7.iso
              chain memdisk iso raw ||
              goto MENU
              :win72
              initrd http://${fog-ip}/iso/win7_dialog.iso
              chain memdisk iso raw ||
              goto MENU
              :win73
              initrd http://${fog-ip}/iso/win7pe5_dialog.iso
              chain memdisk iso raw ||
              goto MENU
              :win74
              chain -ar ${boot-url}/service/ipxe/advanced.php?login=1 ||
              goto MENU
              :acronis2013
              initrd http://${fog-ip}/iso/acronis2013.iso
              chain memdisk iso raw ||
              goto MENU
              :acronis2014
              initrd http://${fog-ip}/iso/acronis2014.iso
              chain memdisk iso raw ||
              goto MENU
              :acronis20142
              initrd http://${fog-ip}/iso/acronis2014pe.iso
              chain memdisk iso raw ||
              goto MENU
              :acronis20143
              initrd http://${fog-ip}/iso/acronis2014pert.iso
              chain memdisk iso raw ||
              goto MENU
              :easeuspms
              initrd http://${fog-ip}/iso/easeuspms.iso
              chain memdisk iso raw ||
              goto MENU
              :erd2005
              initrd http://${fog-ip}/iso/erd2005.iso
              chain memdisk iso raw ||
              goto MENU
              :dart7
              initrd http://${fog-ip}/iso/dart7.iso
              chain memdisk iso raw ||
              goto MENU
              :shell
              shell ||
              goto MENU
              :return
              chain http://${fog-ip}/${fog-webroot}/service/ipxe/boot.php?mac=${net0/mac} ||
              prompt
              goto MENU
              autoboot
              

              ║▌║█║▌│║▌║▌█

              Q 1 Reply Last reply Reply Quote 0
              • Q
                Quazz Moderator @x23piracy
                last edited by Quazz

                @x23piracy There is no space between your item return and the <— which there should be!

                It’s currently item return<—

                It should be item return <—

                I should have caught that way earlier, lol.

                x23piracyX 1 Reply Last reply Reply Quote 1
                • x23piracyX
                  x23piracy @Quazz
                  last edited by

                  @Quazz that’s it 😄 Stupid me, i should find that by myself in normal… grrrr 😉
                  Thank you for your help.

                  Regards X23

                  ║▌║█║▌│║▌║▌█

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post

                  143

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project