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

Windows 10 Drivers Not Copying

Scheduled Pinned Locked Moved Solved
FOG Problems
4
33
9.5k
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.
  • G
    george1421 Moderator @UWPVIOLATOR
    last edited by Dec 18, 2017, 7:14 PM

    @uwpviolator Hmmm… that looks OK too.

    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
    • T
      Tom Elliott
      last edited by Dec 19, 2017, 1:26 PM

      rsync -aqz "$remotedriverpath" "$clientdriverpath" >/dev/null 2>&1

      I might recommend changing the line above to something like:
      rsync -azP "$remotedriverpath" "$clientdriverpath"

      This should show progress as well as spit out any errors it may be running into giving you more information to look at.

      As for the post earlier, where you couldn’t cd to one to the OptiPlex folders, you would need to quote the string or escape the space. This could be something like:
      cd "OptiPlex 580" or cd OptiPlex\ 580

      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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      U 1 Reply Last reply Dec 19, 2017, 4:47 PM Reply Quote 0
      • T
        Tom Elliott
        last edited by Dec 19, 2017, 1:28 PM

        I’d also suggest, for debugging, echoing the $clientdriverpath and $remotedriverpath variables instead of putting “System breakpoint”; This way you know exactly what the variables are defined as.

        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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        U 1 Reply Last reply Dec 19, 2017, 2:12 PM Reply Quote 0
        • U
          UWPVIOLATOR @Tom Elliott
          last edited by Dec 19, 2017, 2:12 PM

          @tom-elliott @george1421

          So worked with George yesterday on this. Here is what we know and where we left of.
          Ran Debug
          Broke out of script after Driver Copy
          Checked the HD and the x64 folder was there and in it the test .txt file
          Then sysprep
          Folder is gone after sysprep

          So it might be an issue with unattended file. I did not make it it was from our last image which was Win 10 EDU 1609. I am going to upload a blank image with no unattended file and see if the file sticks.

          G 1 Reply Last reply Dec 19, 2017, 2:18 PM Reply Quote 0
          • G
            george1421 Moderator @UWPVIOLATOR
            last edited by Dec 19, 2017, 2:18 PM

            @uwpviolator You asked yesterday about the unattend.xml file. I started with my win7 config file and it worked for win10. But our config file was very basic. If you need a good starting point you can go to this web site to create a template unattend.xml file. http://windowsafg.no-ip.org/

            Just don’t put any private information into this configuration. Put generic license keys and such and then hand exit afterwards.

            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
            • U
              UWPVIOLATOR @Tom Elliott
              last edited by Dec 19, 2017, 4:47 PM

              @tom-elliott

              This

              echo "System breakpoint";
              debugPause;
              
              rsync -azP "$remotedriverpath" "$clientdriverpath"
              [[ ! $? -eq 0 ]] && handleError "Failed to download driver information for [$machine/$osn/$arch]"
              
              echo "End driver copy";
              debugPause;```
              

              or This

              echo "System breakpoint";
              debugPause;
              
              rsync -azP "$remotedriverpath" "$clientdriverpath"
              
              echo "End driver copy";
              debugPause;
              
              U 1 Reply Last reply Dec 20, 2017, 4:07 PM Reply Quote 0
              • U
                UWPVIOLATOR @UWPVIOLATOR
                last edited by Dec 20, 2017, 4:07 PM

                @george1421 @Tom-Elliott

                Uploaded fresh image no unattended file. Still no files on HD. See my last reply. Which one do I replace in my fog.drivers file?

                G 1 Reply Last reply Dec 20, 2017, 4:15 PM Reply Quote 0
                • G
                  george1421 Moderator @UWPVIOLATOR
                  last edited by Dec 20, 2017, 4:15 PM

                  @uwpviolator Well then, I think you might want to change up your fog.drivers script a bit. Right now its working fine for win7 but not win10. So in the first script you posted modify this section of code.

                  #############################################
                  dots "Preparing Drivers"
                  # below creates local folder on imaged pc
                  # this can be anywhere you want just remember
                  # to make sure it matches throughout! (case IS important here)
                  clientdriverpath="/ntfs/Windows/inf/Drivers"
                  remotedriverpath="/images/drivers/$machine/$osn/$arch"
                  

                  to this

                  #############################################
                  dots "Preparing Drivers"
                  # below creates local folder on imaged pc
                  # this can be anywhere you want just remember
                  # to make sure it matches throughout! (case IS important here)
                  if [ $osid -eq 9 ]
                  then
                      clientdriverpath="/ntfs/Drivers"
                  else
                      clientdriverpath="/ntfs/Windows/inf/Drivers"
                  fi
                  remotedriverpath="/images/drivers/$machine/$osn/$arch"
                  

                  You might ask, so what will that do for you? The patch tests to see what OS you are deploying. If the OSID==9 then you are deploying a win10 image. In that case it will copy the drivers to C:\Drivers, all other OS’ the drivers will be copied to C:\Windows\Inf\Drivers.

                  Then in your unattend.xml file, tell oobe to look in c:\Drivers for its files.

                  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!

                  U 1 Reply Last reply Dec 20, 2017, 4:18 PM Reply Quote 0
                  • U
                    UWPVIOLATOR @george1421
                    last edited by Dec 20, 2017, 4:18 PM

                    @george1421

                    So doing this will not affect Win 7 as it will only copy to C:/drivers if Win 10 correct?

                    T 1 Reply Last reply Dec 20, 2017, 4:20 PM Reply Quote 0
                    • T
                      Tom Elliott @UWPVIOLATOR
                      last edited by Dec 20, 2017, 4:20 PM

                      @uwpviolator Correct.

                      I’m wondering, however, is the script right to begin with?

                      I mean, you said the C:\Drivers only had a text file in it if I remember correctly, but based on what @george1421 is showing, It looks like you were copying the files to the windows inf driver store? Sorry not familiar with default structure of windows driver, so maybe I’m off base here.

                      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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                      U G 2 Replies Last reply Dec 20, 2017, 4:24 PM Reply Quote 0
                      • U
                        UWPVIOLATOR @Tom Elliott
                        last edited by Dec 20, 2017, 4:24 PM

                        @tom-elliott

                        Fog Node
                        /images/drivers/model name/win7/x64
                        /images/drivers/model name/win10/x64

                        Fog.drivers
                        Copies folder to c:/windows/inf/drivers

                        Works for Win 7. Not for Win 10

                        Run debug, stop after driver copy. cd to c:/windows/inf/drivers. x64 is there on the HD. When rebooting and going through sysprep is where it seems to be removing that folder. Thought it might be unattended file but just did it with no unattended and still nothing.

                        So I will make the changes but this might just be something with Win 10 1709?

                        T 1 Reply Last reply Dec 20, 2017, 4:30 PM Reply Quote 0
                        • G
                          george1421 Moderator @Tom Elliott
                          last edited by Dec 20, 2017, 4:30 PM

                          @tom-elliott Yes, he was / we were originally promoting to just place the inf files in the inf directory and windows would automagically just see them and use then. It does work that way for Win7 and older releases of win10. It appears the win10 1709 now purges and rebuilds this inf directory when you syspre it. We tested this during debugging. we stopped the master fog script just after driver deployment and confirmed the files where there. Then he rebooted the target computer and checked after oobe and the directory was missing with the test .txt file.

                          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!

                          U 1 Reply Last reply Dec 20, 2017, 8:06 PM Reply Quote 0
                          • T
                            Tom Elliott @UWPVIOLATOR
                            last edited by Tom Elliott Dec 20, 2017, 10:31 AM Dec 20, 2017, 4:30 PM

                            @uwpviolator I’m going to guess. The fact that you state it works for windows 7 kind of proves this is outside of something fog is actually doing. Not that we don’t want to help (I think you’re aware of this already), but we can’t fix other people’s “mishaps”. All we can do is provide, hopeful, workarounds.

                            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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                            1 Reply Last reply Reply Quote 1
                            • U
                              UWPVIOLATOR @george1421
                              last edited by Dec 20, 2017, 8:06 PM

                              @george1421 @Tom-Elliott

                              Yes, I have tested and adding the lines of code fixed it. It now dropps the files to C:/Drivers which is not wiped out. Now I need to update unattend file to reflect this change.

                              #############################################
                              dots "Preparing Drivers"
                              # below creates local folder on imaged pc
                              # this can be anywhere you want just remember
                              # to make sure it matches throughout! (case IS important here)
                              if [ $osid -eq 9 ]
                              then
                                  clientdriverpath="/ntfs/Drivers"
                              else
                                  clientdriverpath="/ntfs/Windows/inf/Drivers"
                              fi
                              remotedriverpath="/images/drivers/$machine/$osn/$arch"```
                              1 Reply Last reply Reply Quote 0
                              • U
                                UWPVIOLATOR
                                last edited by Jan 12, 2018, 1:50 PM

                                @Tom-Elliott @george1421 you guys can make this as resolved. Thanks

                                B 1 Reply Last reply Jan 14, 2018, 7:43 PM Reply Quote 0
                                • B
                                  Bob Henderson @UWPVIOLATOR
                                  last edited by Jan 14, 2018, 7:43 PM

                                  @uwpviolator Could you share how you got OOBE to point to the drivers folder? I’m in the same boat you are, and have yet to figure out how to edit my Unattend to look in C:\Drivers for Win10

                                  Even better, if you could share your unattend with the critical data ripped out, I’d love to see it.

                                  G 1 Reply Last reply Jan 15, 2018, 10:51 AM Reply Quote 0
                                  • G
                                    george1421 Moderator @Bob Henderson
                                    last edited by Jan 15, 2018, 10:51 AM

                                    @bob-henderson You can find the section for the unattend.xml file here: https://forums.fogproject.org/topic/11126/using-fog-postinstall-scripts-for-windows-driver-injection-2017-ed/4

                                    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!

                                    B 1 Reply Last reply Jan 15, 2018, 3:15 PM Reply Quote 0
                                    • B
                                      Bob Henderson @george1421
                                      last edited by Jan 15, 2018, 3:15 PM

                                      @george1421 Yep, I’ve found that before numerous times. My problem is mostly ignorance of not knowing how the Unattend.xml is built, so I don’t know where to put that. Hence asking if someone had a sanitized one they’d be willing to share, so I can see the layout and go.

                                      I’ve used the generators, as well as my existing Win10/Win7 ones, but still don’t really know where to put it.

                                      Thanks!

                                      G 1 Reply Last reply Jan 15, 2018, 3:25 PM Reply Quote 0
                                      • G
                                        george1421 Moderator @Bob Henderson
                                        last edited by Jan 15, 2018, 3:25 PM

                                        @bob-henderson I can’t share my (our) unattend.xml file with you because of a NDA agreement, but I can show you where the section goes.

                                        0_1516029910798_win10_snippet.png

                                        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!

                                        B 1 Reply Last reply Jan 15, 2018, 3:41 PM Reply Quote 0
                                        • B
                                          Bob Henderson @george1421
                                          last edited by Jan 15, 2018, 3:41 PM

                                          @george1421 See, that’s the issue. I have that right after OOBE, as you can see below, and it still doesn’t pull. Weird huh?
                                          0_1516030895985_snip3.PNG

                                          G 1 Reply Last reply Jan 15, 2018, 3:48 PM Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          • First post
                                            Last post

                                          182

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project