* [PATCH] 30_os-prober: add $onstr ot top level Linux entries too
@ 2013-04-05 7:30 Andrey Borzenkov
2013-04-06 19:39 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-04-10 22:13 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 2 replies; 5+ messages in thread
From: Andrey Borzenkov @ 2013-04-05 7:30 UTC (permalink / raw)
To: grub-devel
This fixes two issues
1. It visually distinguishes between multiple installations of the
same OS version. Currently all of them get identical titles.
2. linux prober is using "(on /dev/xxx)" as indication that entry has
to be skipped. Top level entries should be skipped too.
$onstr was already appended to all other generated Linux menu entries.
Signed-off-by: Andrey Borzenkov <arvidjaar@gmail.com>
---
util/grub.d/30_os-prober.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in
index bf47dc3..4cd45e8 100644
--- a/util/grub.d/30_os-prober.in
+++ b/util/grub.d/30_os-prober.in
@@ -186,7 +186,7 @@ EOF
if [ "x$is_first_entry" = xtrue ]; then
cat << EOF
-menuentry '$(echo "$OS" | grub_quote)' --class gnu-linux --class gnu --class os \$menuentry_id_option 'osprober-gnulinux-simple-$boot_device_id' {
+menuentry '$(echo "$OS $onstr" | grub_quote)' --class gnu-linux --class gnu --class os \$menuentry_id_option 'osprober-gnulinux-simple-$boot_device_id' {
EOF
save_default_entry | grub_add_tab
printf '%s\n' "${prepare_boot_cache}"
@@ -201,7 +201,7 @@ EOF
cat << EOF
}
EOF
- echo "submenu '$(gettext_printf "Advanced options for %s" "${OS}" | grub_quote)' \$menuentry_id_option 'osprober-gnulinux-advanced-$boot_device_id' {"
+ echo "submenu '$(gettext_printf "Advanced options for %s" "${OS} $onstr" | grub_quote)' \$menuentry_id_option 'osprober-gnulinux-advanced-$boot_device_id' {"
is_first_entry=false
fi
title="${LLABEL} $onstr"
--
tg: (f3399bf..) u/linux-onstr (depends on: master)
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] 30_os-prober: add $onstr ot top level Linux entries too
2013-04-05 7:30 [PATCH] 30_os-prober: add $onstr ot top level Linux entries too Andrey Borzenkov
@ 2013-04-06 19:39 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-04-07 6:34 ` Andrey Borzenkov
2013-04-10 22:13 ` Vladimir 'φ-coder/phcoder' Serbinenko
1 sibling, 1 reply; 5+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2013-04-06 19:39 UTC (permalink / raw)
To: The development of GNU GRUB
[-- Attachment #1: Type: text/plain, Size: 2218 bytes --]
On 05.04.2013 09:30, Andrey Borzenkov wrote:
> This fixes two issues
>
> 1. It visually distinguishes between multiple installations of the
> same OS version. Currently all of them get identical titles.
>
I don't know how "speaking" the device names are in practice. They are
not stable and what is sda1 under one install can be sdb1 under another
one. Perhaps we should use some other kind of identifier for this.
> 2. linux prober is using "(on /dev/xxx)" as indication that entry has
> to be skipped. Top level entries should be skipped too.
This is improper. This string can be translated and e.g. '(на /dev/xxx)'
or '(auf /dev/xxx)' won't match '(on /dev/xxx)'. "$menuentry_id_option
'osprober-" should be used instead (and (on ...) be kept in or-way for
backward compatibility).
>
> $onstr was already appended to all other generated Linux menu entries.
>
> Signed-off-by: Andrey Borzenkov <arvidjaar@gmail.com>
>
> ---
> util/grub.d/30_os-prober.in | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in
> index bf47dc3..4cd45e8 100644
> --- a/util/grub.d/30_os-prober.in
> +++ b/util/grub.d/30_os-prober.in
> @@ -186,7 +186,7 @@ EOF
>
> if [ "x$is_first_entry" = xtrue ]; then
> cat << EOF
> -menuentry '$(echo "$OS" | grub_quote)' --class gnu-linux --class gnu --class os \$menuentry_id_option 'osprober-gnulinux-simple-$boot_device_id' {
> +menuentry '$(echo "$OS $onstr" | grub_quote)' --class gnu-linux --class gnu --class os \$menuentry_id_option 'osprober-gnulinux-simple-$boot_device_id' {
> EOF
> save_default_entry | grub_add_tab
> printf '%s\n' "${prepare_boot_cache}"
> @@ -201,7 +201,7 @@ EOF
> cat << EOF
> }
> EOF
> - echo "submenu '$(gettext_printf "Advanced options for %s" "${OS}" | grub_quote)' \$menuentry_id_option 'osprober-gnulinux-advanced-$boot_device_id' {"
> + echo "submenu '$(gettext_printf "Advanced options for %s" "${OS} $onstr" | grub_quote)' \$menuentry_id_option 'osprober-gnulinux-advanced-$boot_device_id' {"
> is_first_entry=false
> fi
> title="${LLABEL} $onstr"
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] 30_os-prober: add $onstr ot top level Linux entries too
2013-04-06 19:39 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2013-04-07 6:34 ` Andrey Borzenkov
0 siblings, 0 replies; 5+ messages in thread
From: Andrey Borzenkov @ 2013-04-07 6:34 UTC (permalink / raw)
To: grub-devel
[-- Attachment #1: Type: text/plain, Size: 1350 bytes --]
В Sat, 06 Apr 2013 21:39:24 +0200
Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com> пишет:
> On 05.04.2013 09:30, Andrey Borzenkov wrote:
>
> > This fixes two issues
> >
> > 1. It visually distinguishes between multiple installations of the
> > same OS version. Currently all of them get identical titles.
> >
>
> I don't know how "speaking" the device names are in practice. They are
> not stable and what is sda1 under one install can be sdb1 under another
> one. Perhaps we should use some other kind of identifier for this.
>
Well,
a) those names are from the perspective of a single installation only.
In this respect it does not matter how another install calls it.
b) this is already used for some of menu entries. So it is just to
establish consistency. If something better is invented, I am fine with
it, but current situation is inconsistent.
> > 2. linux prober is using "(on /dev/xxx)" as indication that entry has
> > to be skipped. Top level entries should be skipped too.
>
> This is improper. This string can be translated and e.g. '(на /dev/xxx)'
> or '(auf /dev/xxx)' won't match '(on /dev/xxx)'. "$menuentry_id_option
> 'osprober-" should be used instead (and (on ...) be kept in or-way for
> backward compatibility).
>
Ah. Did not occur to me, thank you for idea!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] 30_os-prober: add $onstr ot top level Linux entries too
2013-04-05 7:30 [PATCH] 30_os-prober: add $onstr ot top level Linux entries too Andrey Borzenkov
2013-04-06 19:39 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2013-04-10 22:13 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-04-19 12:15 ` Andrey Borzenkov
1 sibling, 1 reply; 5+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2013-04-10 22:13 UTC (permalink / raw)
To: The development of GNU GRUB
[-- Attachment #1: Type: text/plain, Size: 1815 bytes --]
On 05.04.2013 09:30, Andrey Borzenkov wrote:
> This fixes two issues
>
> 1. It visually distinguishes between multiple installations of the
> same OS version. Currently all of them get identical titles.
Go ahead
>
> 2. linux prober is using "(on /dev/xxx)" as indication that entry has
> to be skipped. Top level entries should be skipped too.
>
This part still should be fixed in os-prober
> $onstr was already appended to all other generated Linux menu entries.
>
> Signed-off-by: Andrey Borzenkov <arvidjaar@gmail.com>
>
> ---
> util/grub.d/30_os-prober.in | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in
> index bf47dc3..4cd45e8 100644
> --- a/util/grub.d/30_os-prober.in
> +++ b/util/grub.d/30_os-prober.in
> @@ -186,7 +186,7 @@ EOF
>
> if [ "x$is_first_entry" = xtrue ]; then
> cat << EOF
> -menuentry '$(echo "$OS" | grub_quote)' --class gnu-linux --class gnu --class os \$menuentry_id_option 'osprober-gnulinux-simple-$boot_device_id' {
> +menuentry '$(echo "$OS $onstr" | grub_quote)' --class gnu-linux --class gnu --class os \$menuentry_id_option 'osprober-gnulinux-simple-$boot_device_id' {
> EOF
> save_default_entry | grub_add_tab
> printf '%s\n' "${prepare_boot_cache}"
> @@ -201,7 +201,7 @@ EOF
> cat << EOF
> }
> EOF
> - echo "submenu '$(gettext_printf "Advanced options for %s" "${OS}" | grub_quote)' \$menuentry_id_option 'osprober-gnulinux-advanced-$boot_device_id' {"
> + echo "submenu '$(gettext_printf "Advanced options for %s" "${OS} $onstr" | grub_quote)' \$menuentry_id_option 'osprober-gnulinux-advanced-$boot_device_id' {"
> is_first_entry=false
> fi
> title="${LLABEL} $onstr"
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-04-19 12:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-05 7:30 [PATCH] 30_os-prober: add $onstr ot top level Linux entries too Andrey Borzenkov
2013-04-06 19:39 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-04-07 6:34 ` Andrey Borzenkov
2013-04-10 22:13 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-04-19 12:15 ` Andrey Borzenkov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.