summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdraklive4
1 files changed, 2 insertions, 2 deletions
diff --git a/draklive b/draklive
index 4149fa6..fed4b99 100755
--- a/draklive
+++ b/draklive
@@ -1186,7 +1186,8 @@ sub create_usb_replicator {
$live->{replicator}{media}->supplement_partitions($size);
allocate_master($live, $live->{replicator}{media}, $dest);
- record_usb_replicator($live, {});
+ my $opts = { device => get_disk_replicator_path($live) };
+ record_usb_replicator($live, $opts);
}
sub record_usb_replicator {
@@ -1196,7 +1197,6 @@ sub record_usb_replicator {
my $media_boot = $live->get_media_prefix('boot');
$opts->{append} ||= $live->{replicator}{append};
- $opts->{device} ||= get_disk_replicator_path($live);
my $main_device = get_media_device($live, $opts)
or die "unable to find recording device (missing label? try with --device <device>)\n";