[Bug 757683] New: GRUB2 Does Not Display Menu Graphics
https://bugzilla.novell.com/show_bug.cgi?id=757683 https://bugzilla.novell.com/show_bug.cgi?id=757683#c0 Summary: GRUB2 Does Not Display Menu Graphics Classification: openSUSE Product: openSUSE 12.2 Version: Milestone 3 Platform: PC OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Bootloader AssignedTo: jsrain@suse.com ReportedBy: malv_star@hotmail.com QAContact: jsrain@suse.com Found By: --- Blocker: --- Created an attachment (id=486576) --> (http://bugzilla.novell.com/attachment.cgi?id=486576) Screen shot of GRUB2 text-only menu User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20100101 Firefox/11.0 When installing openSUSE 12.2 Milestone 3 and using GRUB2 as the boot loader, the normal graphical menu as seen at boot in previous versions of openSUSE is not displayed. Instead, a text-only menu is presented to the user. Reproducible: Always Steps to Reproduce: 1. Start the installion of openSUSE 12.2 Milestone 3 2. Select GRUB2 as the boot loader (this is the default option) 3. Choose to install GRUB2 to the Master Boot Record instead of the root partition. 4. Start the installation and wait for the system to reboot. Actual Results: A text-only menu is displayed on boot. Expected Results: A graphical menu is displayed on boot. Note that GRUB2 was installed to the MBR *only*, instead of the default "root partition". I am unsure if this makes any difference however. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c
Jiri Srain
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c1
--- Comment #1 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c2
--- Comment #2 from Malvern Star
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c3
Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c4
--- Comment #4 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c5
--- Comment #5 from Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c6
--- Comment #6 from Michael Chang
Michael just 2 technical points is grub2 able to handle jpeg ? and did it automatically resize/crop/extend a fixed image, or should we provide the exact screen size ?
It can handle jpeg. However I met some jpeg not displayed (no idea why ..) and png seems no problem so far. The image will be resized to fit the entire screen thus their aspect ratio is lost. Oh , I forget the 5 pixel border, but it can be removed easily .. Also I'm not sure when background is bigger than the resolution, I suppose it would not be cropped, and should shrink and fill the entire screen. I think we don't need the exact screen sized images, just images per different aspect ratios (16:9, 4:3 .. ) and would be easier to go? Thanks.
Thanks for your help
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c7
--- Comment #7 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c8
--- Comment #8 from Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c9
--- Comment #9 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c10
--- Comment #10 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c11
--- Comment #11 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c12
Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c13
--- Comment #13 from Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c14
--- Comment #14 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c15
--- Comment #15 from Michael Chang
In the meantime, I'm in a hurry at work and don't want to block you, the time I create a grub2-branding package
Take your time and no need to hurry. :)
I've prepared in the attached tar.gz my idea how it should work having default ratio png and a bunch of links for them with the corresponding video size. I believe this is less disturbing for end-users
Yeah .. good for end-users if they want picking background on their own.
ps : did you think to use video= on the boot line in place of old vga= the new kernel 3.4 now shout a deprecate warning if you use vga=
Thanks to point out this. I didn't know the news and will have to take a look on it. I think we should make a switch since we're warned. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c16
--- Comment #16 from Malvern Star
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c17
Atri Bhattacharya
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c18
Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c19
Michael Chang
Michael any news ?
I see gfxterm patches merged to yast2's GitHub project (they moved to GitHub a couple of days ago) several days ago. In general it would take some time to sync new version package to obs but I can't tell how long. CC Steffen here as he helps to push new updates from git to obs. Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c20
--- Comment #20 from Atri Bhattacharya
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c21
--- Comment #21 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c22
--- Comment #22 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c23
--- Comment #23 from Michael Chang
Michael and Bruno, if there is anything I can do to help please let me know. I could help making the branding package, for example, with some help from you ;)
You could check factory and see how it work .. and I'm also testing and double check now. run yast2 bootloader and in loader's option dialog there offers some settings about that. To test the installation you probably need to use dud, I could help to offer that if you want.
It would hurt badly to ship openSUSE 12.2 with this text version of grub2 as far as I see.
Yes. We definitely don't want this to happen. :) Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c24
--- Comment #24 from Michael Chang
And make your grub2 config (/etc/default/grub:GRUB_THEME) point to /../grub/themes/starfield
Wrong. Should be /../grub/themes/starfield/theme.txt -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c25
--- Comment #25 from Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c26
--- Comment #26 from Atri Bhattacharya
We have a workshop here next week and I could put together a grub2 theme and packages for factory during that if you want.
Thanks Steffen! That would be a big help indeed! Fwiw, I think the simplest way to implementing the theme would be to take the route Fedora did [1], which was simply to modify the default starfield theme. For example, see commits [2] and [3]. Hope that helps. [1] http://pkgs.fedoraproject.org/gitweb/?p=grub2.git;a=tree [2] http://pkgs.fedoraproject.org/gitweb/?p=grub2.git;a=commitdiff;h=4b7e06e90f6... [3] http://pkgs.fedoraproject.org/gitweb/?p=grub2.git;a=commitdiff;h=171aabb89d2... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c27
--- Comment #27 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c28
--- Comment #28 from Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c29
--- Comment #29 from Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c30
--- Comment #30 from Michael Chang
You could check factory and see how it work .. and I'm also testing and double check now.
When I post the message the yast2 bootloader building in factory was broken .. I see someone fixed limal building fail for new gcc and is my hero, hope that yast2 bootloader could finish it's build job as it was previously blocked by it. :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c31
--- Comment #31 from Michael Chang
BTW, I'll be on vacation for the rest of the week. But I'll register this as a workshop project and start working on Monday.
Thanks. Feel free to ping me if you need any support :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c32
--- Comment #32 from Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c33
--- Comment #33 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c34
--- Comment #34 from Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c35
--- Comment #35 from Michael Chang
After looking at it the way to go is using a theme for gfxmenu, not just a background image. Otherwise it just looks dead ugly (IMHO). The changes required a quite minimal. Or rather, nothing needs to be changed as you can point to a non-existing theme file and grub-mkconfig works just fine.
I agree with you. We could add theme support on yast and perl bootloader. It's safe and wouldn't break anything if required themes are missing. Then the ball passed to art work and the branding package .. (maybe we refer to comment#26(thanks Atri) based on starfield and replace the images with openSUSE ..)
The grub2 branding package could even have both background images and theme files as typically the theme will have some background image as well.
Agree and I think my plan is like yours ..
My suggestion would be to rename the branding package to simply grub2-branding-openSUSE which has background images in
/boot/grub2/backgrounds/openSUSE/
and a theme in
/boot/grub2/themes/openSUSE/
This way you can install several themes in parallel.
This is good idea.
Also, the package would need a post-install script that adds/modifies these two entries to /etc/default/grub:
GRUB_BACKGROUND=/boot/grub2/backgrounds/openSUSE/1024x768.png GRUB_THEME=/boot/grub2/themes/openSUSE/theme.txt
and has to run grub2-mkconfig to update the config file and activate the theme.
There are a few problems with this, though:
a) using symlinks to link common image resolutions is probably not a good idea as UEFI requires vfat for the boot partition which does not support symlinks
Good catch .. well I'm sorry about not perceive the issue ahead.
b) grub2-mkconfig might be a bit overkill for a post-script in our branding packages
I would like to avoid it as well and the idea is config entries should be modified by yast when possible. This is why in propose() a presumed background (/boot/grub2/backgrounds/default-<resolution>.png) is used in looking up them. However the shortage is not reliable when branding packages changes their images file's location. :( I am not much oppose to call grub2-mkconfig in branding package if maintainer thinks it's fine.
c) yast2 currently writes /boot/grub2/backgrounds/default-<resolution>.png into the grub2 config which is theme independent; as we can't simply use symlinks for a 'default' theme due to a) yast2 has to know the active branding name (maybe looking at /etc/default/grub)
I suppose we could fix by renaming to sth like "/boot/grub2/backgrounds/openSUSE/<resolution>.png" ?
Independent of the above our grub2 setup references a font file in /usr/share/grub2 which should better be in /boot/grub2 somewhere.
My first thought is to look at grub2-install to copy those font files together with *.mod and modify the grub.d/ scripts to search font files in new locations. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c36
--- Comment #36 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c37
--- Comment #37 from Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c38
--- Comment #38 from Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c39
--- Comment #39 from Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c40
--- Comment #40 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c41
--- Comment #41 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c42
--- Comment #42 from Michael Chang
1. use "auto" for the GFXMODE, afaik before 2.0 the 'auto' has some problem and the default is '640x480' which leads to poor graphic quality.
It's upstream rev 3386 FYI.
committer: Colin Watson
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c43
--- Comment #43 from Atri Bhattacharya
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c44
--- Comment #44 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c45
Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c46
--- Comment #46 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c47
--- Comment #47 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c48
Richard Brown
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c49
--- Comment #49 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c50
--- Comment #50 from Malvern Star
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c51
--- Comment #51 from Richard Brown
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c52
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c53
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c54
--- Comment #54 from Malvern Star
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c55
andreas bittner
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c56
--- Comment #56 from Malvern Star
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c57
--- Comment #57 from andreas bittner
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c58
--- Comment #58 from Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c59
--- Comment #59 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c60
--- Comment #60 from Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=757683
https://bugzilla.novell.com/show_bug.cgi?id=757683#c61
Michael Chang
participants (1)
-
bugzilla_noreply@novell.com