• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Tags
    3. task
    Log in to post
    • All categories
    • K

      Unsolved Fetching deploy tasks in iPXE Menu

      FOG Problems
      • reboot quick imaging ipxe menu image task • • kbats183
      2
      0
      Votes
      2
      Posts
      191
      Views

      george1421G

      @kbats183 I haven’t looked at the quick registration bit of code but I did have a hack that updated the fog.auto.reg (full registration) option to begin imaging right after registration without a reboot. This involved taking the FOG supplied script updating it to your requirements and then adding a bit of code onto the end and then finally dynamically patching that script on every boot of the target system. It sounds like a lot of steps and its complicated but not if you know how fog works.

      I should be able to point you in a direction so you can get started.

      When FOG Linux (the os that gets transferred to the target computer for imaging) boots it runs the master fog script stored in the /bin directory in FOS Linux. The scripts bits of that /bin directory is here: https://github.com/FOGProject/fos/tree/master/Buildroot/board/FOG/FOS/rootfs_overlay/bin The file you are interested in is called fog.auto.reg. If you can understand bash script programming you can modify this file to fit your requirements. Once you have the script the way you need it then you can dynamically patch when FOS linux boots using this tutorial (understand this tutorial is for patching fog.man.reg but the concenpt is the same only the file name changes.

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

      I have tutorials that are targeting the manual registration but the concepts are similar. (hint: this is where I tweak the script to give me a custom calculated host name kind of like the auto naming but better. )
      https://forums.fogproject.org/topic/14278/creating-custom-hostname-default-for-fog-man-reg

      So that’s the background, how do I make it image right after rebooting?
      For the fog.man.reg file you append a bit of code that makes the script think the system rebooted and collects the latest imaging info.
      (For the life of me I can’t find that tutorial I created but here is the script that I collected from a recent issue with the code in the script.

      sysuuid=$(dmidecode -s system-uuid) sysuuid=${sysuuid,,}switch mac=$(getMACAddresses) base64mac=$(echo $mac | base64) token=$(curl -Lks --data "mac=$base64mac" "${web}status/hostgetkey.php") curl -Lks -o /tmp/hinfo.txt --data "sysuuid=${sysuuid}&mac=$mac&hosttoken=${token}" "${web}service/hostinfo.php" -A '' curl -Lks -o /tmp/hinfo.txt --data "sysuuid=${sysuuid}&mac=$mac" "${web}service/hostinfo.php" -A '' [[ -f /tmp/hinfo.txt ]] && . /tmp/hinfo.txt . /bin/fog.download

      In the case of fog.man.reg this code would be added at the very end of the script.

      Looking at the fog.auto.reg script I would say it should go at the very end of that script too.

      ref: https://forums.fogproject.org/topic/17601/deploy-image-right-after-registration-without-a-reboot/3
      ref: https://forums.fogproject.org/topic/16378/start-imaging-right-after-the-full-host-registration-without-reboot-possible

    • EruthonE

      Multicast - unable to find image path

      FOG Problems
      • image issues multicast task • • Eruthon
      16
      0
      Votes
      16
      Posts
      1.3k
      Views

      S

      @Eruthon Great to hear you got multicast working. It’s way more convenient to deploy this way! Well done.

    • T

      Solved Download / Deploy task isn't completing

      FOG Problems
      • download deploy task • • TThax
      4
      0
      Votes
      4
      Posts
      1.6k
      Views

      Wayne WorkmanW

      @TThax You don’t need to actually download the client. The latest kernel, init, and client gets downloaded automatically when you run the fog installer. You just need to update to the latest FOG release candidate, run that installer, and you should be good to go.

    • JJ FullmerJ

      Solved Image Storage Group Resets on Upload Task

      Bug Reports
      • storage node database upload task • • JJ Fullmer
      10
      0
      Votes
      10
      Posts
      3.1k
      Views

      JJ FullmerJ

      @Tom-Elliott I do believe that is fixed. As far as I have tested anyway. I will report back if anything changes

    • Tom ElliottT

      Deployment/FTP not working

      FOG Problems
      • ftp task upload download • • Tom Elliott
      2
      2
      Votes
      2
      Posts
      2.5k
      Views

      Wayne WorkmanW

      Now in the WiKi under Troubleshoot FTP.

      https://wiki.fogproject.org/wiki/index.php/Troubleshoot_FTP#You_must_first_upload_an_image_to_create_a_download_task

    • 1 / 1