Bug 765277

Summary: Plymouth black boot up screen on system installed/booted from live-cd
Product: [openSUSE] openSUSE 12.2 Reporter: Atri Bhattacharya <badshah400>
Component: BasesystemAssignee: Forgotten User sM9JzehKpy <forgotten_sM9JzehKpy>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: forgotten_sM9JzehKpy, holler
Version: Beta 1   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 12.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Atri Bhattacharya 2012-06-04 10:25:51 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0

Hi!
I was testing out the GNOME/KDE-LiveCD's for the beta 1 version of openSUSE and I don't see the pretty openSUSE graphics that plymouth promised (and which I was seeing on a Net install of milestone 3 + plymouth from factory). It does not appear when directly booting into the LiveCD nor on a system installed from the LiveCD. All I get is a black screen from bootloader (grub2) to login screen. Please note that I edited the relevant bootloader section to use "splash quiet" instead of default "splash=silent" following the discussion here:
http://lists.opensuse.org/opensuse-factory/2012-06/msg00027.html


This is the relevant section of grub2.cfg that is used as the bootloader in Beta 1 (previous to installing beta I was using grub, not grub2, and had success with plymouth; though I have no idea if this could be a reason)

=========================================================================
menuentry 'openSUSE, with Linux 3.4.0-3-desktop' --class opensuse --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(/dev/sda,msdos2)'
	search --no-floppy --fs-uuid --set=root 419a5da6-5e88-4dea-9c73-2d909c51f96a
	echo	'Loading Linux 3.4.0-3-desktop ...'
	linux	/boot/vmlinuz-3.4.0-3-desktop root=UUID=419a5da6-5e88-4dea-9c73-2d909c51f96a   resume=/dev/disk/by-id/ata-VBOX_HARDDISK_VBfc2eaec0-a8d78e79-part1 splash quiet showopts vga=0x317
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd-3.4.0-3-desktop
}
=========================================================================

I did the testing on both an Intel system and a virtualbox vm and saw the same result.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Comment 1 Atri Bhattacharya 2012-06-04 10:30:01 UTC
Could it be just a LiveCD issue related to
http://lists.opensuse.org/opensuse-factory/2012-05/msg00566.html ?
Comment 2 Forgotten User sM9JzehKpy 2012-06-04 10:44:32 UTC
Hi Atri,

You could be right as that the LiveCD's are build differently. But how did you edit the grub2 entry on a LiveCD ?  Or did you install the CD onto your harddisk ? 

Please be aware that the vga= parameter is no longer supported with kernels 3.4+ and has been replaced by video=1280x800 (or the resolution that you want). 

If you installed the LiveCD onto a harddisk, then please regenerate the initrd as this should resolve the issue that was described by Stephan.
Comment 3 Atri Bhattacharya 2012-06-04 10:59:24 UTC
Thanks Raymond for the quick response!

I installed the LiveCD onto a virtualbox vm and then edited the grub2.cfg there (on same vm, pre-beta versions used to show a nice boot up screen with the geeko and bubbles, etc.) Following your suggestions, I now ran "mkinitrd" and booted with video=1280x800, but I still get only the black screen from bootloader to gdm. For ref, here are the packages I have installed on my system:-

S | Name                       | Type    | Version   | Arch   | Repository       
--+----------------------------+---------+-----------+--------+------------------
i | plymouth                   | package | 0.8.4-9.1 | x86_64 | factory-oss      
i | plymouth-branding-openSUSE | package | 0.8.4-9.1 | noarch | factory-oss      
i | plymouth-plugin-label      | package | 0.8.4-9.1 | x86_64 | factory-oss      
i | plymouth-plugin-script     | package | 0.8.4-9.1 | x86_64 | factory-oss      
i | plymouth-scripts           | package | 0.8.4-9.1 | noarch | factory-oss      
i | systemd-plymouth           | package | 44-7.1    | x86_64 | factory-oss      
i | systemd-plymouth           | package | 44-7.1    | x86_64 | openSUSE-12.2-Oss
Comment 4 Hans-Peter Holler 2012-06-04 18:10:05 UTC
plymouth-branding-openSUSE installs /etc/plymouth/plymouthd.conf with this hard coded content:
# Administrator customizations go in this file
#[Daemon]
#Theme=fade-in
[Daemon]
Theme=fade-in

Change "Theme=fade-in" to "Theme=openSUSE"

and you will get geeko, bubbles and so on.

Seems that at least plymouth-theme-solar changes /etc/plymouth/plymouthd.conf (didn't try the other themes).

rpm -q plymouth-branding-openSUSE -changelog gives:
* Wed May 30 2012 vuntz@opensuse.org
- Add plymouth-scripts Requires(post) to branding-openSUSE
  subpackage, to make sure that the %post scriptlet will work.
- Make sure we export LIB and not lib in the %postun scriptlets of
  theme-solar and branding-openSUSE subpackages.

* Tue May 29 2012 tittiatcoke@gmail.com
- Ensure that label.so is being installed for the openSUSE branding
  (bnc#763574)
...
Comment 5 Atri Bhattacharya 2012-06-04 18:25:09 UTC
Hi Hans!
Thanks for your suggestion. Just tried that, but it does not solve the problem of the black screen appearing for almost entire duration of boot-up (from choosing openSUSE in bootloader to gdm). In fact, even without this change, I do see the correct plymouth branding appear for about a second immediately after the bootlader screen, and then it disappears completely leaving just the black screen for the rest of the boot up duration.
Comment 6 Hans-Peter Holler 2012-06-04 18:52:39 UTC
Running mkinitrd within your running system (make sure there's no "label.so not found" message) and rebooting may bring you a step further.
And see
http://lists.opensuse.org/opensuse-factory/2012-06/msg00083.html
http://lists.opensuse.org/opensuse-factory/2012-06/msg00084.html

Didn't try Bruno's "plymouth-set-default openSUSE && mkinitrd" (and reboot) but that seems to get you into the same positive result.
Comment 7 Hans-Peter Holler 2012-06-04 18:58:37 UTC
s/plymouth-set-default/plymouth-set-default-theme
Comment 8 Atri Bhattacharya 2012-06-04 19:10:51 UTC
Thank you Hans!
That did it! Now I see the plymouth openSUSE branding alright. There is still the issue of the black screen lingering for about 2 seconds as plymouth ends and gdm takes over, but I understand that is being tackled separately. This bug is "Resolved: Fixed" for me if it is okay with Raymond.

Thanks for all the help everyone.
Comment 9 Forgotten User sM9JzehKpy 2012-06-04 19:20:01 UTC
I am fine to close this bug and I am happy to hear that things got resolved. 

I am currently changing the Plymouth package to have the right defaults in place, so that with Beta 2 things would work better. 

Thanks for reporting. 

Raymond