[systemd-devel] Crash instead of emergency mode when mount failure

Lennart Poettering lennart at poettering.net
Fri Jan 18 15:51:38 UTC 2019


On Fr, 18.01.19 12:00, Yang Lyu (yang.lyu at axis.com) wrote:

> Hi,
>
>
> I have two questions about entering emergency mode when mount target fails.
>
>
> If local-fs.target fails in booting stage, it will come into
> emergency mode and wait for user interaction. In this failure case,
> is it better to introduce a crash generate core dump and reboot
> automatically?

A coredump of what precisely?

If you want to reboot automatically if some unit fails or can't be
reached within some time use FailureAction=reboot or
JobTimeoutAction=reboot.

In case of local-fs.target using JobTimeoutAction=reboot sounds like a
good solution.

Lennart

--
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list