summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-08-04 09:43:56 +0000
committerOlivier Blin <oblin@mandriva.com>2009-08-04 09:43:56 +0000
commit21c18989638648efdf9f94ccf291d991cc4f786a (patch)
treec09a88f17b57c8b8adefab0f955234dce69f27b9
parent59e175d9ad63a30e112f25fc98c17cfc98ceb1f5 (diff)
downloaddrakiso-21c18989638648efdf9f94ccf291d991cc4f786a.tar
drakiso-21c18989638648efdf9f94ccf291d991cc4f786a.tar.gz
drakiso-21c18989638648efdf9f94ccf291d991cc4f786a.tar.bz2
drakiso-21c18989638648efdf9f94ccf291d991cc4f786a.tar.xz
drakiso-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-xdraklive3
1 files changed, 2 insertions, 1 deletions
diff --git a/draklive b/draklive
index 93282f5..4d0d0bc 100755
--- a/draklive
+++ b/draklive
@@ -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;