From 7a946b33b5cc08b4ee85994d44ea60c6dc73ebf0 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 6 Dec 2013 11:29:40 +0100 Subject: fix retrieving network info from stage2 after dracut migration (mga#11504) dracut is now creating /tmp/ifcfg & /tmp/ifcfg-leases directories... --- perl-install/install/install2.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/install/install2.pm') diff --git a/perl-install/install/install2.pm b/perl-install/install/install2.pm index f6e30e8d8..661f3d4a8 100644 --- a/perl-install/install/install2.pm +++ b/perl-install/install/install2.pm @@ -415,7 +415,7 @@ sub read_stage1_net_conf() { #- get stage1 network configuration if any. log::l('found /tmp/network'); add2hash($o->{net}{network} ||= {}, network::network::read_conf('/tmp/network')); - if (my ($file) = glob_('/tmp/ifcfg-*')) { + if (my ($file) = grep { -f $_ } glob_('/tmp/ifcfg-*')) { log::l("found network config file $file"); my $l = network::network::read_interface_conf($file); $o->{net}{ifcfg}{$l->{DEVICE}} ||= $l; -- cgit v1.2.1