* The submenu command shows a text-based menu when using a GFX theme.
@ 2012-02-23 1:50 Towheed Mohammed
2012-02-23 5:24 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 1 reply; 12+ messages in thread
From: Towheed Mohammed @ 2012-02-23 1:50 UTC (permalink / raw)
To: grub-devel@gnu.org
If a gfx theme is being used and the submenu command is used to show a submenu, the submenu does not use the gfx theme. Instead a text-based menu is shown. The only way a regular user can workaround this at the moment is to reload the theme after the submenu menuentry item is selected.
In Ubuntu's (about the only distro that uses the submenu command at this time) use of the submenu in 10_linux:
if [ "$list" ] && ! $in_submenu; then
in_submenu=:
fi
A regular user must patch 10_linux thus:
if [ "$list" ] && ! $in_submenu; then
echo "submenu \"Previous Linux versions\" --class submenu {"
if [ "x$GRUB_THEME" != x ] && [ -f "$GRUB_THEME" ] \
&& is_path_readable_by_grub "$GRUB_THEME"; then
prepare_grub_to_access_device `${grub_probe} --target=device "$GRUB_THEME"`
cat << EOF
set theme=(\$root)`make_system_path_relative_to_its_root $GRUB_THEME`
EOF
fi
in_submenu=:
fi
to reload the theme and have a themed submenu.
Will this be fixed in the 2.00 release?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: The submenu command shows a text-based menu when using a GFX theme.
2012-02-23 1:50 The submenu command shows a text-based menu when using a GFX theme Towheed Mohammed
@ 2012-02-23 5:24 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-24 1:24 ` Towheed Mohammed
0 siblings, 1 reply; 12+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2012-02-23 5:24 UTC (permalink / raw)
To: grub-devel
On 23.02.2012 02:50, Towheed Mohammed wrote:
> If a gfx theme is being used and the submenu command is used to show a submenu, the submenu does not use the gfx theme. Instead a text-based menu is shown. The only way a regular user can workaround this at the moment is to reload the theme after the submenu menuentry item is selected.
>
> In Ubuntu's (about the only distro that uses the submenu command at this time) use of the submenu in 10_linux:
>
> if [ "$list" ]&& ! $in_submenu; then
> in_submenu=:
> fi
>
> A regular user must patch 10_linux thus:
>
> if [ "$list" ]&& ! $in_submenu; then
> echo "submenu \"Previous Linux versions\" --class submenu {"
> if [ "x$GRUB_THEME" != x ]&& [ -f "$GRUB_THEME" ] \
> && is_path_readable_by_grub "$GRUB_THEME"; then
> prepare_grub_to_access_device `${grub_probe} --target=device "$GRUB_THEME"`
> cat<< EOF
> set theme=(\$root)`make_system_path_relative_to_its_root $GRUB_THEME`
> EOF
> fi
> in_submenu=:
> fi
What a perfect example of overengineering just to compensate for missing
"export theme". I've fixed it in trunk
>
> to reload the theme and have a themed submenu.
>
> Will this be fixed in the 2.00 release?
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: The submenu command shows a text-based menu when using a GFX theme.
2012-02-23 5:24 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2012-02-24 1:24 ` Towheed Mohammed
2012-02-24 7:44 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 1 reply; 12+ messages in thread
From: Towheed Mohammed @ 2012-02-24 1:24 UTC (permalink / raw)
To: The development of GNU GRUB
While 'export theme' fixes the issue more elegantly than what I had, it still results in the theme reloading when the submenu menuentry is selected. Reloading of the theme results in a screen flicker as the terminal window is shown before the theme reloads.
I cannot code in C nor do I profess to be anywhere close to scripting as you guys, but I think a better solution to fixing the submenu issue would be from source code.
Is it at all possible to simply load the menuentry items under the submenu command without having to reload the entire theme? If it can be done, wouldn't it prevent the flicker seen as the theme reloads?
While at it, could you also please fix the keyboard lag that results when a gfx theme is used. This is an issue with many users of gfx themes .
Thank you.
Towheed Mohammed
----- Original Message -----
From: Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>
To: grub-devel@gnu.org
Cc:
Sent: Thursday, February 23, 2012 1:24 AM
Subject: Re: The submenu command shows a text-based menu when using a GFX theme.
On 23.02.2012 02:50, Towheed Mohammed wrote:
> If a gfx theme is being used and the submenu command is used to show a submenu, the submenu does not use the gfx theme. Instead a text-based menu is shown. The only way a regular user can workaround this at the moment is to reload the theme after the submenu menuentry item is selected.
>
> In Ubuntu's (about the only distro that uses the submenu command at this time) use of the submenu in 10_linux:
>
> if [ "$list" ]&& ! $in_submenu; then
> in_submenu=:
> fi
>
> A regular user must patch 10_linux thus:
>
> if [ "$list" ]&& ! $in_submenu; then
> echo "submenu \"Previous Linux versions\" --class submenu {"
> if [ "x$GRUB_THEME" != x ]&& [ -f "$GRUB_THEME" ] \
> && is_path_readable_by_grub "$GRUB_THEME"; then
> prepare_grub_to_access_device `${grub_probe} --target=device "$GRUB_THEME"`
> cat<< EOF
> set theme=(\$root)`make_system_path_relative_to_its_root $GRUB_THEME`
> EOF
> fi
> in_submenu=:
> fi
What a perfect example of overengineering just to compensate for missing
"export theme". I've fixed it in trunk
>
> to reload the theme and have a themed submenu.
>
> Will this be fixed in the 2.00 release?
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: The submenu command shows a text-based menu when using a GFX theme.
2012-02-24 1:24 ` Towheed Mohammed
@ 2012-02-24 7:44 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-24 22:50 ` Towheed Mohammed
0 siblings, 1 reply; 12+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2012-02-24 7:44 UTC (permalink / raw)
To: The development of GNU GRUB
On 24.02.2012 02:24, Towheed Mohammed wrote:
> While 'export theme' fixes the issue more elegantly than what I had, it still results in the theme reloading when the submenu menuentry is selected. Reloading of the theme results in a screen flicker as the terminal window is shown before the theme reloads.
>
> I cannot code in C nor do I profess to be anywhere close to scripting as you guys, but I think a better solution to fixing the submenu issue would be from source code.
>
> Is it at all possible to simply load the menuentry items under the submenu command without having to reload the entire theme? If it can be done, wouldn't it prevent the flicker seen as the theme reloads?
Problem is that it's possible to do something like:
submenu "xyz" {
theme=...
}
And thus change the theme for submenu.
> While at it, could you also please fix the keyboard lag that results when a gfx theme is used. This is an issue with many users of gfx themes .
>
> Thank you.
>
> Towheed Mohammed
>
> ----- Original Message -----
> From: Vladimir 'φ-coder/phcoder' Serbinenko<phcoder@gmail.com>
> To: grub-devel@gnu.org
> Cc:
> Sent: Thursday, February 23, 2012 1:24 AM
> Subject: Re: The submenu command shows a text-based menu when using a GFX theme.
>
> On 23.02.2012 02:50, Towheed Mohammed wrote:
>> If a gfx theme is being used and the submenu command is used to show a submenu, the submenu does not use the gfx theme. Instead a text-based menu is shown. The only way a regular user can workaround this at the moment is to reload the theme after the submenu menuentry item is selected.
>>
>> In Ubuntu's (about the only distro that uses the submenu command at this time) use of the submenu in 10_linux:
>>
>> if [ "$list" ]&& ! $in_submenu; then
>> in_submenu=:
>> fi
>>
>> A regular user must patch 10_linux thus:
>>
>> if [ "$list" ]&& ! $in_submenu; then
>> echo "submenu \"Previous Linux versions\" --class submenu {"
>> if [ "x$GRUB_THEME" != x ]&& [ -f "$GRUB_THEME" ] \
>> && is_path_readable_by_grub "$GRUB_THEME"; then
>> prepare_grub_to_access_device `${grub_probe} --target=device "$GRUB_THEME"`
>> cat<< EOF
>> set theme=(\$root)`make_system_path_relative_to_its_root $GRUB_THEME`
>> EOF
>> fi
>> in_submenu=:
>> fi
> What a perfect example of overengineering just to compensate for missing
> "export theme". I've fixed it in trunk
>> to reload the theme and have a themed submenu.
>>
>> Will this be fixed in the 2.00 release?
>>
>>
>> _______________________________________________
>> Grub-devel mailing list
>> Grub-devel@gnu.org
>> https://lists.gnu.org/mailman/listinfo/grub-devel
>>
>
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: The submenu command shows a text-based menu when using a GFX theme.
2012-02-24 7:44 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2012-02-24 22:50 ` Towheed Mohammed
2012-02-24 23:03 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 1 reply; 12+ messages in thread
From: Towheed Mohammed @ 2012-02-24 22:50 UTC (permalink / raw)
To: The development of GNU GRUB
submenu "xyz" {
theme=...
}
So we can say it's a feature. Well then, could it be patched thus:
1. If the user specifies a new theme for the submenu, load the new theme. The flicker is then not apparent as the new theme is loaded.
2. If the user wishes to use the currently loaded theme for the submenu, then simply load the menuentry items of the submenu without reloading the theme.
This way, the screen flicker becomes non-existent/non-apparent.
In either case though, the terminal-window should never be seen when descending into the submenu as it is now. The terminal-window should only be shown when a menuentry item is selected or the user wishes to edit the commands or drop to the command-line.
Thank you
Towheed Mohammed
----- Original Message -----
From: Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Cc:
Sent: Friday, February 24, 2012 3:44 AM
Subject: Re: The submenu command shows a text-based menu when using a GFX theme.
On 24.02.2012 02:24, Towheed Mohammed wrote:
> While 'export theme' fixes the issue more elegantly than what I had, it still results in the theme reloading when the submenu menuentry is selected. Reloading of the theme results in a screen flicker as the terminal window is shown before the theme reloads.
>
> I cannot code in C nor do I profess to be anywhere close to scripting as you guys, but I think a better solution to fixing the submenu issue would be from source code.
>
> Is it at all possible to simply load the menuentry items under the submenu command without having to reload the entire theme? If it can be done, wouldn't it prevent the flicker seen as the theme reloads?
Problem is that it's possible to do something like:
submenu "xyz" {
theme=...
}
And thus change the theme for submenu.
> While at it, could you also please fix the keyboard lag that results when a gfx theme is used. This is an issue with many users of gfx themes .
>
> Thank you.
>
> Towheed Mohammed
>
> ----- Original Message -----
> From: Vladimir 'φ-coder/phcoder' Serbinenko<phcoder@gmail.com>
> To: grub-devel@gnu.org
> Cc:
> Sent: Thursday, February 23, 2012 1:24 AM
> Subject: Re: The submenu command shows a text-based menu when using a GFX theme.
>
> On 23.02.2012 02:50, Towheed Mohammed wrote:
>> If a gfx theme is being used and the submenu command is used to show a submenu, the submenu does not use the gfx theme. Instead a text-based menu is shown. The only way a regular user can workaround this at the moment is to reload the theme after the submenu menuentry item is selected.
>>
>> In Ubuntu's (about the only distro that uses the submenu command at this time) use of the submenu in 10_linux:
>>
>> if [ "$list" ]&& ! $in_submenu; then
>> in_submenu=:
>> fi
>>
>> A regular user must patch 10_linux thus:
>>
>> if [ "$list" ]&& ! $in_submenu; then
>> echo "submenu \"Previous Linux versions\" --class submenu {"
>> if [ "x$GRUB_THEME" != x ]&& [ -f "$GRUB_THEME" ] \
>> && is_path_readable_by_grub "$GRUB_THEME"; then
>> prepare_grub_to_access_device `${grub_probe} --target=device "$GRUB_THEME"`
>> cat<< EOF
>> set theme=(\$root)`make_system_path_relative_to_its_root $GRUB_THEME`
>> EOF
>> fi
>> in_submenu=:
>> fi
> What a perfect example of overengineering just to compensate for missing
> "export theme". I've fixed it in trunk
>> to reload the theme and have a themed submenu.
>>
>> Will this be fixed in the 2.00 release?
>>
>>
>> _______________________________________________
>> Grub-devel mailing list
>> Grub-devel@gnu.org
>> https://lists.gnu.org/mailman/listinfo/grub-devel
>>
>
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: The submenu command shows a text-based menu when using a GFX theme.
2012-02-24 22:50 ` Towheed Mohammed
@ 2012-02-24 23:03 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-26 2:18 ` Towheed Mohammed
0 siblings, 1 reply; 12+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2012-02-24 23:03 UTC (permalink / raw)
To: The development of GNU GRUB
On 24.02.2012 23:50, Towheed Mohammed wrote:
> submenu "xyz" {
> theme=...
> }
>
> So we can say it's a feature. Well then, could it be patched thus:
>
> 1. If the user specifies a new theme for the submenu, load the new theme. The flicker is then not apparent as the new theme is loaded.
>
> 2. If the user wishes to use the currently loaded theme for the submenu, then simply load the menuentry items of the submenu without reloading the theme.
>
> This way, the screen flicker becomes non-existent/non-apparent.
We already reuse the loaded menu if the theme file hasn't changed.
> In either case though, the terminal-window should never be seen when descending into the submenu as it is now. The terminal-window should only be shown when a menuentry item is selected or the user wishes to edit the commands or drop to the command-line.
terminal appears because of a message "Booting ...". Move it into some
kind of status message is more long-term. Definitely post-2.0
> Thank you
> Towheed Mohammed
>
> ----- Original Message -----
> From: Vladimir 'φ-coder/phcoder' Serbinenko<phcoder@gmail.com>
> To: The development of GNU GRUB<grub-devel@gnu.org>
> Cc:
> Sent: Friday, February 24, 2012 3:44 AM
> Subject: Re: The submenu command shows a text-based menu when using a GFX theme.
>
> On 24.02.2012 02:24, Towheed Mohammed wrote:
>> While 'export theme' fixes the issue more elegantly than what I had, it still results in the theme reloading when the submenu menuentry is selected. Reloading of the theme results in a screen flicker as the terminal window is shown before the theme reloads.
>>
>> I cannot code in C nor do I profess to be anywhere close to scripting as you guys, but I think a better solution to fixing the submenu issue would be from source code.
>>
>> Is it at all possible to simply load the menuentry items under the submenu command without having to reload the entire theme? If it can be done, wouldn't it prevent the flicker seen as the theme reloads?
> Problem is that it's possible to do something like:
> submenu "xyz" {
> theme=...
> }
> And thus change the theme for submenu.
>> While at it, could you also please fix the keyboard lag that results when a gfx theme is used. This is an issue with many users of gfx themes .
>>
>> Thank you.
>>
>> Towheed Mohammed
>>
>> ----- Original Message -----
>> From: Vladimir 'φ-coder/phcoder' Serbinenko<phcoder@gmail.com>
>> To: grub-devel@gnu.org
>> Cc:
>> Sent: Thursday, February 23, 2012 1:24 AM
>> Subject: Re: The submenu command shows a text-based menu when using a GFX theme.
>>
>> On 23.02.2012 02:50, Towheed Mohammed wrote:
>>> If a gfx theme is being used and the submenu command is used to show a submenu, the submenu does not use the gfx theme. Instead a text-based menu is shown. The only way a regular user can workaround this at the moment is to reload the theme after the submenu menuentry item is selected.
>>>
>>> In Ubuntu's (about the only distro that uses the submenu command at this time) use of the submenu in 10_linux:
>>>
>>> if [ "$list" ]&& ! $in_submenu; then
>>> in_submenu=:
>>> fi
>>>
>>> A regular user must patch 10_linux thus:
>>>
>>> if [ "$list" ]&& ! $in_submenu; then
>>> echo "submenu \"Previous Linux versions\" --class submenu {"
>>> if [ "x$GRUB_THEME" != x ]&& [ -f "$GRUB_THEME" ] \
>>> && is_path_readable_by_grub "$GRUB_THEME"; then
>>> prepare_grub_to_access_device `${grub_probe} --target=device "$GRUB_THEME"`
>>> cat<< EOF
>>> set theme=(\$root)`make_system_path_relative_to_its_root $GRUB_THEME`
>>> EOF
>>> fi
>>> in_submenu=:
>>> fi
>> What a perfect example of overengineering just to compensate for missing
>> "export theme". I've fixed it in trunk
>>> to reload the theme and have a themed submenu.
>>>
>>> Will this be fixed in the 2.00 release?
>>>
>>>
>>> _______________________________________________
>>> Grub-devel mailing list
>>> Grub-devel@gnu.org
>>> https://lists.gnu.org/mailman/listinfo/grub-devel
>>>
>
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: The submenu command shows a text-based menu when using a GFX theme.
2012-02-24 23:03 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2012-02-26 2:18 ` Towheed Mohammed
2012-02-26 9:27 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 1 reply; 12+ messages in thread
From: Towheed Mohammed @ 2012-02-26 2:18 UTC (permalink / raw)
To: The development of GNU GRUB
Also consider this. As in the case of the image component, it's file property allows for a fully qualified filename:
+ image {
file = "/usr/share/grub/themes/demo/images/gnu.jpg"
However, presently 00_header would not search the 'images' sub-directory for image files so as to load the required modules. Without another jpg image in the 'demo' directory, the jpeg module is not loaded and the theme fails during boot.
The bar_style and highlight_style of the progress_bar component also allows for the use of fully qualified filenames. So does the center_bitmap and tick_bitmap properties of the circular_progress components.
Please patch 00_header so that it searches for image files in sub-directories of the theme's directory. Something like:
found_jpeg=false
found_png=false
found_tga=false
for i in `find "$themedir` ; do
if [ x"`echo "$i"/*.jpg`" != x"$i/*.jpg" ] || [ x"`echo "$i"/*.jpeg`" != x"$i/*.jpeg" ] \
&& ! $found_jpeg ; then
found_jpeg=true
cat << EOF
insmod jpeg
EOF
fi
if [ x"`echo "$i"/*.png`" != x"$i/*.png" ] && ! $found_png ; then
found_png=true
cat << EOF
insmod png
EOF
fi
if [ x"`echo "$i"/*.tga`" != x"$i/*.tga" ] && ! $found_tga; then
found_tga=true
cat << EOF
insmod tga
EOF
fi
done
Thanks
Towheed Mohammed
----- Original Message -----
From: Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Cc:
Sent: Friday, February 24, 2012 7:03 PM
Subject: Re: The submenu command shows a text-based menu when using a GFX theme.
On 24.02.2012 23:50, Towheed Mohammed wrote:
> submenu "xyz" {
> theme=...
> }
>
> So we can say it's a feature. Well then, could it be patched thus:
>
> 1. If the user specifies a new theme for the submenu, load the new theme. The flicker is then not apparent as the new theme is loaded.
>
> 2. If the user wishes to use the currently loaded theme for the submenu, then simply load the menuentry items of the submenu without reloading the theme.
>
> This way, the screen flicker becomes non-existent/non-apparent.
We already reuse the loaded menu if the theme file hasn't changed.
> In either case though, the terminal-window should never be seen when descending into the submenu as it is now. The terminal-window should only be shown when a menuentry item is selected or the user wishes to edit the commands or drop to the command-line.
terminal appears because of a message "Booting ...". Move it into some
kind of status message is more long-term. Definitely post-2.0
> Thank you
> Towheed Mohammed
>
> ----- Original Message -----
> From: Vladimir 'φ-coder/phcoder' Serbinenko<phcoder@gmail.com>
> To: The development of GNU GRUB<grub-devel@gnu.org>
> Cc:
> Sent: Friday, February 24, 2012 3:44 AM
> Subject: Re: The submenu command shows a text-based menu when using a GFX theme.
>
> On 24.02.2012 02:24, Towheed Mohammed wrote:
>> While 'export theme' fixes the issue more elegantly than what I had, it still results in the theme reloading when the submenu menuentry is selected. Reloading of the theme results in a screen flicker as the terminal window is shown before the theme reloads.
>>
>> I cannot code in C nor do I profess to be anywhere close to scripting as you guys, but I think a better solution to fixing the submenu issue would be from source code.
>>
>> Is it at all possible to simply load the menuentry items under the submenu command without having to reload the entire theme? If it can be done, wouldn't it prevent the flicker seen as the theme reloads?
> Problem is that it's possible to do something like:
> submenu "xyz" {
> theme=...
> }
> And thus change the theme for submenu.
>> While at it, could you also please fix the keyboard lag that results when a gfx theme is used. This is an issue with many users of gfx themes .
>>
>> Thank you.
>>
>> Towheed Mohammed
>>
>> ----- Original Message -----
>> From: Vladimir 'φ-coder/phcoder' Serbinenko<phcoder@gmail.com>
>> To: grub-devel@gnu.org
>> Cc:
>> Sent: Thursday, February 23, 2012 1:24 AM
>> Subject: Re: The submenu command shows a text-based menu when using a GFX theme.
>>
>> On 23.02.2012 02:50, Towheed Mohammed wrote:
>>> If a gfx theme is being used and the submenu command is used to show a submenu, the submenu does not use the gfx theme. Instead a text-based menu is shown. The only way a regular user can workaround this at the moment is to reload the theme after the submenu menuentry item is selected.
>>>
>>> In Ubuntu's (about the only distro that uses the submenu command at this time) use of the submenu in 10_linux:
>>>
>>> if [ "$list" ]&& ! $in_submenu; then
>>> in_submenu=:
>>> fi
>>>
>>> A regular user must patch 10_linux thus:
>>>
>>> if [ "$list" ]&& ! $in_submenu; then
>>> echo "submenu \"Previous Linux versions\" --class submenu {"
>>> if [ "x$GRUB_THEME" != x ]&& [ -f "$GRUB_THEME" ] \
>>> && is_path_readable_by_grub "$GRUB_THEME"; then
>>> prepare_grub_to_access_device `${grub_probe} --target=device "$GRUB_THEME"`
>>> cat<< EOF
>>> set theme=(\$root)`make_system_path_relative_to_its_root $GRUB_THEME`
>>> EOF
>>> fi
>>> in_submenu=:
>>> fi
>> What a perfect example of overengineering just to compensate for missing
>> "export theme". I've fixed it in trunk
>>> to reload the theme and have a themed submenu.
>>>
>>> Will this be fixed in the 2.00 release?
>>>
>>>
>>> _______________________________________________
>>> Grub-devel mailing list
>>> Grub-devel@gnu.org
>>> https://lists.gnu.org/mailman/listinfo/grub-devel
>>>
>
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: The submenu command shows a text-based menu when using a GFX theme.
2012-02-26 2:18 ` Towheed Mohammed
@ 2012-02-26 9:27 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-26 16:20 ` Towheed Mohammed
0 siblings, 1 reply; 12+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2012-02-26 9:27 UTC (permalink / raw)
To: grub-devel
On 26.02.2012 03:18, Towheed Mohammed wrote:
> Also consider this. As in the case of the image component, it's file property allows for a fully qualified filename:
> + image {
> file = "/usr/share/grub/themes/demo/images/gnu.jpg"
This possibility is kept for backward compatibility but shouldn't be
used in new themes and is unreliable. Consider e.g. a case of separate
/boot. Perhaps we should remove this possibility altogether.
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: The submenu command shows a text-based menu when using a GFX theme.
2012-02-26 9:27 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2012-02-26 16:20 ` Towheed Mohammed
2012-02-26 16:50 ` Bruce Dubbs
2012-02-26 17:02 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 2 replies; 12+ messages in thread
From: Towheed Mohammed @ 2012-02-26 16:20 UTC (permalink / raw)
To: The development of GNU GRUB
I have tested this on separate distros, including but not limited to: ArchLinux, Debian (and Debian-based distros), Slackware, Fedora, VectorLinux and openSUSE (some others I can't recall ATM), all with and without separate /boot partitions and all with GRUB 1.99 installed.. Actually, my demo theme is located in /usr/share/grub and not in /boot/grub. As it is, the fully qualified filename works as intended. Placing the themes in /usr/share/grub removes the incompatibility of having a separate /boot partition and also removes any incompatibility from some distro that use /boot/grub2 instead of /boot/grub.
If the unreliability is because of separate /boot partitions and/or other distros using /boot/grub2 instead of /boot/grub then please consider placing themes in /usr/share/grub instead of /boot/grub. This removes the unreliability and ensures the theme will display properly across all distros and all partitioning schemes.
I don't think users should place files in /boot/grub. Files there should only be those necessary for the bootloader to function properly. Although it's a protected directory, it's all to easy for 'inexperienced' users to simply 'su' and delete critical files (unintentionally while working on themes) thus preventing their system from booting.
Please keep this feature and consider placing themes in /usr/share/grub.
Thanks.
Towheed Mohammed
----- Original Message -----
From: Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>
To: grub-devel@gnu.org
Cc:
Sent: Sunday, February 26, 2012 5:27 AM
Subject: Re: The submenu command shows a text-based menu when using a GFX theme.
On 26.02.2012 03:18, Towheed Mohammed wrote:
> Also consider this. As in the case of the image component, it's file property allows for a fully qualified filename:
> + image {
> file = "/usr/share/grub/themes/demo/images/gnu.jpg"
This possibility is kept for backward compatibility but shouldn't be used in new themes and is unreliable. Consider e.g. a case of separate /boot. Perhaps we should remove this possibility altogether.
-- Regards
Vladimir 'φ-coder/phcoder' Serbinenko
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: The submenu command shows a text-based menu when using a GFX theme.
2012-02-26 16:20 ` Towheed Mohammed
@ 2012-02-26 16:50 ` Bruce Dubbs
2012-02-26 17:02 ` Vladimir 'φ-coder/phcoder' Serbinenko
1 sibling, 0 replies; 12+ messages in thread
From: Bruce Dubbs @ 2012-02-26 16:50 UTC (permalink / raw)
To: The development of GNU GRUB
Towheed Mohammed wrote:
> I have tested this on separate distros, including but not limited to:
> ArchLinux, Debian (and Debian-based distros), Slackware, Fedora,
> VectorLinux and openSUSE (some others I can't recall ATM), all with
> and without separate /boot partitions and all with GRUB 1.99
> installed.. Actually, my demo theme is located in /usr/share/grub
> and not in /boot/grub. As it is, the fully qualified filename works
> as intended. Placing the themes in /usr/share/grub removes the
> incompatibility of having a separate /boot partition and also removes
> any incompatibility from some distro that use /boot/grub2 instead of
> /boot/grub.
>
> If the unreliability is because of separate /boot partitions and/or
> other distros using /boot/grub2 instead of /boot/grub then please
> consider placing themes in /usr/share/grub instead of /boot/grub.
> This removes the unreliability and ensures the theme will display
> properly across all distros and all partitioning schemes.
>
> I don't think users should place files in /boot/grub. Files there
> should only be those necessary for the bootloader to function
> properly. Although it's a protected directory, it's all to easy for
> 'inexperienced' users to simply 'su' and delete critical files
> (unintentionally while working on themes) thus preventing their
> system from booting.
>
> Please keep this feature and consider placing themes in
> /usr/share/grub.
This is not a good suggestion. I have several instances of /usr/share
on my system in different root filesystem partitions. Which one would
grub use? All the files for the boot process need to be in a single
partition.
/boot/grub2 is a distro specific issue and distros that use it need to
maintain it.
-- Bruce
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: The submenu command shows a text-based menu when using a GFX theme.
2012-02-26 16:20 ` Towheed Mohammed
2012-02-26 16:50 ` Bruce Dubbs
@ 2012-02-26 17:02 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-26 17:31 ` Towheed Mohammed
1 sibling, 1 reply; 12+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2012-02-26 17:02 UTC (permalink / raw)
To: The development of GNU GRUB
On 26.02.2012 17:20, Towheed Mohammed wrote:
> I have tested this on separate distros, including but not limited to: ArchLinux, Debian (and Debian-based distros), Slackware, Fedora, VectorLinux and openSUSE (some others I can't recall ATM), all with and without separate /boot partitions and all with GRUB 1.99 installed.. Actually, my demo theme is located in /usr/share/grub and not in /boot/grub. As it is, the fully qualified filename works as intended. Placing the themes in /usr/share/grub removes the incompatibility of having a separate /boot partition and also removes any incompatibility from some distro that use /boot/grub2 instead of /boot/grub.
Then think about a separate /usr. theme files are static and have no way
of knowing about adjusted for some reason directories.
Moreover / and /usr may be unavailable to GRUB, e.g. it may be on NFS or
encrypted. We can assume only that the $prefix with subdirectories and
files needed to boot OS (in case of GNU/Linux it's Linux and initrd in
/boot, other OS may have files outside /boot which may assume readable
e.g. /mach_kernel for xnu).
That's the reason I've adjusted grub-install to copy theme and fonts to
$prefix/themes resp $prefix/fonts.
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: The submenu command shows a text-based menu when using a GFX theme.
2012-02-26 17:02 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2012-02-26 17:31 ` Towheed Mohammed
0 siblings, 0 replies; 12+ messages in thread
From: Towheed Mohammed @ 2012-02-26 17:31 UTC (permalink / raw)
To: The development of GNU GRUB
Makes much sense, thanks for the clarification.
Towheed Mohammed
----- Original Message -----
From: Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Cc:
Sent: Sunday, February 26, 2012 1:02 PM
Subject: Re: The submenu command shows a text-based menu when using a GFX theme.
On 26.02.2012 17:20, Towheed Mohammed wrote:
> I have tested this on separate distros, including but not limited to: ArchLinux, Debian (and Debian-based distros), Slackware, Fedora, VectorLinux and openSUSE (some others I can't recall ATM), all with and without separate /boot partitions and all with GRUB 1.99 installed.. Actually, my demo theme is located in /usr/share/grub and not in /boot/grub. As it is, the fully qualified filename works as intended. Placing the themes in /usr/share/grub removes the incompatibility of having a separate /boot partition and also removes any incompatibility from some distro that use /boot/grub2 instead of /boot/grub.
Then think about a separate /usr. theme files are static and have no way of knowing about adjusted for some reason directories.
Moreover / and /usr may be unavailable to GRUB, e.g. it may be on NFS or encrypted. We can assume only that the $prefix with subdirectories and files needed to boot OS (in case of GNU/Linux it's Linux and initrd in /boot, other OS may have files outside /boot which may assume readable e.g. /mach_kernel for xnu).
That's the reason I've adjusted grub-install to copy theme and fonts to $prefix/themes resp $prefix/fonts.
-- Regards
Vladimir 'φ-coder/phcoder' Serbinenko
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2012-02-26 17:31 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-23 1:50 The submenu command shows a text-based menu when using a GFX theme Towheed Mohammed
2012-02-23 5:24 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-24 1:24 ` Towheed Mohammed
2012-02-24 7:44 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-24 22:50 ` Towheed Mohammed
2012-02-24 23:03 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-26 2:18 ` Towheed Mohammed
2012-02-26 9:27 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-26 16:20 ` Towheed Mohammed
2012-02-26 16:50 ` Bruce Dubbs
2012-02-26 17:02 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-26 17:31 ` Towheed Mohammed
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.