On Fri, Feb 13, 2009 at 11:20:26AM +0000, Steven Blackery wrote:

> From: Pierre Bourgin [mailto:pierre.bour...@arteris.com] 
> 
> > Still strange: my site/unattend.txt contains a [_meta] section (defining
> > NTP server) and the fact to use "$u->{'_meta'}->{'ntinstall_cmd'} =
> > '/z/site/nt5x-install' " in site/config.pl implies no ask for choose
> > between DOSEMU or nt5x-install .
> >
> > This might be related to the use of CSV entries perhaps.
> 
> No, no you misunderstand, or maybe I'm not clear enough. I'm wishing I
> hadn't mentioned this in the first place - everything is working
> correctly. I had hard-coded ntinstall_cmd into my unattend.txt files to
> avoid the prompt that otherwise occurred, this prevented your
> "$u->{'_meta'}->{'ntinstall_cmd'} = '/z/site/nt5x-install' " from working.
> I chose to change my hard-coded entry to the new path, I could have
> removed it entirely and then your code would have worked.

OK. Sorry for the misunderstand.

> > It's normal: this is my fault !
> >
> > How stupid I am: I send the wrong instructions related to content of
> > site/config.pl !!!!!!!
> >
> > The right hints for site/config.pl are:
> >
> >   ## Windows drivers scanning: uncomment to DISABLE its usage
> >   #$u->{'_temp'}->{'scan_windrivers'} = '';
> 
> Alas, this was one of the things I tried yesterday. I just double-checked
> and commented that line out and run it again, and once again
> search-win-drivers.pl appeared not to run, and I ended up with
> scan_windrivers_dest_map = "" and no drivers being copied.
> 
> Running search-win-drivers.pl manually (even without the -d) matches all
> the devices to drivers.
> 
> One thing I am curious about is:
> 
>    ## Windows drivers scanning: drivers collection root path:
>    $u->{'_temp'}->{'scan_windrivers_path'} = "z:\site\win_drivers" ;
> 
>    ## Windows drivers scanning: use updated version of ntx5-install
>    $u->{'_meta'}->{'ntinstall_cmd'} = '/z/site/nt5x-install' ;
> 
> Why is one path in unix format and the other in windows format? 

Again a nice mistake from me ! 
I've done a typo on the example, since I did not try it for a while.
Of course, the correct ways to write it is either:

  /z/site/win_drivers
  z:\\site\\win_drivers

> I see that when you read scan_windrivers_path in install.pl that you use
> dos_to_host to convert it, but why?

Because this is the way to store default values in dosbin/install.pl by the
use of File::Spec::Win32 (variable $spec_file). When I began to discover the
content of dosbin/install.pl, I tried to mimic as much as I can its coding
style. Default value is here in dosbin/config.pl, "encoded" as other default
values of dosbin/install.pl :

  1443 $u->comments ('_temp', 'scan_windrivers_path') =
  1444     ['Directory holding Windows drivers collection'];
  1445 $u->{'_temp'}->{'scan_windrivers_path'} =
  1446     sub { return $file_spec->catdir ( $u->{'_meta'}->{'dos_zdrv'}, 
"site", "win_drivers"); };

One thing is really weird in my documentation is that all site/config.pl
entries are not mandatory, since I've putted default values in
dosbin/install.pl .

I'm gonna deliver another version of my crappy documentation quickly
(currently, I'm check everything).

Many thanks to you for the debugging process around my broken documentation.

Pierre Bourgin

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
unattended-devel mailing list
unattended-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-devel

Reply via email to