diff options
Diffstat (limited to 'draklive')
-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); |