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

Help with Win10 Driver injection

Scheduled Pinned Locked Moved
General Problems
9
88
30.9k
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.
  • M
    MotD
    last edited by Feb 9, 2017, 6:46 PM

    I Need some Help with this Scipts.
    I have HP and Lenovo Machines, and i want to test the Driver Injection with a Lenovo ThinkPad L560.

    I dont know if i had all made all required settings, my Drivers dont copied to the Client.

    I have placed the fog.drivers, fog.log and fog.postdownload into /images/postdownloadscripts and set the Files to 755.
    And i have create da drivers Folder into /images with Rights set to 755.

    Under drivers there is a Folder named to the result from “dmidecode -s system-product-name” and the other needet Folders under it.
    Looks like this:
    /images/drivers/20F10026GE/win10/x64

    Under x64 i put all 64Bit Drivers from a SCCM Package for the ThinkPad L560.

    But i think the FOG dont start the Scripts unter /images/postdownloadscripts.
    The Folder C:\Windows\DRV was not created and no Drivers copied.

    Do i have any settings to make so FOG run the Scrips under /images/postdownloadscripts?

    Please can someone help me?

    T 1 Reply Last reply Feb 9, 2017, 7:30 PM Reply Quote 0
    • T
      THEMCV @MotD
      last edited by Feb 9, 2017, 7:30 PM

      @MotD What does your fog.postdownload and fog.drivers look like?

      Any error messages?

      M 1 Reply Last reply Feb 9, 2017, 8:10 PM Reply Quote 0
      • M
        MotD @THEMCV
        last edited by Feb 9, 2017, 8:10 PM

        @THEMCV I have taken the Files and Folder Structure from this Thread and dont change anything.
        https://forums.fogproject.org/topic/8889/fog-post-install-script-for-win-driver-injection/2

        Where can i see a Log File or else?
        The Messages on the Client System runs too fast to read it.

        T 1 Reply Last reply Feb 9, 2017, 8:12 PM Reply Quote 0
        • T
          THEMCV @MotD
          last edited by Feb 9, 2017, 8:12 PM

          @MotD Check out this thread and make sure you’ve got the updated ones. This is what I’m using.

          https://forums.fogproject.org/topic/8878/fog-drivers-script-will-not-run-correctly-in-postdownloadscripts/51?page=1

          M 2 Replies Last reply Feb 9, 2017, 8:18 PM Reply Quote 0
          • M
            MotD @THEMCV
            last edited by Feb 9, 2017, 8:18 PM

            @THEMCV Many Thanks to you, i’ll read it now and then i try it 🙂

            1 Reply Last reply Reply Quote 0
            • M
              MotD @THEMCV
              last edited by Feb 9, 2017, 8:34 PM

              @THEMCV Now i have another Question, i try to run the fog.postdownload script in Terminal.
              And get a Error because i there is no Folder called “/usr/share/fog” with the called funcs.sh Script. The Folder is completly missing.

              I have FOG 1.3.3 installed on a Ubuntu 14.04 LTS.
              Where i get the needed Files?

              T 1 Reply Last reply Feb 9, 2017, 8:36 PM Reply Quote 0
              • T
                THEMCV @MotD
                last edited by Feb 9, 2017, 8:36 PM

                @MotD You shouldn’t run it, it should go in /images/postdownloadscripts. The error I’m not sure about.

                in /images/postdownloadscripts do you have fog.postdownload and fog.drivers in there from the thread?

                M 1 Reply Last reply Feb 9, 2017, 8:42 PM Reply Quote 0
                • M
                  MotD @THEMCV
                  last edited by Feb 9, 2017, 8:42 PM

                  @THEMCV Right, under /images/postdownloadscripts i have the fog.postdownload, the fog.log and the fog.drivers all File rights set to 755

                  But if the Script call the funcs.sh and this file does not exist?

                  G 2 Replies Last reply Feb 9, 2017, 8:50 PM Reply Quote 0
                  • G
                    george1421 Moderator @MotD
                    last edited by Feb 9, 2017, 8:50 PM

                    @MotD You have to remember the post download scripts run from the perspective of the FOS engine that runs on the target compuer, not the FOG server. The paths are a bit different.

                    functs.sh only exists on the FOS virtual hard drive.

                    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!

                    M 1 Reply Last reply Feb 9, 2017, 8:55 PM Reply Quote 0
                    • G
                      george1421 Moderator @MotD
                      last edited by george1421 Feb 9, 2017, 2:56 PM Feb 9, 2017, 8:52 PM

                      @MotD In /images/postdownloadscripts you should have the master FOG hook script called fog.postdownload that should be configured to call your fog.drivers bash shell script. That script is what should move your files.

                      Also FWIW the Lenovo’s hide their system name in a different place than the Dells in SMBIOS.

                      You may need to make a elaborate structure to pull the machine name from the Lenovo systems and the Dells if you random deploy to each.

                      Something like:

                      sysmanufact=$(dmidecode -s system-manufacturer | tr -cd '\40\60-\176')
                      sysmanufact="${sysmanufact%"${sysmanufact##*[![:space:]]}"}"
                      
                      if [[ -z ${systemanufact} ]]; then
                          #system manufacturer is blank so try to pick up name from baseboard
                          # / motherboard value
                          sysmanufact=$(dmidecode -s baseboard-manufacturer)
                          sysmanufact="${sysmanufact%"${sysmanufact##*[![:space:]]}"}"
                      fi
                      
                      case ${sysmanufact} in
                          *[Dd][Ee][Ll][Ll]*)
                              machine=$(dmidecode -s system-product-name)
                              ;;
                          *)
                             # Do this for all other machines i.e. Intel and Lenovo
                              machine=$(dmidecode -s baseboard-product-name)
                              ;;
                      esac
                      

                      To get the proper value into the machine 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!

                      1 Reply Last reply Reply Quote 0
                      • M
                        MotD @george1421
                        last edited by MotD Feb 9, 2017, 2:58 PM Feb 9, 2017, 8:55 PM

                        @george1421 Ok, thanks i dont know that.
                        Sorry i am new on FOG Project and Linux.
                        I take all Scripts from your Post, and do not make any changes but the Drivers dont copied to the Client.

                        Can i see a Log File about the Image Deploy and the result of the running from the fog.postdownload and fog.drivers Scripts?

                        i run a Windows Version of dmidecode called dmidecode212 under the Windows Maschine and get the Result: 20F10026GE from the Lenovo ThinkPad L560. and i create the Folder Structure /images/drivers/20F10026GE/win10/x64

                        Under x64 i put all 64Bit Drivers from a SCCM Package for the ThinkPad L560

                        G 2 Replies Last reply Feb 9, 2017, 8:57 PM Reply Quote 0
                        • G
                          george1421 Moderator @MotD
                          last edited by Feb 9, 2017, 8:57 PM

                          @MotD There is no log file for these scripts. If you took things just as I have defined, that is for Dell hardware. That should work as I have them listed. For Lenovo you will have to make some changes to the scripts.

                          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
                          • G
                            george1421 Moderator @MotD
                            last edited by Feb 9, 2017, 9:02 PM

                            @MotD I’m going to fork this discussion into a new thread since your issue is new and I don’t want to fill up this thread with a new issue.

                            We really need you to setup a debug deploy to this lenovo. The numbers you have look correct for what I remember of the Lenovo systems. So you may be spot on.

                            So schedule a image deploy to this computer but before you press OK, select the Debug check box. Then pxe boot the target computer. After a few enter key presses you should be dropped to the FOS engine command prompt. From there I want you to key in this command.
                            dmidecode -s baseboard-product-name

                            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!

                            M 1 Reply Last reply Feb 9, 2017, 9:18 PM Reply Quote 0
                            • M
                              MotD @george1421
                              last edited by Feb 9, 2017, 9:18 PM

                              @george1421 Ok, i made it this way you say.
                              The result is: 20F10026GE

                              The same result from the Way with dmidecode212 under Windows:
                              dmidecode212 -s baseboard-product-name
                              result: 20F10026GE

                              G 1 Reply Last reply Feb 9, 2017, 9:24 PM Reply Quote 0
                              • G
                                george1421 Moderator @MotD
                                last edited by Feb 9, 2017, 9:24 PM

                                @MotD OK good to know. Lets switch over to chat it will be faster to get an answer.

                                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!

                                G 1 Reply Last reply Feb 9, 2017, 11:48 PM Reply Quote 0
                                • G
                                  george1421 Moderator @george1421
                                  last edited by Feb 9, 2017, 11:48 PM

                                  @george1421 After a lengthy chat session then switching to team viewer we found the issue.

                                  Basically the fog.driver script was throwing this error:

                                      /images/postdownloadscripts/fog.drivers: line 2: $’\r’: command not found
                                      /images/postdownloadscripts/fog.drivers: line 3: $’\r’: command not found
                                      /images/postdownloadscripts/fog.drivers: line 4: syntax error near unexpected token $'in\r'' 'images/postdownloadscripts/fog.drivers: line 4:case $manu in
                                  

                                  The key to me was seeing the \r that was being complained about.

                                  In a nutshell the issue was how the file was copied from the web, pasted into notepad++ on windows and then copied to the FOG server using winscp. Somewhere along the way carriage returns where added to the end of each line in the script. I installed dos2unix and ran that utility on the fog.drivers script. That cleaned up all of the errors. We again single stepped through the install process. I confirmed that the source path existed as well as the files on the target computer after the fog.drivers script completed.

                                  When I left MotD he started to reboot the target computer to start the Win10 OOBE process.

                                  Summary: The issue was related to the Windows->Unix file migration only. The script worked as outline in the thread.

                                  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!

                                  M 1 Reply Last reply Feb 10, 2017, 8:25 PM Reply Quote 2
                                  • M
                                    MotD @george1421
                                    last edited by Feb 10, 2017, 8:25 PM

                                    @george1421 all drivers was installed correct, so my unattended File works. And the FOG with the great Help from you. Many Thanks.

                                    Next Week i test it with the HP Machines i have, some HP ProDesk 600 G1 and G2, HP ProBooks G2 and G3. The Information from DMI i got todays afternun.

                                    J 1 Reply Last reply Sep 14, 2018, 8:42 PM Reply Quote 1
                                    • J
                                      Jamaal @MotD
                                      last edited by Sep 14, 2018, 8:42 PM

                                      @MotD Hey there Motd. So I took a break off of this for a while due to being busy with work projects.
                                      So when you added your drivers onto the fog server for Lenovo, the product name worked compared to for example Lenovo ThinkPad T570?

                                      G 1 Reply Last reply Sep 14, 2018, 9:56 PM Reply Quote 0
                                      • G
                                        george1421 Moderator @Jamaal
                                        last edited by Sep 14, 2018, 9:56 PM

                                        @Jamaal If your Lenovo was inventoried by FOG, look at the fog web gui
                                        host management -> Host (in question) -> Inventory (tab) and then what does the System Product field say? For the Dells it says ‘OptiPlex 7050’ or what ever model it is. If I remember correctly the lenovo systems put the actual system model/name in a different smbios field than Dells. That name needs to be the parent directory where the drivers are stored.

                                        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 Sep 15, 2018, 1:53 PM Reply Quote 0
                                        • J
                                          Jamaal @george1421
                                          last edited by Sep 15, 2018, 1:53 PM

                                          @george1421 ok, I get it now. I’ll play around with it this weekend. And thanks to you, I have a better grasp with MDT 2013 update 2. Do you do what most do like have 2 WIMS? Example, one will be a reference image with like antivirus, office 2013, VNC with up to date windows updates and the other WIM will be a little fatter with other company in house apps that are a little harder to auto install?

                                          G 1 Reply Last reply Sep 16, 2018, 1:00 PM Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 3 / 5
                                          • First post
                                            Last post

                                          325

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project