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

    PostDownload Script - Question

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    2
    4
    1.3k
    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.
    • J
      jayrob86
      last edited by

      I have been reading all the posts and comments discussing the use of post download scripts and really think that this feature seems amazing. I was not the one that build our fogserver, but I do know that is on version 1.20. I do not see a postinstallscripts folder, if I just create this folder will this work? I really want to use this for automatic drivers, buy the model name. Arch, Manufacturer.

      Thanks,

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

        The directory should be in /images/postdownloadscripts I can’t remember version 1.2.0, its been a while. I’ve been on the trunk build for 18 months. But the post download scripts directory should be there even in 1.2.0. If it isn’t, you can’t just create it since there are hooks in the FOS engine that call the script that should be in there.

        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!

        J 1 Reply Last reply Reply Quote 0
        • J
          jayrob86 @george1421
          last edited by

          @george1421 thanks do you know where I could look to verify? In the function.sh?

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

            @jayrob86 this is where it gets a bit complicated if you want to reverse engineer stuff.

            The post download scripts are saved on the FOG server, but they are executed by the FOS engine (the linux operating system that captures and deploys images to the target computer).

            So to answer your question, the function.sh script is in the init(s) (virtual hard drive that is downloaded to the client along with the kernel (bzImage) when pxe booting).

            So you next question may be how can I peek into the inits? There is a wiki for that: https://wiki.fogproject.org/wiki/index.php?title=Modifying_the_Init_Image

            The file is in /usr/share/lib/fog (or something like that, its in /usr/share…)

            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

            183

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project