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

    Change default answer of the "Perform Full Host Registration and Inventory"

    Scheduled Pinned Locked Moved
    General
    2
    6
    806
    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.
    • davido38D
      davido38
      last edited by

      Fog version 1.5.9
      Debian 10

      Hi

      Is it possible to change the default answer of the “Perform Full Host Registration and Inventory” and how ?

      Thanks.

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

        @davido38 The quick answer is yes. But you need to be a bit more descriptive of what you want to change.

        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
        • davido38D
          davido38
          last edited by

          I would like to change this :

          Would you like this host to join a domain ? => yes

          Would you like to deploy image to this computer now? (y/N) => yes

          Thanks

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

            @davido38 The bit longer answer is yes its possible but you will need to do a setup on your fog server to patch the client image. Its not hard to do, but does have a few steps you must follow.

            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 @davido38
              last edited by

              @davido38 Here is the updated file you need.

              fog.man.reg.txt

              You will need to “Save link As” fog.man.reg (hint remove the .txt from the end) and move it to your fog server into ‘/images/postdownloadscripts’ directory.

              In that ‘/images/postdownloadscripts’ directory create a file called fog.patchregistration

              In that file place the following commands.

              #!/bin/bash
              
              echo "";
              echo "Installing Custom Registration Patch"
              cp -f ${postinitpath}fog.man.reg /bin/fog.man.reg
              echo "Done Patching"
              

              Save the file then edit fog.postinit file and add in the following line

              . ${postinitpath}/fog.patchregistration
              

              And save that change.

              That is all you need to do. First test it to make sure it works as you wanted. Then if you want to change the registration file more all you need to do is just edit the fog.man.reg in the post inits path.

              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
              • davido38D
                davido38
                last edited by

                It works great !

                Thanks a lot !

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post

                154

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project