|
Zbigniew Jędrzejewski-Szmek |
d743bb |
From fd22bede6e06da50ca072cdfdd7b9acbb5f1fc06 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
From: Ivan Shapovalov <intelfx@intelfx.name>
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
Date: Mon, 24 Apr 2017 20:38:53 +0400
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
Subject: [PATCH] fstab-generator: do not skip Before= ordering for noauto
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
mountpoints (#5547)
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
(cherry picked from commit bd6bcce4d7fd9f34f84588888fa9d0e664e0500b)
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
---
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
src/fstab-generator/fstab-generator.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
index 2677a3fb32..50d350fce8 100644
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
--- a/src/fstab-generator/fstab-generator.c
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
+++ b/src/fstab-generator/fstab-generator.c
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
@@ -358,7 +358,7 @@ static int add_mount(
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
"Documentation=man:fstab(5) man:systemd-fstab-generator(8)\n",
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
source);
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
- if (!noauto && !nofail && !automount)
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
+ if (!nofail && !automount)
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
fprintf(f, "Before=%s\n", post);
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
if (!automount && opts) {
|