fc3ae7490c
- Update to new upstream release 221 OBS-URL: https://build.opensuse.org/request/show/313261 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=875
23 lines
942 B
Diff
23 lines
942 B
Diff
---
|
|
src/fstab-generator/fstab-generator.c | 7 +++++--
|
|
1 file changed, 5 insertions(+), 2 deletions(-)
|
|
|
|
Index: systemd-221/src/fstab-generator/fstab-generator.c
|
|
===================================================================
|
|
--- 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(
|
|
"Documentation=man:fstab(5) man:systemd-fstab-generator(8)\n",
|
|
source);
|
|
|
|
- if (post && !noauto && !nofail && !automount)
|
|
- fprintf(f, "Before=%s\n", post);
|
|
+ if (post && !noauto && !nofail && !automount) {
|
|
+ bool is_nfs = fstype != NULL && streq(fstype, "nfs");
|
|
+ if (!is_nfs || strstr(opts, "bg") == NULL)
|
|
+ fprintf(f, "Before=%s\n", post);
|
|
+ }
|
|
|
|
if (!automount && opts) {
|
|
r = write_requires_after(f, opts);
|