[systemd-devel] fstab-generator: why nofail=true removes "Before=$post" in .mount

Tom Gundersen teg at jklm.no
Thu Aug 8 17:37:41 PDT 2013


On Thu, Aug 8, 2013 at 7:35 AM, WANG Chao <chaowang at redhat.com> wrote:
> In add_mount(), if nofail=true, "Before=$post" won't be added to
> xxx.mount:
>
> [..]
> if (post && !noauto && !nofail && !automount)
>         fprintf(f,
>                 "Before=%s\n",
>                 post);
>
> why doing this?

The way things currently work you can use 'nofail' when you want your
boot to be unaffected by a missing device. If we change this as you
suggest, then a missing device will lead to a long timeout (which
delays boot by a couple of minutes). That's not really wrong (it
doesn't contradict the fstab manpage), but would obviously limit the
usefulness of 'nofail'.

Cheers,

Tom


More information about the systemd-devel mailing list