bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Re: [PATCH] Add support for UEFI operating systems returned by os-p


From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Fwd: Re: [PATCH] Add support for UEFI operating systems returned by os-prober
Date: Wed, 22 Jan 2014 15:48:00 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.2.0



-------- 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 <address@hidden>
To: Lubomir Rintel <address@hidden>

commit f25870887b7f758c8a66811bcda1f0e6e0e4521f
Author: Andrey Borzenkov <address@hidden>
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 <address@hidden>
> 
> 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.
> 
> address@hidden: 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  <address@hidden>
> +
> +     * util/grub.d/30_os-prober.in: Chainload *.efi entries.
> +
>  2014-01-19  Colin Watson  <address@hidden>
>  
>       * 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
> 






Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]