summaryrefslogtreecommitdiffstats
path: root/draklive
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-08-07 21:23:05 +0000
committerOlivier Blin <oblin@mandriva.com>2009-08-07 21:23:05 +0000
commitf6b66663ad90dbd93ac89f6d6882d393887dc555 (patch)
tree73d65cfbede9ed52baef966c20265358fa08e9c4 /draklive
parent0581caa1351524bb2564d5dfb132ab26d3bb410b (diff)
downloaddrakiso-f6b66663ad90dbd93ac89f6d6882d393887dc555.tar
drakiso-f6b66663ad90dbd93ac89f6d6882d393887dc555.tar.gz
drakiso-f6b66663ad90dbd93ac89f6d6882d393887dc555.tar.bz2
drakiso-f6b66663ad90dbd93ac89f6d6882d393887dc555.tar.xz
drakiso-f6b66663ad90dbd93ac89f6d6882d393887dc555.zip
set disk master device in create function instead of record (can be used for usb too)
Diffstat (limited to 'draklive')
-rwxr-xr-xdraklive2
1 files changed, 1 insertions, 1 deletions
diff --git a/draklive b/draklive
index fed4b99..abdc17b 100755
--- a/draklive
+++ b/draklive
@@ -774,6 +774,7 @@ sub create_disk_master {
my $dest = get_disk_master_path($live);
allocate_master($live, $live->{media}, $dest);
my $slash_idx = $live->{media}->find_partition_index('/');
+ $opts->{device} ||= get_disk_master_path($live);
record_master($live, $opts);
}
@@ -971,7 +972,6 @@ sub record_harddisk_master {
my $media_boot = $live->get_media_prefix('boot', $opts->{boot});
my $media_loopbacks = $live->get_media_prefix('loopbacks', $opts->{boot});
- $opts->{device} ||= get_disk_master_path($live);
my $main_device = get_media_device($live, $opts)
or die "unable to find recording device (missing label? try with --device <device>)\n";