summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-09-15 13:06:02 +0000
committerOlivier Blin <oblin@mandriva.com>2009-09-15 13:06:02 +0000
commit7d7059b55c400296d09ef989ca00dd296fa2ec48 (patch)
tree70ee89e8b38fe01b0ea533de07ef72ba1091718d
parent898bb7add4e344d9677920ae00ef36db07b1d884 (diff)
downloaddrakiso-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-xdraklive7
1 files changed, 4 insertions, 3 deletions
diff --git a/draklive b/draklive
index 67c791b..1bea6af 100755
--- a/draklive
+++ b/draklive
@@ -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};
}
}