Just to be sure theres no confusion;
This is the diff Im talking about,
it do produce multiple partitions on parted 1.6.22 and the diff is aginst CVS 
as of this morning Norwegian time :-)

--- install-cvs-2007-12-20.pl	2007-12-20 12:03:17.000000000 +0100
+++ install.pl	2007-12-20 11:37:27.000000000 +0100
@@ -634,12 +634,17 @@
             $fs = $type_map{$type};
         }
 
-    if ($ptype eq 'pri') { $parttype = 'primary' }
-    elsif ($ptype eq 'log') { $parttype = 'logical' }
-    elsif ($ptype eq 'ext') { $parttype = 'extended'; $fs='' }
+        if ($ptype eq 'pri') { $parttype = 'primary' }
+        elsif ($ptype eq 'log') { $parttype = 'logical' }
+        elsif ($ptype eq 'ext') { $parttype = 'extended'; $fs='' }
+
+        if (($ptype eq 'ext') or ($fs eq 'ntfs'))  { 
+            $ret = "$parted mkpart $parttype $fs $start $end"; 
+        } else { 
+            $ret = "$parted mkpartfs $parttype $fs $start $end"; 
+        }
+        print "DEBUG: $ret \n";
 
-        $ret = "$parted mkpart $parttype $fs $start $end";
-       print "DEBUG: $ret \n";
     }
     else {
         die "Unable to convert '$fdisk_cmd' to Parted commands; bailing";
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
unattended-devel mailing list
unattended-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-devel

Reply via email to