diff options
Diffstat (limited to 'draklive')
-rwxr-xr-x | draklive | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 { |