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

Yang Lyu yang.lyu at axis.com
Mon Jan 21 09:21:45 UTC 2019


Hi,

Thanks for your reply.

In the scenario it is not convenient to use emergency mode, I hope system can save some information and reboot.
It is to force system to crash and generate a dump file recording status and kernel log around that time. So that we can know what happened here through debugging later.

Best regards,
Yang
________________________________________
From: Lennart Poettering <lennart at poettering.net>
Sent: Friday, January 18, 2019 4:51 PM
To: Yang Lyu
Cc: systemd-devel at lists.freedesktop.org
Subject: Re: [systemd-devel] Crash instead of emergency mode when mount failure

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