Bug 56842 - Rebooting using kexec does a normal reboot
Summary: Rebooting using kexec does a normal reboot
Status: RESOLVED INVALID
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-07 15:11 UTC by Jan
Modified: 2012-11-08 10:50 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Jan 2012-11-07 15:11:06 UTC
Rebooting using "systemctl kexec" does a normal reboot. The kernel+initramfs have been loaded with "kexec --load --reuse-cmdline --initrd=/boot/initramfs-linux.img /boot/vmlinuz-linux" on my Arch installation prior to issuing systemctl. When I manually "kexec -e" in emergency.target kexec works.
Comment 1 Kay Sievers 2012-11-07 15:21:12 UTC
What does:
  $ cat /sys/kernel/kexec_loaded
show, before kexec is called?
Comment 2 Jan 2012-11-07 16:32:58 UTC
$ cat /sys/kernel/kexec_loaded
0
$ kexec --load --reuse-cmdline --initrd=/boot/initramfs-linux.img /boot/vmlinuz-linux 
$ cat /sys/kernel/kexec_loaded
1
$ which kexec
/sbin/kexec
Comment 3 Jan 2012-11-08 10:50:03 UTC
I did some digging and found out that systemd's kexec implementation works. It just wasn't executed because of /run/initramfs/shutdown logic. Interestingly enough, it contains kexec logic but not the kexec executable itself. I'm reporting it at arch now.


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.