[systemd-devel] handling mount failure in initramfs context
Przemyslaw Rudy
prudy1 at o2.pl
Thu May 29 01:43:34 PDT 2014
Yes, explicit requires/after, all in dependency.
On 05/28/2014 10:05 AM, WANG Chao wrote:
> On 05/28/14 at 09:57am, Przemyslaw Rudy wrote:
>> I use 'auto,fail' in fstab line options, however I have rootfs
>> dependency to it so fail means all will fail.
>
> How do you do that? Are you saying that you create a explicit
> dependency on sysroot.mount to your xxx.mount from /etc/fstab?
>
> Thanks
> WANG Chao
>
>>
>> On 05/26/2014 09:12 AM, WANG Chao wrote:
>>> Hi, all
>>>
>>> In a pure initramfs enviroment, I want to mount a filesystem and I put
>>> an mount entry in /etc/fstab, so that fstab-generator could generate a
>>> mount unit and systemd will mount it at some time.
>>>
>>> I have a question about mount failure in such case:
>>>
>>> How can I make sure that upon a mount failure, systemd would stop
>>> booting and switch to emergency handling?
>>>
>>> Thanks in advance!
>>>
>>> WANG Chao
>>> _______________________________________________
>>> systemd-devel mailing list
>>> systemd-devel at lists.freedesktop.org
>>> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>>>
>
More information about the systemd-devel
mailing list