diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-09-15 13:06:02 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-09-15 13:06:02 +0000 |
commit | 7d7059b55c400296d09ef989ca00dd296fa2ec48 (patch) | |
tree | 70ee89e8b38fe01b0ea533de07ef72ba1091718d | |
parent | 898bb7add4e344d9677920ae00ef36db07b1d884 (diff) | |
download | drakiso-7d7059b55c400296d09ef989ca00dd296fa2ec48.tar drakiso-7d7059b55c400296d09ef989ca00dd296fa2ec48.tar.gz drakiso-7d7059b55c400296d09ef989ca00dd296fa2ec48.tar.bz2 drakiso-7d7059b55c400296d09ef989ca00dd296fa2ec48.tar.xz drakiso-7d7059b55c400296d09ef989ca00dd296fa2ec48.zip |
do not use loopback if disk is a device
-rwxr-xr-x | draklive | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -766,9 +766,10 @@ sub format_master { my $inode_size = $media->get_media_setting('inode_size'); foreach my $part (@{$media->{partitions}}) { - my $loop = get_partition_loop($hd, $part); - MDV::Draklive::Utils::device_mkfs($loop, $part->{fs_type}, $inode_size) or die "unable to format $hd->{file}\n"; - devices::del_loop($loop); + set_part_real_device($hd, $part); + MDV::Draklive::Utils::device_mkfs($part->{real_device}, $part->{fs_type}, $inode_size) + or die "unable to format $part->{real_device} in $hd->{file}\n"; + devices::del_loop($part->{real_device}) if -f $hd->{file}; } } |