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

    Stuck on "running post init scripts" when trying to boot into pxe client

    Scheduled Pinned Locked Moved
    Linux Problems
    3
    7
    2.8k
    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.
    • M
      mikegriffin
      last edited by

      hello,

      I’ve been struggling with this issue for 4 days and I’m stuck. I’m trying to boot any system up into the FOG client and Its getting stuck when trying to run post init scripts. Where are the logs that can help me troubleshoot this? Or has anyone solved anything like this before? Any help is greatly appreciated.

      I have FOG running my DHCP server as well as TFTP etc.

      Side note: I’m running on 1.4.4 now but had the same issue on 1.4 RC as well which prompted the upgrade

      M Wayne WorkmanW 2 Replies Last reply Reply Quote 0
      • M
        mikegriffin @mikegriffin
        last edited by

        @mikegriffin 0_1516731518564_MVIMG_20180123_131336.jpg

        1 Reply Last reply Reply Quote 0
        • Wayne WorkmanW
          Wayne Workman @mikegriffin
          last edited by Wayne Workman

          @mikegriffin said in Stuck on “running post init scripts” when trying to boot into pxe client:

          Where are the logs that can help me troubleshoot this?

          If you want logging in your post-init or post-download scripts, you have to build that into them yourself. Simple things like echoing variables and echoing where you are would probably help you.

          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!
          Daily Clean Installation Results:
          https://fogtesting.fogproject.us/
          FOG Reporting:
          https://fog-external-reporting-results.fogproject.us/

          1 Reply Last reply Reply Quote 0
          • M
            mikegriffin
            last edited by Sebastian Roth

            I made no post init scripts. I’m assuming this would be in /images/dev/postinitscripts/fog.postinit

            here are the contents:

            /images/dev/postinitscripts$ cat fog.postinit
            #!/bin/bash
            ## This file serves as a starting point to call your custom pre-imaging/post init loading scripts.
            ## <SCRIPTNAME> should be changed to the script you're planning to use.
            ## Syntax of post init scripts are
            #. ${postinitpath}<SCRIPTNAME>
            
            1 Reply Last reply Reply Quote 0
            • M
              mikegriffin
              last edited by

              restarting the server fixed it. Oy.

              1 Reply Last reply Reply Quote 0
              • M
                mikegriffin
                last edited by

                oh, and I had to +x the permissions on fog.postinit. It looks like FOG was unable to execute the empty script.

                1 Reply Last reply Reply Quote 0
                • george1421G
                  george1421 Moderator
                  last edited by

                  So is this solved?

                  With the postinit scripts messed up, deployment/capture will probably not happen. The postinit scripts are run first then tasking starts.

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

                  179

                  Online

                  12.1k

                  Users

                  17.3k

                  Topics

                  155.3k

                  Posts
                  Copyright © 2012-2024 FOG Project