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

Question about win7sys

Scheduled Pinned Locked Moved
General
3
5
1.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.
  • J
    jduawa
    last edited by Apr 11, 2014, 4:04 AM

    Hello. I am trying to create a function in funcs.sh and i see that some of the functions look @ a variable called $win7sys. I am just wondering when this variable is set because when I dump the variable in my function it never gets set. Any info you can provide would be beneficial.
    Thanks

    1 Reply Last reply Reply Quote 0
    • B
      BPSTravis Developer
      last edited by Apr 11, 2014, 12:45 PM

      The variable you want is [SIZE=13px][FONT=arial][COLOR=#262626]$path which should return the path of your drive ex: “[/COLOR][/FONT][/SIZE][SIZE=13px][FONT=arial][COLOR=#262626]/dev/sda2”[/COLOR][/FONT][/SIZE]

      [SIZE=12px]signature:[/SIZE]
      [QUOTE]I think I know things, but I really don't. You shouldn't follow any advice I give. - BPSTravis[/QUOTE]

      1 Reply Last reply Reply Quote 0
      • J
        jduawa
        last edited by Apr 11, 2014, 12:59 PM

        Thanks. I was trying to implement the copyDrivers function from this pagehttp://fogproject.org/forum/threads/how-to-use-fog-to-supply-machine-specific-drivers-for-windows-7-sysprepped-machines.694/

        I will try the path variable

        1 Reply Last reply Reply Quote 0
        • J
          jduawa
          last edited by Apr 12, 2014, 12:56 PM

          [quote=“BPSTravis, post: 25255, member: 22444”]The variable you want is [FONT=arial][COLOR=#262626]$path which should return the path of your drive ex: “[/COLOR][/FONT][FONT=arial][COLOR=#262626]/dev/sda2”[/COLOR][/FONT][/quote]

          $path did not work. In looking at the other functions in the funcs.sh file it looks like i should be using a variable $win7sys
          some of the other functinos are using this:
          [CODE]ntfs-3g -o force,rw $win7sys /ntfs[/CODE]
          the $part variable returns the correct path for partition 1 of the drive but win7sys never seems to get set. Here are the environment variable from a debug deploy[IMG]http://fogproject.org/forum/attachments/fog_vars-jpg.658/?temp_hash=31cd0cef71af93352ab282eb5307cb9c[/IMG]
          Thanks

          [url=“/_imported_xf_attachments/0/658_fog_vars.jpg?:”]fog_vars.jpg[/url]

          1 Reply Last reply Reply Quote 0
          • T
            Tom Elliott
            last edited by Apr 24, 2014, 11:22 AM

            Yeah, $part is the correct variable. I saw this issue in 0.33 as well, and have since changed the calling to $part over $win7sys.

            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 0
            • 1 / 1
            • First post
              Last post

            137

            Online

            12.1k

            Users

            17.3k

            Topics

            155.3k

            Posts
            Copyright © 2012-2024 FOG Project