diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-09-15 12:13:22 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-09-15 12:13:22 +0000 |
commit | 922a97e6758ec8e1297dfae89b8359b66c220abf (patch) | |
tree | 06a79b2689750f6949e3520114aaa6133fa71b0a | |
parent | 2a9a95b6fc49eec8bd0254f911df0becb2b744db (diff) | |
download | drakiso-922a97e6758ec8e1297dfae89b8359b66c220abf.tar drakiso-922a97e6758ec8e1297dfae89b8359b66c220abf.tar.gz drakiso-922a97e6758ec8e1297dfae89b8359b66c220abf.tar.bz2 drakiso-922a97e6758ec8e1297dfae89b8359b66c220abf.tar.xz drakiso-922a97e6758ec8e1297dfae89b8359b66c220abf.zip |
use opts passed as parameter
-rwxr-xr-x | draklive | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1213,13 +1213,13 @@ sub get_disk_replicator_files { } sub create_usb_replicator { - my ($live) = @_; + my ($live, $opts) = @_; my %files = get_disk_replicator_files($live); my $size = fold_left { $::a + $::b } map { directory_usage($_, 'apparent') } keys(%files); $live->{replicator}{media}->supplement_slash_size($size); - my $opts = { device => get_disk_replicator_path($live) }; + local $opts->{device} = get_disk_replicator_path($live); allocate_master($live, $live->{replicator}{media}, $opts); format_master($live, $live->{replicator}{media}, $opts); record_usb_replicator($live, $opts); |