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

    Fog driver injection in 2026.

    Scheduled Pinned Locked Moved Tutorials
    4 Posts 2 Posters 17 Views
    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.
    • P
      Paul Freeman
      last edited by

      My org used FOG many years ago and is now tired of Microsoft Autopilot, so I am setting up a new FOG site for our org.

      I have added the fog.drivers script from the tutorial site: https://forums.fogproject.org/topic/8889/fog-post-install-script-for-win-driver-injection

      It looks like the script attempts to run, but indicates some errors preventing the script from running. (see screenshot). At first I was running a modified version of the script, attempting to simplify the machine identification, but I have since tried running the script as it came from the FOG tutorial and have the same result.

      a7d821f6-fb5a-4c9f-bf61-7985d9177571-image.png

      Tom ElliottT 1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott @Paul Freeman
        last edited by

        @Paul-Freeman \r is usually an indicator.

        Like your script may have been opened/edited in Windows text editor/notepad, then saved and uploaded to /images/postdownloadscripts/fog.drivers

        Why does this matter?

        Windows likes to use “CRLF” line endings from the days of “Control Line Feeds” of automated typewriters.

        \r\n is the typical sequence that Windows uses for a new line, which sends the line back to the beginning then moves to the next line.

        *nix uses \n and tries to use \r as an actual key which is invalid in most scripts.

        I might recommend replacing all \r items within the script to \n or '' (empty space)?

        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

        P 1 Reply Last reply Reply Quote 0
        • P
          Paul Freeman @Tom Elliott
          last edited by

          @Tom-Elliott Well I feel silly. I am using a Windows workstation to set this all up. I corrected this and now the script appears to run.

          Now this errors out stating it did not find drivers, which in this case is true, I’m testing this on a VM. This also seems to fail the task and imaging restarts when the machine reboots. Is there any way to tell the task to “continue on error”?

          I have a test laptop on the bench that I will play with next week. Thanks for your help.

          45c5bd08-f856-4631-9319-9cb3fe70f3d0-image.png

          Tom ElliottT 1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott @Paul Freeman
            last edited by

            @Paul-Freeman Do you mind posting yoru script?

            I suspect your script is throwing a handleError (which will exit and restart the machine) and since postinit runs before the task gets to complete that explains what you’re seeing.

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

            63

            Online

            12.7k

            Users

            17.6k

            Topics

            156.9k

            Posts
            Copyright © 2012-2026 FOG Project