Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64864 - genkernel does not increase default ramdisk_size if initrd is larger than 4096k
Summary: genkernel does not increase default ramdisk_size if initrd is larger than 4096k
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-09-21 08:23 UTC by Target
Modified: 2004-11-30 11:40 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Target 2004-09-21 08:23:43 UTC
If genkernel produces an initrd of greater than 4096 (default ramdisk size), booting will fail with end-of-device read errors. Genkernel apparently does not increase ramdisk size or provide a warning. This is less a problem for HD installs that do not require an initrd, but it's a show-stopper for a livecd.

Reproducible: Always
Steps to Reproduce:
1. Use a configuration that results in an initrd > 4mb
2. Boot using the initrd, preferrably by making and using a livecd.
Actual Results:  
Several errors about reading beyond the end of the device, and then a kernel
panic due to init termination.

Expected Results:  
If the initrd will not fit within the default ramdisk size, genkernel should
probably increase default ramdisk size in the kernel config or automatically
pass a kernel parameter in the loader to increase ramdisk size on boot.
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2004-09-21 11:11:59 UTC
What genkernel version?

%> grep 4096 /usr/share/genkernel/genkernel
[ "${INITRD_SIZE}" -ge 4096 ] && print_info 1 "    ramdisk=8192"
Comment 2 Target 2004-09-21 11:41:25 UTC
This is with 3.0.2g
The line to increase ramdisk size does not appear to be functioning, as the resultant kernel still has a 4096k default ramdisk size.
Comment 3 Target 2004-09-21 11:45:52 UTC
I just double-checked with genkernel and the kernel boot parameters, and I think that may be the problem right there.

"ramdisk=8192" should read "ramdisk_size=8192". The former being, I believe, an invalid parameter.
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2004-09-21 12:16:37 UTC
Hrm, what kernel version?
Comment 5 Target 2004-09-21 12:44:57 UTC
2.4.27-hardened-r2
Comment 6 Tim Yamin (RETIRED) gentoo-dev 2004-11-30 11:40:49 UTC
Ok, fix in genkernel-3.0.2c, should reach rsync shortly. Please reopen this bug if you have any problems. Thanks!