diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-08-07 21:21:51 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-08-07 21:21:51 +0000 |
commit | 0581caa1351524bb2564d5dfb132ab26d3bb410b (patch) | |
tree | 0804806243175303f6c9f670f84d741c3abd39a9 | |
parent | f07be4e44ae2ddc97208944b6d7909f67e30fa17 (diff) | |
download | draklive-0581caa1351524bb2564d5dfb132ab26d3bb410b.tar draklive-0581caa1351524bb2564d5dfb132ab26d3bb410b.tar.gz draklive-0581caa1351524bb2564d5dfb132ab26d3bb410b.tar.bz2 draklive-0581caa1351524bb2564d5dfb132ab26d3bb410b.tar.xz draklive-0581caa1351524bb2564d5dfb132ab26d3bb410b.zip |
set usb_replicator device in create function, not in record
-rwxr-xr-x | draklive | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"; |