Bug 31937 - systemctl kexec not working
Summary: systemctl kexec not working
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Lennart Poettering
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-26 06:10 UTC by Octoploid
Modified: 2010-11-26 07:16 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.