diff options
author | Olivier Blin <oblin@mandriva.com> | 2010-03-30 12:36:31 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2010-03-30 12:36:31 +0000 |
commit | 5d562740531853435335a7c5dae597c28fa2b39c (patch) | |
tree | 3c333b3620473d74cd2e573352f0cecf47662bcf | |
parent | 12ca786f9fa82e8a516faa265243eb120c7c5e62 (diff) | |
download | drakiso-5d562740531853435335a7c5dae597c28fa2b39c.tar drakiso-5d562740531853435335a7c5dae597c28fa2b39c.tar.gz drakiso-5d562740531853435335a7c5dae597c28fa2b39c.tar.bz2 drakiso-5d562740531853435335a7c5dae597c28fa2b39c.tar.xz drakiso-5d562740531853435335a7c5dae597c28fa2b39c.zip |
handle writing to mmcblk devices (hackish)
-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 { |