Re: [Unattended] German links for download.

2004-03-14 Thread Patrick J. LoPresti
Gerhard Heift [EMAIL PROTECTED] writes:

 Hi Pat,
 
 was a lot of work, but now the patch should be OK...

Applied.  Thank you!

 - 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=1470alloc_id=3638op=click
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


Re: [Unattended] problems with mapznrun and postinst

2004-03-14 Thread Patrick J. LoPresti
Jeffrey A. Kirby [EMAIL PROTECTED] writes:

 I've been having trouble trying to get mapznrun.bat and postinst.bat to
 run after the initial OS install.  I'm running my own unattend.txt in
 install/site.  Text of the _meta section is below.

Ah, that would be a problem...  Not all of those settings are really
meant to be user-tweakable.

 Another potential issue is that my samba share isn't called
 ntinstall\install.  I think I've fixed this (had to change it both
 in my bootdisks and in install/bin/mapznrun.bat which has it hard
 coded).  I've also grepped for it in the rest of the install tree.

That is not necessary.  Once you get the mapznrun thing corrected, the
install.pl script will create tempcreds.bat and permcreds.bat
files with the correct values.  Just fix it on the bootdisk and you
will be all set.

 So the problems:
   - mapznrun.bat isn't being copied to c:\netinst
   - postinst.bat isn't being created (it's blank when I edit it at
 the do you want to edit point in the install).
 
 You'll note this is true even though I've got top, middle, and bottom
 defined.
 
 Any ideas?

The code which produce the value for [_meta]/postinst also creates the
file.  So you should omit the postinst= settings from your [_meta]
section.

In general, I suggest omitting any settings which you do not want to
change:

 [_meta]
 netinst = C:\netinst

Omit, since this is the default.

 postinst = C:\netinst\postinst.bat

Omit, since otherwise postinst.bat will not be created.

 ntp_servers = 192.168.56.250

This is fine.

 autolog = autolog.pl --logon=0

Omit (default).

 z_password = password
 z_drive = Z:
 z_user = user
 z_path = \\myserver\unattended

Omit, since these will be set automatically from the values on the
boot disk.

 os_dir = Z:\os

Omit (default).

 OS_media = Z:\os\winxpsp1

This is fine.

 edit_files = 1

Omit (default).

 fdisk_lba = 1
 fdisk_confirm = 0
 replace_mbr = 1
 fdisk_cmds=fdisk /clear 1;fdisk /prio:2000;fdisk /activate:1
 format_cmd=format /y /q /v: c:
 doit_cmds = z:;cd Z:\os\winxpsp1\i386;winnt /rx:lang
 /s:Z:\os\winxpsp1\i386 /u:C:\netinst\unattend.txt
 local_admin_group = Administrators
 ; First script run by postinst.bat
 top=base.bat
 ; Optional script(s) run by postinst.bat
 middle=officexp.bat
 ; Last script(s) run by postinst.bat
 bottom=

These are all fine.

And yes, this should definitely be documented better.

 - 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=1470alloc_id=3638op=click
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


Re: [Unattended] Product Keys from Spreadsheet

2004-03-14 Thread Patrick J. LoPresti
[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=1470alloc_id=3638op=click
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info