Bugzilla – Attachment 496950 Details for
Bug 769350
grub2.cfg missing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
[patch]
new patch
bnc_769350.patch (text/plain), 1.43 KB, created by
Michael Chang
on 2012-06-29 13:39:55 UTC
(
hide
)
Description:
new patch
Filename:
MIME Type:
Creator:
Michael Chang
Created:
2012-06-29 13:39:55 UTC
Size:
1.43 KB
patch
obsolete
>Index: perl-Bootloader-0.6.4/src/Core/GRUB2.pm >=================================================================== >--- perl-Bootloader-0.6.4.orig/src/Core/GRUB2.pm >+++ perl-Bootloader-0.6.4/src/Core/GRUB2.pm >@@ -314,11 +314,15 @@ Returns undef on fail > # list<string> ListFiles () > sub ListFiles { > my $self = shift; >+ my @ret = ( Bootloader::Path::Grub2_devicemap(), >+ Bootloader::Path::Grub2_installdevice(), >+ Bootloader::Path::Grub2_defaultconf() ); > >- return [ Bootloader::Path::Grub2_devicemap(), >- Bootloader::Path::Grub2_installdevice(), >- Bootloader::Path::Grub2_defaultconf(), >- Bootloader::Path::Grub2_conf() ]; >+ if (-e Bootloader::Path::Grub2_conf()) { >+ push @ret, Bootloader::Path::Grub2_conf(); >+ } >+ >+ return \@ret; > } > > =item >Index: perl-Bootloader-0.6.4/src/Core/GRUB2EFI.pm >=================================================================== >--- perl-Bootloader-0.6.4.orig/src/Core/GRUB2EFI.pm >+++ perl-Bootloader-0.6.4/src/Core/GRUB2EFI.pm >@@ -86,9 +86,13 @@ Returns undef on fail > # list<string> ListFiles () > sub ListFiles { > my $self = shift; >+ my @ret = (Bootloader::Path::Grub2_defaultconf()); > >- return [ Bootloader::Path::Grub2_defaultconf(), >- Bootloader::Path::Grub2_eficonf() ]; >+ if (-e Bootloader::Path::Grub2_eficonf()) { >+ push @ret, Bootloader::Path::Grub2_eficonf(); >+ } >+ >+ return \@ret; > } > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 769350
:
496874
|
496911
| 496950