]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/main.c
manager: if we are reexecuting, do not invoke any fallbacks
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 27 Jan 2022 14:03:27 +0000 (15:03 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 15 Feb 2022 10:13:26 +0000 (11:13 +0100)
commit1e3eee8cf0e654e101a4208b4cee7ecec65671a7
treebcbc408305ba20b13af9bc604058d9661c8fbe17
parent5409c6fcc55e6700360546c42edd4a021ee5014e
manager: if we are reexecuting, do not invoke any fallbacks

For https://bugzilla.redhat.com/show_bug.cgi?id=1986176:
if we are trying to reexecute, and this fails for any reason, we shouldn't
try to execute /sbin/init or /bin/sh. It is better to just freeze.
If we freeze it is easier to diagnose what happened, but if we execute
one of the fallbacks, we don't really know what will happen. In particular
the new init might just return, causing the machine to shut down. Or we
may successfully spawn /bin/sh, which could leave the machine open.
src/core/main.c