Hi,

We've had the problem that the size of the initial partition created is
not enough. It would be nice if something like the below patch was
included in later releases (I don't know if "Unattended:PartitionSize"
is the right name for the value, though).

Hans


# diff -u dosbin/install.pl~ dosbin/install.pl
--- dosbin/install.pl~  ti apr 20 10:48:14 2010
+++ dosbin/install.pl   on apr 21 10:00:55 2010
@@ -676,9 +676,12 @@
     # Commands to erase partition table
     my $pre_cmds = 'fdisk /clear 1';
 
-    # Commands to replace the first partition with a 4G FAT32
-    # partition and activate it
-    my $post_cmds =
'fdisk /delete /pri:1;fdisk /pri:4000;fdisk /activate:1';
+    # Commands to replace the first partition with a FAT32 partition
+    # (by default 4G, configurable in Unattended/PartitionSize) and
+    # activate it
+    my $post_cmds = 'fdisk /delete /pri:1;fdisk /pri:'
+       . $u->{'Unattended'}->{'PartitionSize'}
+       . ';fdisk /activate:1';
 
     # Command to run fdisk interactively
     my $interactive_cmd = 'fdisk /xo';
@@ -1540,6 +1543,9 @@
         return \%ret;
     };
 
+# Make initial partition size configurable.
+$u->{'Unattended'}->{'PartitionSize'} = 4000;
+
 # Make [_meta] section sort last in the file.
 $u->sort_index ('_meta') = 999999;
 



------------------------------------------------------------------------------
_______________________________________________
unattended-info mailing list
unattended-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to