-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 29 Mar 2007, Steffen Kaiser wrote:

I dunno, why the last changes worked, but the ECHO command cannot work 
that way.

I also re-thought the way into this:

a) EXITEMU is copied into install/dosbin so it is in the search PATH.
b) CONFIG.SYS the line added the line
SHELL=\COMMAND.COM /F /P
in order to automatically fail any Critical Errors, e.g. when accessing 
drive C: without a filesystem - but also during the copy of the files with 
WINNT.EXE
c) dosbin/install.pl is modified as follows:
========
diff -u1 ../../cvs/unattended/install/dosbin/install.pl dosbin/install.pl
- --- ../../cvs/unattended/install/dosbin/install.pl      2005-01-06 
22:24:13.000000000 +0100
+++ dosbin/install.pl   2007-03-30 09:56:39.000000000 +0200
@@ -1594,4 +1594,13 @@
  my $doit = "$netinst\\doit.bat";
- -$is_linux
- -    and push @doit_cmds, 'xcopy /s /e /y Y:\\ C:\\';
+if($is_linux) {
+       # xcopy will copy a file that will prevent a cycling of DOSemu
+       # this is tested as the first command
+       # The filename itself
+       my $noCycling = "$netinst\\" . int(rand(10000000)) . ".tmp";
+    # First of all, if the checkpoint file exist, leave DOSEmu
+    unshift @doit_cmds, "IF EXIST $noCycling EXITEMU";
+    push @doit_cmds, 'xcopy /s /e /y Y:\\ C:\\';
+    # have the XCOPY command copy over the checkpoint file
+    write_file($noCycling, 'prevent cycling of DOSemu');
+}
  push @doit_cmds, split /;/, $u->{'_meta'}->{'doit_cmds'};
============

The idea behind is:

The XCOPY command copies a checkpoint file with a random name into 
C:\NETINST. The first line of DOIT.BAT calls EXITEMU, if this file is 
present. Hence, if there are left-over files from a previous run, the 
checkpoint filename is differet.

Bye,

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBRgznZdOkJV1AYoBwAQImswf/YwBhNqSiUCoLXZfnuknA5liaxYc5m97a
6j0D9QlzKzK0SeXtRUmJjSIrjnCRAr1kWgAgNnDgxc14bz+1aUYjw7gOZ1xvL+7L
SPtYIi9gC/o2tX94ikkhSesPNt7itshoH/ZfGueVAVap3NS0G1BeKMxGsV1fRUAs
2cNWD3sj/8w48qIjmADqyTL9iAfeurE7SJ57SuBFK/kevkU+++2xQPMlfxV7BXCa
jGY2Ai+c4zRhu3s7E09oyFac0K5j28ZTqDcKq96bqR7YIKqMlR4/YZ659cqrdCin
GA1kRHuev0j7u0ryhcMFGrw4lc4ktllnXRbieAi90yNQTJPvnQombw==
=2/qd
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
unattended-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-devel

Reply via email to