summaryrefslogtreecommitdiffstats
path: root/perl-install/fs/wild_device.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/fs/wild_device.pm')
-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 f31390d9e..4e2a3a849 100644
--- a/perl-install/fs/wild_device.pm
+++ b/perl-install/fs/wild_device.pm
@@ -79,7 +79,7 @@ sub to_subpart {
sub _prefer_device_UUID {
my ($part) = @_;
$part->{prefer_device_UUID} ||
- !$::no_uuid_by_default && $part->{device} =~ /^(hd|sd)/;
+ !$::no_uuid_by_default && devices::should_prefer_UUID($part->{device});
}
sub from_part {