From 5d562740531853435335a7c5dae597c28fa2b39c Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 30 Mar 2010 12:36:31 +0000 Subject: handle writing to mmcblk devices (hackish) --- draklive | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.1