Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 289196

Summary: sys-apps/kexec-tools: /etc/init.d/kexec problem while determining valid initrd image
Product: Gentoo Linux Reporter: Greg Dziegielewski <jabbas>
Component: [OLD] Core systemAssignee: Gentoo Kernel Miscellaneous <kernel-misc>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch that fixes the problem

Description Greg Dziegielewski 2009-10-15 12:09:14 UTC
/etc/init.d/kexec/ do not check for custom initrd in the ${BOOTPART}

Reproducible: Always

Steps to Reproduce:
1. rename initrd file to some non standard name (e.g.: "initramfs" - the default name of initrd from genkernel
2. check the ${initrdopt} in load_image() function while /etc/init.d/kexec start


Actual Results:  
${initrdopt} is empty.

Expected Results:  
${initrdopt} should contain "--initrd=/boot/initramfs"
Comment 1 Greg Dziegielewski 2009-10-15 12:13:09 UTC
Created attachment 207202 [details, diff]
patch that fixes the problem
Comment 2 Greg Dziegielewski 2009-10-15 12:15:34 UTC
(In reply to comment #0)
> /etc/init.d/kexec/ do not check for custom initrd in the ${BOOTPART}
Uhm.. of course i meant: /etc/init.d/kexec
Comment 3 Wormo (RETIRED) gentoo-dev 2009-10-21 06:53:39 UTC
Thanks for posting your fix, assigning to maintainers.
Comment 4 Tim Harder gentoo-dev 2010-11-29 20:37:11 UTC
Closing as worksforme since the current init script should work fine.

You should set INITRD="/boot/initramfs-file-name" instead of INITRD="initramfs-file-name" in /etc/conf.d/kexec.