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

Custom Post Download Script

Scheduled Pinned Locked Moved Solved
FOG Problems
2
3
562
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.
  • F
    FlareImp
    last edited by Apr 4, 2018, 2:30 PM

    Feel free to laugh as I am new to scripting in Ubuntu. Currently, I am using a script in the PostDownloadScripts folder to copy drivers to our different models of computers after imaging them with our Master Image. We have our older computers that are using BIOS and are mounted to sda2 but our newer computers we have started installing are using UEFI which is on sda4. Right now I am changing the mapping in the script between “mount.ntfs-3g /dev/sda2 /ntfs” or “mount.ntfs-3g /dev/sda4 /ntfs” depending on what type of system I am imaging. Is there a way to get the script to auto determine this so I do not have to edit the script each time I change between the different types?

    Thanks for any assistance ya’ll can offer me,

    Fog 1.4.4
    Ubuntu 16.04

    1 Reply Last reply Reply Quote 0
    • G
      george1421 Moderator
      last edited by Apr 4, 2018, 3:25 PM

      It appears you may be using an older tutorial that had the hard coded /dev/sda2 in it. One of the developers provided an updated script that automatically finds the proper partition. You can review the updated scripts here: https://forums.fogproject.org/topic/11126/using-fog-postinstall-scripts-for-windows-driver-injection-2017-ed

      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!

      F 1 Reply Last reply Apr 4, 2018, 6:12 PM Reply Quote 0
      • F
        FlareImp @george1421
        last edited by Apr 4, 2018, 6:12 PM

        @george1421 Thank you very much! I was able to modify the script to fit our setup. Everything is working smoothly now.

        Thanks again!

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

        139

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project