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@xxxxxxxxxxxxxx> Sent: Friday, January 18, 2019 4:51 PM To: Yang Lyu Cc: systemd-devel@xxxxxxxxxxxxxxxxxxxxx Subject: Re: Crash instead of emergency mode when mount failure On Fr, 18.01.19 12:00, Yang Lyu (yang.lyu@xxxxxxxx) 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 _______________________________________________ systemd-devel mailing list systemd-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/systemd-devel