eh, sorry for the noise,
I forgot the patch..
Onsdag 05 desember 2007 15:24, skrev Andreas Laub:
> And again me,
>
> I fixed the mkpartfs with extended parttition problem by adding this to
> install.pl
>
> if ($ptype eq 'pri') { $parttype = 'primary' }
> elsif ($ptype eq 'log') { $parttype = 'logical' }
> elsif ($ptype eq 'ext') { $parttype = 'extended'; $fs='' }
>
> + if ($ptype eq 'ext') {
> + $ret = "$parted mkpart $parttype $fs $start
> $end";
> + } else {
> old $ret = "$parted mkpartfs $parttype $fs $start
> $end";
> + }
> print "DEBUG: $ret \n";
>
> I hope that works fine and somebody could use this.
oh, yes :-)
I made a patch.
This should do it for both extended partitions and formatted primary
partitions.
--- install-bf-mkpartfs-fix.pl 2007-12-10 19:40:02.000000000 +0100
+++ install.pl 2007-12-10 20:59:47.000000000 +0100
@@ -634,12 +634,16 @@
$fs = $type_map{$type};
}
- if ($ptype eq 'pri') { $parttype = 'primary' }
- elsif ($ptype eq 'log') { $parttype = 'logical' }
- elsif ($ptype eq 'ext') { $parttype = 'extended'; $fs='' }
-
- $ret = "$parted mkpart $parttype $fs $start $end";
- print "DEBUG: $ret \n";
+ if ($ptype eq 'pri') { $parttype = 'primary' }
+ elsif ($ptype eq 'log') { $parttype = 'logical' }
+ elsif ($ptype eq 'ext') { $parttype = 'extended'}
+
+ if ($ptype eq 'ext') {
+ $ret = "$parted mkpart $parttype $start $end";
+ } else {
+ $ret = "$parted mkpartfs $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://sourceforge.net/services/buy/index.php
_______________________________________________
unattended-devel mailing list
unattended-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-devel