FAI Stable release candaidate 3.4.3~rc1
Michael Prokop
mika at grml.org
Tue Oct 5 11:50:41 CEST 2010
* Peter Kruse <pk at q-leap.de> [Tue Oct 05, 2010 at 09:48:33AM +0200]:
> can you please also apply attached patch?
> $fs can look like "linux-swap(v1)" and if not quoted you'll
> get a syntax error in the calling shell.
Needs to go through Michael Tautschnig, being the setup-storage
maintainer. I'll apply as soon as it's available from svn's trunk.
Thanks.
regards,
-mika-
> 2010-10-04 Peter Kruse <pk at q-leap.de>
> * debian/ubuntu/lucid/usr/share/fai/setup-storage/Commands.pm:
> quot fs argument to parted, can contain special character as in
> linux-swap(v1)
> [992e14977b87]
> diff -r dbf4bcae0d10 -r 992e14977b87 debian/ubuntu/lucid/usr/share/fai/setup-storage/Commands.pm
> --- a/debian/ubuntu/lucid/usr/share/fai/setup-storage/Commands.pm Mon Oct 04 14:32:48 2010 +0200
> +++ b/debian/ubuntu/lucid/usr/share/fai/setup-storage/Commands.pm Mon Oct 04 15:41:15 2010 +0200
> @@ -850,7 +850,7 @@
> $post .= ",rebuilt_" . &FAI::make_device_name($disk, $part_nr) if
> $FAI::configs{$config}{partitions}{$part_id}{size}{resize};
> # build a parted command to create the partition
> - &FAI::push_command( "parted -s $disk mkpart $part_type $fs ${start}B ${end}B",
> + &FAI::push_command( "parted -s $disk mkpart $part_type \"$fs\" ${start}B ${end}B",
> "cleared1_$disk", $post );
> }
> }
> @@ -1043,7 +1043,7 @@
> my $pre = "";
> $pre = ",exist_" . &FAI::make_device_name($disk, $prev_id) if ($prev_id > -1);
> # build a parted command to create the partition
> - &FAI::push_command( "parted -s $disk mkpart $part_type $fs ${start}B ${end}B",
> + &FAI::push_command( "parted -s $disk mkpart $part_type \"$fs\" ${start}B ${end}B",
> "cleared2_$disk$pre", "exist_" . &FAI::make_device_name($disk, $part_id) );
> $prev_id = $part_id;
> }
> @@ -1156,7 +1156,7 @@
> my $fs = $curr_part->{filesystem};
> # build a parted command to create the partition
> - &FAI::execute_command("parted -s $disk mkpart $part_type $fs ${start}B ${end}B");
> + &FAI::execute_command("parted -s $disk mkpart $part_type \"$fs\" ${start}B ${end}B");
> }
> warn "Partition table of disk $disk has been restored\n";
> }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.uni-koeln.de/pipermail/linux-fai-devel/attachments/20101005/c2401895/attachment.bin
More information about the linux-fai-devel
mailing list