|
Lines 314-324
Returns undef on fail
Link Here
|
| 314 |
# list<string> ListFiles () |
314 |
# list<string> ListFiles () |
| 315 |
sub ListFiles { |
315 |
sub ListFiles { |
| 316 |
my $self = shift; |
316 |
my $self = shift; |
|
|
317 |
my @ret = ( Bootloader::Path::Grub2_devicemap(), |
| 318 |
Bootloader::Path::Grub2_installdevice(), |
| 319 |
Bootloader::Path::Grub2_defaultconf() ); |
| 317 |
|
320 |
|
| 318 |
return [ Bootloader::Path::Grub2_devicemap(), |
321 |
if (-e Bootloader::Path::Grub2_conf()) { |
| 319 |
Bootloader::Path::Grub2_installdevice(), |
322 |
push @ret, Bootloader::Path::Grub2_conf(); |
| 320 |
Bootloader::Path::Grub2_defaultconf(), |
323 |
} |
| 321 |
Bootloader::Path::Grub2_conf() ]; |
324 |
|
|
|
325 |
return \@ret; |
| 322 |
} |
326 |
} |
| 323 |
|
327 |
|
| 324 |
=item |
328 |
=item |