diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-08-04 09:43:56 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-08-04 09:43:56 +0000 |
commit | 21c18989638648efdf9f94ccf291d991cc4f786a (patch) | |
tree | c09a88f17b57c8b8adefab0f955234dce69f27b9 | |
parent | 59e175d9ad63a30e112f25fc98c17cfc98ceb1f5 (diff) | |
download | draklive-21c18989638648efdf9f94ccf291d991cc4f786a.tar draklive-21c18989638648efdf9f94ccf291d991cc4f786a.tar.gz draklive-21c18989638648efdf9f94ccf291d991cc4f786a.tar.bz2 draklive-21c18989638648efdf9f94ccf291d991cc4f786a.tar.xz draklive-21c18989638648efdf9f94ccf291d991cc4f786a.zip |
do not try to use media source when it is not a label, it could be a device (/dev/sda1) that should not be touched on the build machine
-rwxr-xr-x | draklive | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -452,7 +452,8 @@ sub list_selected_loopbacks { sub get_media_device { my ($live, $opts) = @_; return $opts->{device} if $opts->{device}; - my $label = $live->{media}->get_media_label or return $live->{media}->get_media_setting('source'); + my $label = $live->{media}->get_media_label + or die "no device and no label"; my $device = chomp_(`readlink -f /dev/disk/by-label/$label`) or die "unable to find device for /dev/disk/by-label/$label\n"; $device; |