| 108 |
else |
else |
| 109 |
{ |
{ |
| 110 |
push @FAI::commands, |
push @FAI::commands, |
| 111 |
"$FAI::bash_commands{'parted'} $disk mklabel $target_label"; |
"$FAI::system_commands{'parted'} $disk mklabel $target_label"; |
| 112 |
} |
} |
| 113 |
} |
} |
| 114 |
else |
else |
| 122 |
next; |
next; |
| 123 |
} |
} |
| 124 |
push @FAI::commands, |
push @FAI::commands, |
| 125 |
"$FAI::bash_commands{'parted'} $disk rm $part_id"; |
"$FAI::system_commands{'parted'} $disk rm $part_id"; |
| 126 |
} |
} |
| 127 |
} |
} |
| 128 |
|
|
| 166 |
$FAI::configs{$config}{"partitions"}{"size"}{"eff_size"} + |
$FAI::configs{$config}{"partitions"}{"size"}{"eff_size"} + |
| 167 |
$next_start - 1; |
$next_start - 1; |
| 168 |
push @FAI::commands, |
push @FAI::commands, |
| 169 |
"$FAI::bash_commands{'parted'} $disk resize $part_id $next_start" |
"$FAI::system_commands{'parted'} $disk resize $part_id $next_start" |
| 170 |
. "B " |
. "B " |
| 171 |
. $part_size . "B"; |
. $part_size . "B"; |
| 172 |
unless ( $FAI::configs{$config}{"disklabel"} eq "msdos" |
unless ( $FAI::configs{$config}{"disklabel"} eq "msdos" |
| 195 |
$FAI::configs{$config}{"partitions"}{$part_id}{"size"}{"eff_size"} + |
$FAI::configs{$config}{"partitions"}{$part_id}{"size"}{"eff_size"} + |
| 196 |
$next_start - 1; |
$next_start - 1; |
| 197 |
push @FAI::commands, |
push @FAI::commands, |
| 198 |
"$FAI::bash_commands{'parted'} $disk mkpart $part_type $next_start" |
"$FAI::system_commands{'parted'} $disk mkpart $part_type $next_start" |
| 199 |
. "B " |
. "B " |
| 200 |
. $part_size . "B"; |
. $part_size . "B"; |
| 201 |
unless ( $FAI::configs{$config}{"disklabel"} eq "msdos" |
unless ( $FAI::configs{$config}{"disklabel"} eq "msdos" |