From c779a874fab85882b1d92ae9b945dbbe985c2426 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 4 Sep 2007 08:33:44 +0000 Subject: better use $::o->{uuid_by_default} to allow easy setting in auto_installs --- perl-install/fs/wild_device.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/fs/wild_device.pm') 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} ? -- cgit v1.2.1