Summary: | fbsplash doesn't switch to verbose mode in initramfs | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | loux thefuture <loux.thefuture> |
Component: | [OLD] Core system | Assignee: | Gentoo Genkernel Maintainers <genkernel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | baloghsz, daltonmatos, june, phobosk, sping |
Priority: | High | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Patch to add auto-verbose swap mode to initrd.scripts
Additional splash calls added to chooseKeymap Added the SPLASH and SPLASH_THEME options with explanations. |
Description
loux thefuture
2009-05-03 16:40:24 UTC
additionnals informations : kernel config : ... CONFIG_INITRAMFS_SOURCE="/usr/share/v86d/initramfs" ... CONFIG_FB_BOOT_VESA_SUPPORT=y ... CONFIG_FB_UVESA=y CONFIG_FB_VESA=y CONFIG_FB_EFI=y ... I do not use fbsplash myself. Please submit a patch for this. Hello, i don't know where the trouble is. I'm not an fbsplash expert :( But with : - gentoo-sources-2.6.29-r2 - genkernel-3.4.10.904 - grub + option dokeymap then : the linuxrc scripts display correctly the message and wait for the input, the only trouble is I need to switch manualy to verbose mode with Alt-f1 to see that otherwise the process wait 30s in quiet and go on the boot process Hi, i got something wrong about /dev/fbcon_decor missing in initramfs, mdev is not creating it so splash 'verbose' can not "talk" to fbcon i guess Could you please reinstall splashutils, update to gentoo-sources-2.6.29-r3, and try again with these? Hi, i update to gentoo-sources-2.6.29-r4, re-emerge splashutils and then genkernel the kernel/initramfs but i got the same trouble : ... Failed to open the fbcon_decor control device ... The text asking to choose a keymap is display but the fbsplash doesn't switch from quiet to verbose, so we don't see it and we can not answer, then the timeout comes and the boot process go on (In reply to comment #0) > Actual Results: > splash quiet progression without asking keymap ! I have a similar problem but with LUKS: my entire hard drive is encrypted but the initramfs doesn't switch to verbose mode and back to silent to ask for my password. Should I open a new bug? Are you sure you have "Enable Tile Blitting Support" (FB_TILEBLITTING) disabled? (In reply to comment #0) > building an kernel/initramfs with : > - gentoo-sources-2.6.29-r2 > - genkernel-3.4.10.903 > and grub command line : > ... video=uvesafb:1024x768-32,mtrr:3,ywrap splash=silent,theme:natural_gentoo > console=tty1 quiet dokeymap > > Reproducible: Always > > Steps to Reproduce: > 1.emerge gentoo-sources-2.6.29-r2 > 2.emerge genkernel-3.4.10.903 > 3.genkernel --splash=natural_gentoo --postclear --unionfs --luks --disklabel > --do-keymap-auto all > > Actual Results: > splash quiet progression without asking keymap ! > > Expected Results: > splash switch to verbose to display the list of keymap and then read the answer > Hi, yes i have disable FB_TILEBLITTING and got the same trouble. Everyone can do the same steps to see this, just compile the kernel/initramfs with genkernel (and a splash theme) and klibc/v86d/uvesafb then try to see if fb switch when asking for keymap ! see you Loux (In reply to comment #8) > Are you sure you have "Enable Tile Blitting Support" (FB_TILEBLITTING) > disabled? > > (In reply to comment #0) > > building an kernel/initramfs with : > > - gentoo-sources-2.6.29-r2 > > - genkernel-3.4.10.903 > > and grub command line : > > ... video=uvesafb:1024x768-32,mtrr:3,ywrap splash=silent,theme:natural_gentoo > > console=tty1 quiet dokeymap > > > > Reproducible: Always > > > > Steps to Reproduce: > > 1.emerge gentoo-sources-2.6.29-r2 > > 2.emerge genkernel-3.4.10.903 > > 3.genkernel --splash=natural_gentoo --postclear --unionfs --luks --disklabel > > --do-keymap-auto all > > > > Actual Results: > > splash quiet progression without asking keymap ! > > > > Expected Results: > > splash switch to verbose to display the list of keymap and then read the answer > > > I've come up with a simple patch to the /usr/share/genkernel/defaults/initrd.scripts file to deal with the "failure to swap to verbose mode for LUKS password prompt" part of the issue. Simply put, it just adds a few lines to swap between silent and verbose splash mode in the crypt_filter function. I imagine it's just as simple a change for the keymap prompt as well. I'll see if I can come up with a quick patch to address that, too. I'm running genkernel 3.4.10.907. Created attachment 220377 [details, diff]
Patch to add auto-verbose swap mode to initrd.scripts
Patch against 3.4.10.907 genkernel.
Created attachment 220379 [details, diff]
Additional splash calls added to chooseKeymap
This is a patch against initrd.scripts chooseKeymap function to add in auto-verbose switching for splashutils (like the earlier patch to crypt_filter).
I've applied both of these patches in git. Thanks! Commit included in release 3.4.10.908, closing. Should be noted that all this to work a: --splash or --splash=THEME_NAME is needed to be added to the genkernel command line. I think there should be an option in the /etc/genkernel.conf file too for that (now only SPLASH option is available in the config file, but no SPLASH_THEME or SPLASH_RES). And it is a bit confusing if someone uses 'splash_geninitramfs' with the add option (-a), because it does not add the /usr/share/splashutils/initrd.splash to the img and thus making changing to verbose mode when requiring a password impossible ('cause the splash() just returns 0)... Probably a fix to the 'splash_geninitramfs' is needed too?... (In reply to comment #15) > Should be noted that all this to work a: > --splash or --splash=THEME_NAME is needed to be added to the genkernel command > line. > > I think there should be an option in the /etc/genkernel.conf file too for that > (now only SPLASH option is available in the config file, but no SPLASH_THEME or > SPLASH_RES). Agreed. Please open a new bug for that. Please attach a patch to it if you can. > And it is a bit confusing if someone uses 'splash_geninitramfs' with the add > option (-a), because it does not add the /usr/share/splashutils/initrd.splash > to the img and thus making changing to verbose mode when requiring a password > impossible ('cause the splash() just returns 0)... > Probably a fix to the 'splash_geninitramfs' is needed too?... This sounds like a distinct issue, too. If it is, please open a distinct bug report. Also, please add more information if possible. With more information I may be able to fix it, despite little prior background with this. Created attachment 261851 [details, diff] Added the SPLASH and SPLASH_THEME options with explanations. (In reply to comment #16) > (In reply to comment #15) > > Should be noted that all this to work a: > > --splash or --splash=THEME_NAME is needed to be added to the genkernel command > > line. > > > > I think there should be an option in the /etc/genkernel.conf file too for that > > (now only SPLASH option is available in the config file, but no SPLASH_THEME or > > SPLASH_RES). > > Agreed. Please open a new bug for that. Please attach a patch to it if you > can. I do not think a new bug should be opened 'cause this is a kinda "sub-bug" of this one. What i mean is that if --splash (or SPLASH="yes" in the config file) is not enabled when using genkernel, fbsplash will not go to verbose.... Actually SPLASH_THEME works in the config file but only if SPLASH="yes". So i just attach a patch for the genkernel.conf with the needed options and explanations... (In reply to comment #16) > (In reply to comment #15) > > And it is a bit confusing if someone uses 'splash_geninitramfs' with the add > > option (-a), because it does not add the /usr/share/splashutils/initrd.splash > > to the img and thus making changing to verbose mode when requiring a password > > impossible ('cause the splash() just returns 0)... > > Probably a fix to the 'splash_geninitramfs' is needed too?... > > This sounds like a distinct issue, too. If it is, please open a distinct bug > report. Also, please add more information if possible. With more information > I may be able to fix it, despite little prior background with this. > I opened a bug report and attached the fixed ebuild + the patch it uses... See bug #354157 (In reply to comment #17) > Created an attachment (id=261851) [details] > Added the SPLASH and SPLASH_THEME options with explanations. Thanks, applied and pushed. http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commitdiff;h=107049cad2ad3ebbd4b60556e3bbe85b16b1c13c |