[systemd-devel] Why does reboot invoke kexec command?

2021-01-27 Thread Baoquan He
Hi, >From systemd code, if kexec kernel is loaded, executing 'reboot' will finally enter into reboot system call with KEXEC action. Wondering why it has to invoke kexec command. Asking this because in redhat CKI testing, one test case is 'kexec reboot'. Now it's always failed and the relevant log

Re: [systemd-devel] Why does reboot invoke kexec command?

2021-01-28 Thread Lennart Poettering
On Do, 28.01.21 10:03, Baoquan He (b...@redhat.com) wrote: > Hi, > > >From systemd code, if kexec kernel is loaded, executing 'reboot' will > finally enter into reboot system call with KEXEC action. Wondering why > it has to invoke kexec command. systemd reboots via kexec only if you ask it to. "

Re: [systemd-devel] Why does reboot invoke kexec command?

2021-01-31 Thread Baoquan He
On 01/28/21 at 03:24pm, Lennart Poettering wrote: > On Do, 28.01.21 10:03, Baoquan He (b...@redhat.com) wrote: > > > Hi, > > > > >From systemd code, if kexec kernel is loaded, executing 'reboot' will > > finally enter into reboot system call with KEXEC action. Wondering why > > it has to invoke ke