Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489864 - sys-apps/kexec-tools-2.0.4-r2: initramfs generated by genkernel not loaded by init script
Summary: sys-apps/kexec-tools-2.0.4-r2: initramfs generated by genkernel not loaded by...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-30 11:34 UTC by Arthur D.
Modified: 2017-01-08 00:33 UTC (History)
0 users

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


Attachments
emerge --info (emerge-info.txt,15.42 KB, text/plain)
2013-10-30 11:34 UTC, Arthur D.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arthur D. 2013-10-30 11:34:14 UTC
My machine architecture is i686 (output by "uname -m")

Genkernel generated image is:
/boot/initramfs-genkernel-x86-3.10.7-gentoo-r1

Kexec init script tries to find initramfs-genkernel-i686-3.10.7-gentoo-r1 and not initramfs-genkernel-x86-3.10.7-gentoo-r1 (look at arch part of filename).

As the result initramfs is not loaded into memory and the system is not bootable, because the root filesystem is located on software RAID device.

Reproducible: Always

Steps to Reproduce:
1. uname -m
i686
2. genkernel --no-ramdisk-modules ramdisk
3. /etc/init.d/kexec start
4. reboot
Actual Results:  
Kernel dump on the screen. The user is forced to reset the machine to boot it.

Expected Results:  
Kernel ramdisk loaded and successfull boot
Comment 1 Arthur D. 2013-10-30 11:34:39 UTC
Created attachment 362288 [details]
emerge --info
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2017-01-02 23:29:41 UTC
User error here: You disabled ramdisk modules, and didn't compile RAID into your kernel.
Comment 3 Arthur D. 2017-01-03 11:13:52 UTC
My ramdisk modules are OK, kernel boots fine with grub.
That is kexec script what failed to load ramdisk into memory.
It's because ramdisk filename hardcoded to kexec init script is wrong.
I stated it in my initial bugreport.
Genkernel and kexec use different schemas for naming ramdisk image - that's the point of my bugreport.
Comment 4 Arthur D. 2017-01-03 11:15:24 UTC
To resolve the bug kexec init script should we rewritten to respect genkernel generated ramdisks names.
Comment 5 Arthur D. 2017-01-03 11:17:42 UTC
or vice versa
Comment 6 Arthur D. 2017-01-03 11:35:45 UTC
I you didn't get the point it's here: "x86" <-> "i686"
This part of the ramdisk image differs for me.
So genkernel generated filename was initramfs-genkernel-x86-3.10.7-gentoo-r1
And kexec tried to use this name    initramfs-genkernel-i686-3.10.7-gentoo-r1
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2017-01-08 00:33:03 UTC
[master 932b155bb6] sys-apps/kexec-tools: support more kernel names.
 Date: Sat Jan 7 16:31:46 2017 -0800
 3 files changed, 265 insertions(+), 1 deletion(-)
 mode change 100755 => 100644 sys-apps/kexec-tools/files/kexec.init-2.0.12
 create mode 100644 sys-apps/kexec-tools/files/kexec.init-2.0.13-r1
 create mode 100644 sys-apps/kexec-tools/kexec-tools-2.0.13-r1.ebuild