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

Alternate efi boot to hard drive option

Scheduled Pinned Locked Moved
Feature Request
efi refind exit boot
2
2
1.2k
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.
  • J
    JJ Fullmer Testers
    last edited by Feb 27, 2020, 10:21 PM

    I just wanted to make a matching forum post for my github issue here

    https://github.com/FOGProject/fogproject/issues/373

    rEFInd, while a really cool tool, is not universally compatible.

    Sometimes when a computer attempts to boot to hard drive from the pxe menu it gets stuck trying to load refind. Sometimes different configurations in the refind.conf file can help, but in a mixed hardware environment it’s not uncommon to not be able to find a universal answer.

    Some of these hardware compatibility issues have been brought to the attention of the refind developer but he eventually figured that it sounded like a low number of computers, personally I find the opposite. We used to use rEFInd as a custom boot manager built into our images, but it had enough problems that we’ve moved to grub2win a grub 2 based windows efi compatible solution. I have attempted to add a chain load option to this copy pasting the boot files to the fog webserver to no avail. So while perhaps an efi version of grub2 might be an alternate option I haven’t found a way to get that working just yet.

    In doing some testing with the ipxe shell and reading their documentation (https://ipxe.org/cmd/exit) the exit command can take parameters of 1 or 0 to send a error (1) or success (0) to the bios/firmware. Theoretically sending the 1 would tell the firmware to try the next boot option. I was able to exit the ipxe shell and boot to my local disk with exit 0 and exit 1 where just exit goes to black nothingness. I attempted to add this command to the bootmenu options of fog, but it didn’t work for me straight through the pxe menu.

    I also messed with sanboot a bit, but couldn’t find a way to list what local drives the ipxe shell sees. The documented examples of 0x80 0x81 0x82 etc were not recognized.

    Point is, there needs to be another option for booting to the hard drive on efi systems when refined doesn’t work. There are some possibilities out there.

    Have you tried the FogApi powershell module? It's pretty cool IMHO
    https://github.com/darksidemilk/FogApi
    https://fogapi.readthedocs.io/en/latest/
    https://www.powershellgallery.com/packages/FogApi
    https://forums.fogproject.org/topic/12026/powershell-api-module

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Feb 28, 2020, 6:54 AM

      @JJ-Fullmer It’s good you bring this point up. We get posts in the forums every now and then but it’s very hard to estimate how often this really happens in the wild as we have no numbers of rEFInd working properly.

      Adding more options is a good idea either way as it doesn’t hurt us and might help people.

      Personally having used grub2 to PXE boot I will get onto that and see what’s the best way to add this to FOG.

      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 1
      • 1 / 1
      1 / 1
      • First post
        2/2
        Last post

      158

      Online

      12.1k

      Users

      17.3k

      Topics

      155.3k

      Posts
      Copyright © 2012-2024 FOG Project