summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-04-24 15:37:13 +0000
committerOlivier Blin <oblin@mandriva.com>2009-04-24 15:37:13 +0000
commit96ed55ed7896e4b562ce9882507e04b700800038 (patch)
tree57e5e3a08150c3d175d9105f67dc85a3d234211d
parentf156e9b4c2a3bf02273b0df6784379b4210aee4e (diff)
downloaddrakiso-96ed55ed7896e4b562ce9882507e04b700800038.tar
drakiso-96ed55ed7896e4b562ce9882507e04b700800038.tar.gz
drakiso-96ed55ed7896e4b562ce9882507e04b700800038.tar.bz2
drakiso-96ed55ed7896e4b562ce9882507e04b700800038.tar.xz
drakiso-96ed55ed7896e4b562ce9882507e04b700800038.zip
fix sizelimit option of losetup (and adjust offset to have same format, from Caio Begotti)
-rwxr-xr-xdraklive2
1 files changed, 1 insertions, 1 deletions
diff --git a/draklive b/draklive
index a9812ca..92331fb 100755
--- a/draklive
+++ b/draklive
@@ -653,7 +653,7 @@ EOF
require devices;
my $loop = devices::find_free_loop();
- run_('losetup', '-o', $part_start * $sector_size, '-s', $part_nb_sectors * $sector_size, $loop, $dest)
+ run_('losetup', '--offset', $part_start * $sector_size, '--sizelimit', $part_nb_sectors * $sector_size, $loop, $dest)
or die "unable to setup loop device";
MDV::Draklive::Utils::device_mkfs($loop, $fs) or die "unable to format $dest\n";