|
Lines 131-141
sub ParseLines {
Link Here
|
| 131 |
\@defaultconf |
131 |
\@defaultconf |
| 132 |
); |
132 |
); |
| 133 |
|
133 |
|
| 134 |
my @confs = @{$files{Bootloader::Path::Grub2_eficonf()} || []}; |
|
|
| 135 |
my @entries = (); |
134 |
my @entries = (); |
| 136 |
foreach my $conf (@confs) { |
135 |
my $conf_path = Bootloader::Path::Grub2_eficonf(); |
| 137 |
if ($conf =~ /^menuentry\s+['"](.*)['"]\s+/) { |
136 |
if (-e $conf_path) { |
| 138 |
push @entries, { "menuentry" => $1 }; |
137 |
my @confs = @{$files{$conf_path} || []}; |
|
|
138 |
foreach my $conf (@confs) { |
| 139 |
if ($conf =~ /^menuentry\s+['"](.*)['"]\s+/) { |
| 140 |
push @entries, { "menuentry" => $1 }; |
| 141 |
} |
| 139 |
} |
142 |
} |
| 140 |
} |
143 |
} |
| 141 |
|
144 |
|