On Fri, 22.05.15 15:59, aaron_wri...@selinc.com (aaron_wri...@selinc.com) wrote:
> I'm trying to get kexec reboots to work on my box with systemd. I can get > "kexec -l ..." and "kexec -e" to work when ran straight from the command > line, but when I run "kexec -l ..." and "systemctl kexec" I get "kexec > returned error code 1" and it falls back to a full reboot. > I've puzzled over this for a while, but I can't figure out the difference > between the two situations that would prevent the later from working. > (error code 1 doesn't tell me much) Ideas? Consider placing a script in /usr/lib/systemd/system-shutdown/ that is marked executable, that play around with the kexec command line, echoing its output to some log file, so that you can look at it after reboot. Note though that at that time the fs are already mounted read-only, you'd have to remount it rw first, to be able to place that log file somwhere. Regular logging is unfortunately not available anymore that late, because things are already mounted read-only. Also see systemd-shutdown(8) for details. Lennart -- Lennart Poettering, Red Hat _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel