Hi all I have noticed an interesting problem.
I specifiy the following lines in unattend.csv:
"00065BF100FA","ComputerName","OOFDTAXA35"
"OOFDTAXA35","FullName","Our Servers"
"Our Severs","UnattendedFile","z:\site\unattend.txt"

which is the default unattended file,
The computername value is set to random, rather than OOFDTAXA35. Note that the 
value I specify is the default unattend file. The result is
 the same if I specify a file of z:\site\model\E3020.txt.

I am looked at the code for this:
config.pl
line's 222-237
---------------
# Lookup and read specific Unattended.txt files
my $media_obj = Unattend::WinMedia->new ($u->{'_meta'}->{'OS_media'});
my $os_name = $media_obj->name ();
foreach my $lookup ("$os_name",
                    $u->{'UserData'}->{'OrgName'},
                    $u->{'UserData'}->{'FullName'},
                    $u->{'UserData'}->{'ComputerName'},
                    $u->{'_meta'}->{'macaddr'}) {
    my $unattended_txt = CONFIG->lookup_value($lookup, 'UnattendedFile');
    next unless defined $unattended_txt;
    $unattended_txt =~ /^[a-z]:/i
        or $unattended_txt = "z:\\site\\" . $unattended_txt;
    $unattended_txt = dos_to_host ($unattended_txt);
    -e ($unattended_txt)
        and $u->read ($unattended_txt);
}
---------------
I am little fuzzy on what happens once we hit "next unless defined".

Please let me know how I can help test any solutions for this bug.




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
unattended-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-devel

Reply via email to