summaryrefslogtreecommitdiffstats
path: root/perl-install/fs
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-04 08:33:44 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-04 08:33:44 +0000
commitc779a874fab85882b1d92ae9b945dbbe985c2426 (patch)
tree3f166f4e0539275c463dab3302dc176bbc0f4f55 /perl-install/fs
parent8b8d6060e3d6fc8e240de00624e40e24d0715497 (diff)
downloaddrakx-c779a874fab85882b1d92ae9b945dbbe985c2426.tar
drakx-c779a874fab85882b1d92ae9b945dbbe985c2426.tar.gz
drakx-c779a874fab85882b1d92ae9b945dbbe985c2426.tar.bz2
drakx-c779a874fab85882b1d92ae9b945dbbe985c2426.tar.xz
drakx-c779a874fab85882b1d92ae9b945dbbe985c2426.zip
better use $::o->{uuid_by_default} to allow easy setting in auto_installs
Diffstat (limited to 'perl-install/fs')
-rw-r--r--perl-install/fs/wild_device.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/fs/wild_device.pm b/perl-install/fs/wild_device.pm
index be4a43dfd..206428402 100644
--- a/perl-install/fs/wild_device.pm
+++ b/perl-install/fs/wild_device.pm
@@ -83,7 +83,7 @@ sub from_part {
'LABEL=' . $part->{device_LABEL};
} elsif ($part->{device_alias}) {
"/dev/$part->{device_alias}";
- } elsif (!$part->{prefer_device} && ($part->{prefer_device_UUID} || $::uuid_by_default) && $part->{device_UUID}) {
+ } elsif (!$part->{prefer_device} && ($part->{prefer_device_UUID} || $::isInstall && $::o->{uuid_by_default}) && $part->{device_UUID}) {
'UUID=' . $part->{device_UUID};
} else {
my $faked_device = exists $part->{faked_device} ?