Bug 56842

Summary: Rebooting using kexec does a normal reboot
Product: systemd Reporter: Jan <medhefgo>
Component: generalAssignee: systemd-bugs
Status: RESOLVED INVALID QA Contact: systemd-bugs
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

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.