[Bug 671673] New: systemd: kexec reboots instead of kexecing
https://bugzilla.novell.com/show_bug.cgi?id=671673 https://bugzilla.novell.com/show_bug.cgi?id=671673#c0 Summary: systemd: kexec reboots instead of kexecing Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jslaby@novell.com QAContact: qa@suse.de CC: kasievers@novell.com Found By: --- Blocker: --- After I switched to systemd, if I try to kexec a new kernel, the system reboots instead of kexec. With sysvinit it works as expected. I run: kexec /boot/vmlinuz --initrd=/boot/initrd --append='3 console=ttyS0,115200' -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=671673
https://bugzilla.novell.com/show_bug.cgi?id=671673#c1
--- Comment #1 from Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=671673
https://bugzilla.novell.com/show_bug.cgi?id=671673#c2
--- Comment #2 from Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=671673
https://bugzilla.novell.com/show_bug.cgi?id=671673#c3
--- Comment #3 from Jiri Slaby
systemd has native kexec support. does: systemd kexec work?
Hmm, no. How the parameters are supposed to be passed: # systemctl kexec /boot/vmlinuz --initrd abc systemctl: unrecognized option '--initrd' -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=671673
https://bugzilla.novell.com/show_bug.cgi?id=671673#c
wei wang
https://bugzilla.novell.com/show_bug.cgi?id=671673
https://bugzilla.novell.com/show_bug.cgi?id=671673#c4
--- Comment #4 from Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=671673
https://bugzilla.novell.com/show_bug.cgi?id=671673#c5
--- Comment #5 from Jiri Slaby
"kexec -l ..." loads the kernel and the parameters "kexec -e" boots the kernel
with native systemd, the "kexec -e" step should be "systemctl kexec"
There is a third functionality of kexec. Without loading you do: kexec /boot/vmlinuz --initrd=/boot/initrd --command-line='...' and it does all the needed steps including services shutdown. And that one doesn't work with systemd. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=671673
https://bugzilla.novell.com/show_bug.cgi?id=671673#c6
--- Comment #6 from Jiri Slaby
https://bugzilla.novell.com/show_bug.cgi?id=671673
https://bugzilla.novell.com/show_bug.cgi?id=671673#c7
--- Comment #7 from Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=671673
https://bugzilla.novell.com/show_bug.cgi?id=671673#c8
Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=671673
https://bugzilla.novell.com/show_bug.cgi?id=671673#c9
Jiri Slaby
Added code to the systemctl sysv compat support:
http://cgit.freedesktop.org/systemd/commit/?id=5622dde36deb414ab372a2d767584...
The commit is part of systemd 19. But it still doesn't work with factory (systemd 33). It just reboots... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=671673
https://bugzilla.novell.com/show_bug.cgi?id=671673#c10
--- Comment #10 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=671673
https://bugzilla.novell.com/show_bug.cgi?id=671673#c11
--- Comment #11 from Jiri Slaby
hmm, I just ran "kexec /boot/vmlinuz --initrd=/boot/initrd --command-line='3'" under a Factory system running with systemd and system shutdowned, ran kexec on the kernel and booted correctly.
Could you give me a complete test case ?
Hmm, this is interesting. I don't know what exactly I should provide. When I boot with sysvinit and do the command you do, it works. With systemd it shutdowns the system and reboots. It is an updated factory with the -next kernel. But I also tried 3.0 and 2.6.37 from kernel:11.4 and kernel:stable respectively with the same result. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=671673
https://bugzilla.novell.com/show_bug.cgi?id=671673#c12
--- Comment #12 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=671673
https://bugzilla.novell.com/show_bug.cgi?id=671673#c13
--- Comment #13 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=671673
https://bugzilla.novell.com/show_bug.cgi?id=671673#c14
--- Comment #14 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=671673
https://bugzilla.novell.com/show_bug.cgi?id=671673#c15
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=671673
https://bugzilla.novell.com/show_bug.cgi?id=671673#c16
--- Comment #16 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com