Mandag 17 mars 2008 21:56, skrev Nils Olav Fossum:
> Oki, here are the updated altdosemu patches against CVS as of 2008-03-17

mh, the patch against install.pl seems to be corrupt in some way..
resending 
--- unattended-cvs/install/dosbin/install.pl	2008-03-17 17:12:55.000000000 +0100
+++ unattended/install/dosbin/install.pl	2008-03-17 21:00:43.000000000 +0100
@@ -998,8 +998,20 @@
 
 $u->{'_meta'}->{'fdisk_confirm'} = 1;
 
+$u->comments ('_meta', 'ntinstall_cmd') =
+    ['System command to run in place of winnt under dosemu? (linuxboot only)'];
+$u->{'_meta'}->{'ntinstall_cmd'} =
+    sub {
+        return (yes_no_choice ('Use nt5x-install script - (DOSEMU alternative)')
+                ? 'nt5x-install'
+                : undef);
+    };
+
 $u->{'_meta'}->{'format_cmd'} =
     sub {
+        if (defined $u->{'_meta'}->{'ntinstall_cmd'}) {
+            return undef;
+        }
         return (yes_no_choice ('Format C: drive')
                 ? 'format /y /z:seriously /q /u /a /v: c:'
                 : undef);
@@ -1499,10 +1511,22 @@
             close SETTINGS
                 or die "Unable to close $settings_file: $^E";
             print "done.\n";
+            # Disk geometry is now fixed, no need to hack disk geo into the partition:
+            $u->{'_meta'}->{'fix_disk_geo_heads'} = "";
+            $u->{'_meta'}->{'fix_disk_geo_sectors'} = "";
         }
         else {
             # Non-IDE disk.  Should probably sanity-check kernel
             # geometry against legacy BIOS geometry here.  FIXME.
+            # Send partition geometry via unatted.txt so we can
+            # hack it into partition after the dosemu run.
+            # FIXME Should we ask the user before we do this?
+            if (not defined $u->{'_meta'}->{'fix_disk_geo_heads'}) {
+                $u->{'_meta'}->{'fix_disk_geo_heads'} = $bios_head;
+            }
+            if (not defined $u->{'_meta'}->{'fix_disk_geo_sectors'}) {
+                $u->{'_meta'}->{'fix_disk_geo_sectors'} = $bios_sect;
+            }
         }
     }
 }
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
unattended-devel mailing list
unattended-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-devel

Reply via email to