Question about win7sys



  • 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


  • Senior Developer

    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.



  • [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]



  • 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


  • Developer

    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]


Log in to reply
 

430
Online

39.3k
Users

11.0k
Topics

104.4k
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.