Hi all.

On Sun, Feb 15, 2009 at 09:10:26PM +0000, P. Benie wrote:

> 2) TEXTMODE drivers and nt5x-install 
> 
> This script silently drops the drivers in the drivers in [OEMBootFiles].
> They're there just before the script runs, but not afterwards.
> 
> These are the only lines in unattend.txt that aren't in the form key=value
> so I'm guessing that they are discarded when the file is reloaded due to
> be syntactically invalid for an ini file.
> 
> This is not actually the reason why the install fails - in fact only 
> the first bit of the installer (the bit that we skip with nt5x-install)
> reads that section at all. However, we also don't do the work required, 
> which is to copy the textmode drivers into place, which is why the 
> installer stops with this message:
> 
> Windows Setup
> ==============
> 
> File txtsetup.oem caused an unexpected error (18) at 
> line 1747 in d:\xpsp\base\boot\setup\oemdisk.c.
> 
> Press any key to continue.
> (Pressing a key does not in fact continue.)
> 
> Copying the contents of /c/$/textmode/ into /c/$win_nt$.~bt/$oem$/ is
> sufficient to make the install work - we don't need to fix up the ini
> file.

Thanks for that info Peter! I've been rather busy lately so I havent 
had time to analyse the problem anymore, so you saved me some work.

I have made a patch for nt5x-install, which will copy the textmode 
drivers in /c/$/textmode/ to /c/$win_nt$.~bt/$oem$/ if /c/$/textmode 
exists. The patch is attached.

Nils
-- 
Nils Østbjerg
SAMF-IT, Faculty of Social Sciences, Aalborg University, Denmark
--- a/linuxboot/misc/nt5x-install	2009-02-17 03:34:28.000000000 +0100
+++ b/linuxboot/misc/nt5x-install	2009-02-17 04:19:05.000000000 +0100
@@ -192,6 +192,15 @@
 message "Move driver directory"
 mv /c/\$win_nt\$.~ls/$ARCH/\$[Oo][eE][mM]\$/* /c/\$/  
 
+#Copy textmode drivers into /c/$win_nt$.~bt/$oem$/ 
+#Do not move them instead, as it wont work.
+if [ -d "/c/\$/textmode/" ]
+then
+  message "Copy TEXTMODE driver directory"
+  mkdir /c/\$win_nt\$.~bt/\$oem\$/  
+  cp /c/\$/[Tt][Ee][Xx][Tt][Mm][Oo][Dd][Ee]/* /c/\$win_nt\$.~bt/\$oem\$/  
+fi
+
 message "Syncing disk -aiaparanoia :-)"
 sync
 
------------------------------------------------------------------------------
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