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

Image Path Change

Scheduled Pinned Locked Moved Solved
FOG Problems
3
23
4.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.
  • S
    Sebastian Roth Moderator
    last edited by Aug 16, 2019, 4:16 AM

    @george1421 Definitely a good idea.

    @pnwbsi Which version of FOG do you currently run?

    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 2 Replies Last reply Aug 16, 2019, 12:25 PM Reply Quote 0
    • P
      pnwbsi @george1421
      last edited by Aug 16, 2019, 12:22 PM

      @george1421 I am willing to help in anyway!

      G 1 Reply Last reply Aug 16, 2019, 2:05 PM Reply Quote 0
      • P
        pnwbsi @Sebastian Roth
        last edited by Aug 16, 2019, 12:25 PM

        @Sebastian-Roth I am running Fog 1.5.4

        1 Reply Last reply Reply Quote 0
        • P
          pnwbsi @Sebastian Roth
          last edited by Aug 16, 2019, 1:36 PM

          @Sebastian-Roth @george1421 An important thing to add. I just saw that if I have the image path as /Images/Dev/ and I capture (which fails) it claims it can not find the image folder /Images/Dev/Dev. So it is adding an extra /Dev/ in there.

          G 1 Reply Last reply Aug 18, 2019, 11:31 PM Reply Quote 0
          • G
            george1421 Moderator @pnwbsi
            last edited by Aug 16, 2019, 2:05 PM

            @pnwbsi said in Image Path Change:

            I am willing to help in anyway!

            OK I’m going to work on a patched upload file to hopefully give us a bit more details and I’m going to add in a mount delay timeout just to be sure. I should have a little time later this AM to work on it. I’ll follow up with instructions later.

            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
            • G
              george1421 Moderator @pnwbsi
              last edited by george1421 Aug 18, 2019, 6:02 PM Aug 18, 2019, 11:31 PM

              @pnwbsi I think we have a new fog.download file with some additional debugging output. This file will not fix the issue, but hopefully it will give us an idea what’s happening. We’ve identified the point in the code where it could be failing.

              I have this debug mode fog.download file here:
              https://drive.google.com/open?id=1yppCONpwr6zCOXA541rhOfiQNb-LoTYS

              What I want you to do is download this new fog.download file. Then I want you to follow these instructions to setup a postinit patch. What we are going to do is dynamically replace the current fog.download in FOS Linux with the debug patched version.

              https://forums.fogproject.org/topic/13500/dynamically-patching-fos-using-a-postinit-script

              You will follow the instructions but replace the top lines to this

              # Current File in FOS Linux to be replaced
              currfile="/bin/fog.download"
              
              #Patch file to send to FOS Linux virtual hard drive
              newfile="${postinitpath}fog.download"
              
              

              So the testing protocol I want you to use is this:

              1. Confirm you are still getting the error in the picture about unable to mount images folder. Then power off the target computer. Don’t touch the web ui, just power off the target computer.
              2. Setup the patching environment per the tutorial
              3. Download the fog.download file from my google drive and move it into the postinit directory on the fog server.
              4. reboot the target computer
              5. When the target computer throws the error again, snap a clear picture of the debugging information. This output will help us understand why…

              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!

              P 1 Reply Last reply Aug 19, 2019, 2:28 PM Reply Quote 0
              • P
                pnwbsi @george1421
                last edited by Aug 19, 2019, 2:28 PM

                @george1421 I followed your instructions but I am still getting the same error page, not a different debug one. Here is the postinit script I made. I did notice that I do not have a fog.download in my bin and I saw that the script replaces that.

                #Current File in FOS Linux to be replaced
                currfile="/bin/fog.download"
                
                #Patch file to send to FOS Linux virtual hard drive
                newfile="${postinitpath}fog.download"
                
                # ---------------------------------------------
                # DO NOT edit any text below this line
                # ---------------------------------------------
                . /usr/share/fog/lib/funcs.sh
                
                echo "Testing path for our fixed file at ${newfile}"
                debugPause
                
                # Test path and run copy if found and matched.
                if [[ -r $newfile ]]; then
                    echo "Found source file preparing to copy"
                    debugPause
                    cp -f $newfile $currfile >/dev/null 2>&1
                    [[ ! $? -eq 0 ]] && echo "Copy Failed" || echo "Copy Succeeded"
                    debugPause
                else
                    echo "Failed to find file [${newfile}] sorry. Copy Failed"
                    debugPause
                fi
                
                . ${postinitpath}fog.patch.man.reg
                
                G 2 Replies Last reply Aug 19, 2019, 4:18 PM Reply Quote 0
                • G
                  george1421 Moderator @pnwbsi
                  last edited by Aug 19, 2019, 4:18 PM

                  @pnwbsi Hmmm that’s not helpful if the script is not running.

                  The /bin/fog.download file is on the FOG Linux engine.

                  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
                  • G
                    george1421 Moderator @pnwbsi
                    last edited by george1421 Aug 19, 2019, 11:36 AM Aug 19, 2019, 5:36 PM

                    @pnwbsi I’m currently confirming the patch file method on a development machine.

                    The first thing I see wrong is in the script I forgot #!/bin/bash to be inserted at the top of the bash script. Also to set the file mode of 755 on the patched fog.download script.

                    I’ve already updated to tutorial with the missing bits.

                    I’m going to pxe boot a machine in the next few minutes to make sure it does what I should.

                    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!

                    G 1 Reply Last reply Aug 19, 2019, 5:55 PM Reply Quote 0
                    • G
                      george1421 Moderator @george1421
                      last edited by george1421 Aug 19, 2019, 11:55 AM Aug 19, 2019, 5:55 PM

                      It did run as expected when I included the bash reference at the top of the copy script and changed the mode of the new fog.download script to 755.

                      You should see the script run right after FOS Linux picks up an IP address. The line will start out with * Running post init scripts.......

                      You should have a chance to see that message if you run the fog compatibility checker from the iPXE 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
                      • 2
                      • 2 / 2
                      2 / 2
                      • First post
                        23/23
                        Last post

                      157

                      Online

                      12.1k

                      Users

                      17.3k

                      Topics

                      155.4k

                      Posts
                      Copyright © 2012-2024 FOG Project