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

2013-08-08 Thread Tom Gundersen
On Thu, Aug 8, 2013 at 7:35 AM, WANG Chao 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 thin

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

2013-08-07 Thread WANG Chao
Hi, all I have a question after looking fstab-generator.c. I hope someone can help me. 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 doin