Bug 31937

Summary: systemctl kexec not working
Product: systemd Reporter: Octoploid <cryptooctoploid>
Component: generalAssignee: Lennart Poettering <lennart>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Octoploid 2010-11-26 06:10:26 UTC
I load my kernel into kexec with:
kexec -l "/usr/src/linux/arch/x86/boot/bzImage" --append "root=/dev/sdb2 init=/bin/systemd fbcon=rotate:3 drm_kms_helper.poll=0 quiet"

when I then run: systemctl kexec
my system gets rebooted normally and kexec is not called apparently.
Comment 1 Octoploid 2010-11-26 07:16:41 UTC
kexec is hardcoded to /sbin/kexec in src/shutdown.c:352.
On my system (gentoo) kexec lives in /usr/sbin
I changed line 352 to:
const char *args[3] = { "/usr/sbin/kexec", "-e", NULL };
and everything runs fine...

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.