summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdraklive3
1 files changed, 2 insertions, 1 deletions
diff --git a/draklive b/draklive
index 9563bb5..41c3fe8 100755
--- a/draklive
+++ b/draklive
@@ -780,7 +780,8 @@ sub supplement_media_partitions {
sub set_part_real_device {
my ($hd, $part) = @_;
- $part->{real_device} = -f $hd->{file} ? get_partition_loop($hd, $part) : ($hd->{file} . $part->{device});
+ my $ext = $hd->{file} =~ m!^/dev/mmcblk! ? 'p' : '';
+ $part->{real_device} = -f $hd->{file} ? get_partition_loop($hd, $part) : ($hd->{file} . $ext . $part->{device});
}
sub allocate_master {