From eb497cece2871e59a2f981602e44f303826ffeab Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Mon, 27 Nov 2017 10:20:34 +0000 Subject: Make fs::get_major_minor() unconditionally read the device numbers. Thus ensuring we get the correct device numbers after writing a partition table (mga#22032). --- perl-install/fs.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/fs.pm') diff --git a/perl-install/fs.pm b/perl-install/fs.pm index ac118cdc0..76cce10e7 100644 --- a/perl-install/fs.pm +++ b/perl-install/fs.pm @@ -144,7 +144,7 @@ sub get_major_minor { eval { my (undef, $major, $minor) = devices::entry($_->{device}); ($_->{major}, $_->{minor}) = ($major, $minor); - } if !$_->{major}; + }; } } -- cgit v1.2.1