summaryrefslogtreecommitdiffstats
path: root/draklive
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-09-15 13:23:57 +0000
committerOlivier Blin <oblin@mandriva.com>2009-09-15 13:23:57 +0000
commit9fe0db1ef378c47eb80a4624b19fecb799d6b43a (patch)
treee38225029145ce1989b628c6e5c2e552ec0aecd2 /draklive
parent7d7059b55c400296d09ef989ca00dd296fa2ec48 (diff)
downloaddrakiso-9fe0db1ef378c47eb80a4624b19fecb799d6b43a.tar
drakiso-9fe0db1ef378c47eb80a4624b19fecb799d6b43a.tar.gz
drakiso-9fe0db1ef378c47eb80a4624b19fecb799d6b43a.tar.bz2
drakiso-9fe0db1ef378c47eb80a4624b19fecb799d6b43a.tar.xz
drakiso-9fe0db1ef378c47eb80a4624b19fecb799d6b43a.zip
fix setting label for USB devices
Diffstat (limited to 'draklive')
-rwxr-xr-xdraklive7
1 files changed, 4 insertions, 3 deletions
diff --git a/draklive b/draklive
index 1bea6af..031ad3a 100755
--- a/draklive
+++ b/draklive
@@ -933,9 +933,6 @@ sub record_usb_master {
my $media_boot = $live->get_media_prefix('boot', $opts->{boot});
my $media_loopbacks = $live->get_media_prefix('loopbacks', $opts->{boot});
- if (my $label = !$opts->{boot_only} && $opts->{device} && $media->get_media_label) {
- set_device_label($opts->{device}, $media->get_media_setting('fs'), $label);
- }
my $main_device = get_media_device($live, $opts)
or die "unable to find recording device (missing label? try with --device <device>)\n";
@@ -946,6 +943,10 @@ sub record_usb_master {
my $slash = $media->{partitions}[$slash_idx];
set_part_real_device($hd, $slash);
+ if (my $label = !$opts->{boot_only} && $media->get_media_label) {
+ set_device_label($slash->{real_device}, $media->get_media_setting('fs'), $label);
+ }
+
mkdir_p($live->{mnt});
run_('mount', $slash->{real_device}, $live->{mnt})
or die "unable to mount $slash->{real_device}\n";