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

Cannot boot local from my Advanced PXE Menu (EXIT Type differences?)

Scheduled Pinned Locked Moved Solved
FOG Problems
3
3
1.7k
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.
  • X
    x23piracy
    last edited by x23piracy Sep 20, 2017, 5:53 AM Sep 20, 2017, 11:51 AM

    Server
    • FOG Version: RC9 (49)

    Hi,

    since some weeks or maybe months i cannot boot local from my pxe advanced menu anymore.
    When i hit “Festplatte booten” the clients stick in the Advanced Menu (just screen flashes) it’s like i reentering the same menu again.

    Below the lines i use in my menu (it’s shortened):

    :MENU
    menu
    item --gap -- Company - PXE Boot Menu - JOS IT
    item --gap --
    item bootlocal Festplatte booten
    item --gap --
    item return <---
    choose --default bootlocal --timeout 60000 target && goto ${target}
    :bootlocal
    sanboot --no-describe --drive 0x80 || goto MENU
    

    I already tried exit instead if sanboot but it’s not working.
    Any idea?

    Something else, what about the different exit types, are there more informations about them?

    Bild Text

    Why is there a difference between the exit types of legacy and efi?

    Regards X23

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

    G 1 Reply Last reply Sep 20, 2017, 12:04 PM Reply Quote 0
    • T
      Tom Elliott
      last edited by Sep 20, 2017, 11:58 AM

      I don’t know what’s up with your advanced menu, but maybe it needs the “:return” lines added? Something like:

      (Sorry I forget the exact method)

      :return
      chain -ar http://${fog-ip}${booturl}/management/index.php
      

      There are two exit types because exiting back to disk is different from Legacy/CSM and UEFI. With Legacy/CSM your HDD requires an MBR. The BIOS will look for the MBR and find the boot partition marked active. It will then boot using that partition. In UEFI, booting is not handled by MBR/Find where its booting. It’s handled, often times, in NVRAM on the BIOS. It looks there for the boot file required to start. There is an EFI partition that can also tell the machine how to boot, but there is no “marked active boot” in the UEFI world. So efi exit in some/most cases will be different from legacy boot.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      1 Reply Last reply Reply Quote 0
      • G
        george1421 Moderator @x23piracy
        last edited by Sep 20, 2017, 12:04 PM

        @x23piracy Because there is a difference.

        Typically for bios (legacy) mode the exit mode is SANBOOT (that is the way iPXE attempts to location the hard drive). For uefi system the best exit mode is rEFInd, which is an external program that is used to find the boot drives. You may be able to tweak the refind.conf file to look for legacy stuff but I haven’t tried it.

        There is something I just discovered the other day while I was hacking FOG’s boot menus. That is the platform variable. ref: http://ipxe.org/cfg/platform you can use that in your boot local section to test to see if the platform is efi or pc-bios and then select the best exit mode there.

        such as in: (warning I just glued this code together there is no testing done)

        :bootlocal
        iseq ${platform} efi && goto boot-efi || goto boot-bios
        goto MENU
        
        :boot-efi
        <don't know the syntax for refind> || goto MENU
        :boot-bios
        sanboot --no-describe --drive 0x80 || goto MENU
        

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

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

        176

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project