diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-09-15 13:23:57 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-09-15 13:23:57 +0000 |
commit | 9fe0db1ef378c47eb80a4624b19fecb799d6b43a (patch) | |
tree | e38225029145ce1989b628c6e5c2e552ec0aecd2 /draklive | |
parent | 7d7059b55c400296d09ef989ca00dd296fa2ec48 (diff) | |
download | drakiso-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-x | draklive | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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"; |