-------- Original Message -------- Subject: Re: [PATCH] Add support for UEFI operating systems returned by os-prober Date: Wed, 22 Jan 2014 15:45:22 +0100 From: Vladimir 'φ-coder/phcoder' Serbinenko <[email protected]> To: Lubomir Rintel <[email protected]> commit f25870887b7f758c8a66811bcda1f0e6e0e4521f Author: Andrey Borzenkov <[email protected]> Date: Fri May 31 20:29:03 2013 +0400 * util/grub.d/30_os-prober.in: Add support for probing EFI System Partition (as of os-prober 1.58). On 21.01.2014 00:38, Lubomir Rintel wrote: > From: Matthew Garrett <[email protected]> > > os-prober returns UEFI operating systems in the form: > > path:long-name:name > > where path is the path under the EFI directory on the ESP. This is in > contrast to legacy OSes, where path is the device string. Handle this case. > > [[email protected]: Add Changelog] > --- > Hi, > > this is taken from Fedora (and RHEL) package as it is. I've only added the > Changelog. > > Please have a look and let me know if there's anything I could do to have his > mainlined, so that we can get rid of the pile of patches we ship in Fedora. > Other Linux distributions interested in Linux on EFI support may find this > useful too. > > Thank you! > Lubo > > ChangeLog | 4 ++++ > util/grub.d/30_os-prober.in | 22 ++++++++++++++++++---- > 2 files changed, 22 insertions(+), 4 deletions(-) > > diff --git a/ChangeLog b/ChangeLog > index 10abfe2..d33278f 100644 > --- a/ChangeLog > +++ b/ChangeLog > @@ -1,3 +1,7 @@ > +2014-02-21 Matthew Garrett <[email protected]> > + > + * util/grub.d/30_os-prober.in: Chainload *.efi entries. > + > 2014-01-19 Colin Watson <[email protected]> > > * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore > diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in > index 7cf8487..390bb0e 100644 > --- a/util/grub.d/30_os-prober.in > +++ b/util/grub.d/30_os-prober.in > @@ -319,9 +319,23 @@ EOF > EOF > ;; > *) > - echo -n " " > - # TRANSLATORS: %s is replaced by OS name. > - gettext_printf "%s is not yet supported by grub-mkconfig.\n" > "${LONGNAME}" >&2 > - ;; > + case ${DEVICE} in > + *.efi) > + cat << EOF > +menuentry '$(echo "${LONGNAME}" | grub_quote)' { > +EOF > + save_default_entry | grub_add_tab > + cat << EOF > + chainloader /EFI/${DEVICE} > + boot > +} > +EOF > + ;; > + *) > + echo -n " " > + # TRANSLATORS: %s is replaced by OS name. > + gettext_printf "%s is not yet supported by grub-mkconfig.\n" > "${LONGNAME}" >&2 > + ;; > + esac > esac > done >
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Bug-grub mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-grub
