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

    Postinstall scripts /images not mounted

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    2
    10
    2.6k
    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.
    • george1421G
      george1421 Moderator
      last edited by

      I just upgraded to the latest trunk build last night r6901. I’m having troubles with a post install script since the update. To try to debug the issue I setup a scheduled debug deploy task to get to the FOS console.

      As I started manually stepping through the postinstall script I ran into an issue in my script that references /images/drivers (as it should). But looking at the FOS system, there is no /images folder or any signs of it being mounted back to the FOG server. Is this mount not available with the debug task. If this /images link is not made I can understand why my post install script is failing.

      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
      • Tom ElliottT
        Tom Elliott
        last edited by

        /images is only mounted in upload (to the server:/images/dev) and download (to the server:/images).

        This happens before the imaging process starts.

        In a debug, make sure it’s a real tasking debug and NOT just a regular DEBUG task. While i could walk you through what to do, I’m too lazy. – 🙂

        I typically run fog, wait until it mounts the images drive, then break out with CTRL+C.

        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

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

          Manually keying in

          mkdir /images
          mount -t nfs 192.168.1.53:/images /images
          

          Causes the FOS shell to hang

          From another linux server I can issue the command showmount -e 192.168.1.53 and get a listing of the nfs shares. I can mount the fog server /images to fog server itself at another mount point or on another server. So I’m pretty sure the fog server is OK.

          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
          • george1421G
            george1421 Moderator @Tom Elliott
            last edited by

            @Tom-Elliott I did schedule a download deployment and then selected a debug task from the download deployment.

            it kind of bugs me why the manual mount doesn’t work correctly. Same subnet and just confirmed no firewall on fog server.

            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!

            george1421G Tom ElliottT 2 Replies Last reply Reply Quote 0
            • george1421G
              george1421 Moderator @george1421
              last edited by george1421

              @george1421 OK the fog route with a ctrl c got the shares I needed mounted. Now I can keep debugging.

              Solving this issue, thank 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!

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

                @george1421 The file handling mounting is located in:
                /bin/fog.mount

                The command sequence runs as:

                umount /ntfs
                umount /images
                umount /bcdstore
                mkdir /images #only if it doesn't already exist
                umount /images #just to ensure nothing is mounted to it.
                mount -o nolock,proto=tcp,rsize=32768,intr,noatime "192.168.1.53:/images"
                

                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
                • george1421G
                  george1421 Moderator
                  last edited by

                  While this is a bit off point, I did find the issue with my script.

                  Win7
                  /ntfs/Windows/System32/sysprep (folder)

                  Does not equal

                  Win10
                  /ntfs/Windows/System32/Sysprep (folder).

                  Ugh case sensitive paths and windows consistencies.

                  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!

                  Tom ElliottT 1 Reply Last reply Reply Quote 1
                  • Tom ElliottT
                    Tom Elliott @george1421
                    last edited by

                    @george1421 Instead of implicitly doing a location of a directory, why not try to find it?

                    Use something like:

                    find /ntfs -iname "windows/system32/sysprep" and store the return into a variable?

                    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

                    george1421G 1 Reply Last reply Reply Quote 1
                    • george1421G
                      george1421 Moderator @Tom Elliott
                      last edited by

                      @Tom-Elliott Once windows 10 is done installing I’ll give that a shot. Right now I just have a conditional, but I like your solution a bit better.

                      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!

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

                        @george1421

                        For clarity the command Tom provided didn’t return any value, but it did set me on the right path (so to speak).

                        Well its not as clean as I hoped, but this command will return what I want.
                        find /ntfs -type d -iname "sysprep"|grep ystem32

                        For what ever reason sysprep exists in System32 and SysWOW64. Either way the above command will return the proper case regardless of the target OS.

                        [edit] And this command will find the proper unattend.xml regardless of the case.
                        find /ntfs -type f -iname "unattend.xml"|grep ystem32
                        [/edit]

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

                        117

                        Online

                        12.1k

                        Users

                        17.3k

                        Topics

                        155.3k

                        Posts
                        Copyright © 2012-2024 FOG Project