[EMAIL PROTECTED] writes:

> So what I mean is, can the sub ask_os be substituted for something that 
> cooperates with the asset number stuff? So the os installation is 
> completely based on the asset number I fill in.

Absolutely!  To get an idea how this works, read the later sections of
<http://unattended.sourceforge.net/advanced.html>.

Something like this, if added to the sample config.pl I sent earlier,
should do the trick:

$u->{'_meta'}->{'OS_media} =
    sub {
        my $tag = $u->{'_meta'}->{'asset_tag'};
        defined $tag
            or return undef;
        my $licenses = $soft_by_owner->{$tag} || [ ];
        foreach my $license (@$licenses) {
            my $desc = hash_ref ($license, 'Type');
            $desc =~ /Windows 2000/
                and return 'z:\\os\\win2k';
            $desc =~ /Windows XP/
                and return 'z:\\os\\winxp';
        }
        return undef;

    };

In other words, you just write a subroutine to compute
[_meta]/OS_media from [_meta]/asset_tag.  You can compute anything
from anything in this way, if you can write the code to express it.

Hm, perhaps this whole thing would make a good example to add to
advanced.html.

> Another question; Isn't it possible to use qchain for all the
> Windows Updates so the systems wouldn't have to reboot for like a
> thousand times?

It is possible, but I do not trust it:

  http://www.mail-archive.com/[EMAIL PROTECTED]/msg00167.html

  http://www.mail-archive.com/[EMAIL PROTECTED]/msg00448.html

XP service pack 2 should be out in a few months, which will help
somewhat.

 - Pat


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to