2015-02-13 10:43:21 +01:00
|
|
|
---
|
|
|
|
src/fstab-generator/fstab-generator.c | 7 +++++--
|
|
|
|
1 file changed, 5 insertions(+), 2 deletions(-)
|
|
|
|
|
2015-06-23 14:56:50 +02:00
|
|
|
Index: systemd-221/src/fstab-generator/fstab-generator.c
|
2015-02-13 10:43:21 +01:00
|
|
|
===================================================================
|
2015-06-23 14:56:50 +02:00
|
|
|
--- systemd-221.orig/src/fstab-generator/fstab-generator.c
|
|
|
|
+++ systemd-221/src/fstab-generator/fstab-generator.c
|
|
|
|
@@ -289,8 +289,11 @@ static int add_mount(
|
2015-02-13 10:43:21 +01:00
|
|
|
"Documentation=man:fstab(5) man:systemd-fstab-generator(8)\n",
|
|
|
|
source);
|
2014-04-28 11:54:18 +02:00
|
|
|
|
|
|
|
- if (post && !noauto && !nofail && !automount)
|
2015-02-13 10:43:21 +01:00
|
|
|
- fprintf(f, "Before=%s\n", post);
|
2014-04-28 11:54:18 +02:00
|
|
|
+ if (post && !noauto && !nofail && !automount) {
|
2015-02-13 10:43:21 +01:00
|
|
|
+ bool is_nfs = fstype != NULL && streq(fstype, "nfs");
|
|
|
|
+ if (!is_nfs || strstr(opts, "bg") == NULL)
|
|
|
|
+ fprintf(f, "Before=%s\n", post);
|
2014-04-28 11:54:18 +02:00
|
|
|
+ }
|
|
|
|
|
2015-06-23 14:56:50 +02:00
|
|
|
if (!automount && opts) {
|
|
|
|
r = write_requires_after(f, opts);
|