Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 291925 - Genkernel doesn't add tuxoniceui_text or _fbsplash to initrd image
Summary: Genkernel doesn't add tuxoniceui_text or _fbsplash to initrd image
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-04 22:17 UTC by Clemmitt M. Sigler
Modified: 2020-01-02 01:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Simple BASH script to patch up genkernel's initrd under TuxOnIce CONFIG_TOI_USERUI=y. (tuxoniceui_initramfs_modify.sh,1.05 KB, text/plain)
2009-11-04 22:22 UTC, Clemmitt M. Sigler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Clemmitt M. Sigler 2009-11-04 22:17:18 UTC
When compiling a TuxOnIce kernel for Gentoo with genkernel, if it's built with CONFIG_TOI_USERUI=y and (e.g.) CONFIG_TOI_USERUI_DEFAULT_PATH="/sbin/tuxoniceui_text", this userui program doesn't get built into the initrd image (named, e.g., initramfs-genkernel-x86-2.6.XX-tuxonice-rX).  This will cause resuming from suspend-to-disk/hibernate to fail every time until this program is added to the initrd image.

Also, if using tuxoniceui_fbsplash, a sym link from tuxonice to default under /etc/splash in the initrd is needed, and this isn't created, either.

I'm not sure if it's asking too much of genkernel to detect and correct for all of these conditions or not.  I'll attach next a simple BASH script to patch up the initrd image created by genkernel for use under these conditions.  This script WFM.  YMMV and all the standard disclaimers.  If it breaks your system, it's not my fault, it's yours.  You've been warned.

HTH.

Clemmitt


Reproducible: Always

Steps to Reproduce:
1. Build tuxonice kernel with genkernel, with CONFIG_TOI_USERUI=y and CONFIG_TOI_USERUI_DEFAULT_PATH set.
2. Hibernate to disk.
3. Resume from hibernation.  Resume complains that program tuxoniceui_text can't be found.
Comment 1 Clemmitt M. Sigler 2009-11-04 22:22:38 UTC
Created attachment 209283 [details]
Simple BASH script to patch up genkernel's initrd under TuxOnIce CONFIG_TOI_USERUI=y.

Simple BASH script to patch up initrd produced by genkernel to work with TuxOnIce when CONFIG_TOI_USERUI=y in the kernel build.  You should correspondingly set   CONFIG_TOI_USERUI_DEFAULT_PATH="/sbin/tuxoniceui_text" to get this to work.  HTH.
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2020-01-02 01:07:47 UTC
Shouldn't be needed anymore.