From: Vladimir Panteleev Date: Tue, 17 Aug 2021 18:30:29 +0000 (+0000) Subject: fstab-generator: Respect nofail when ordering X-Git-Tag: v250-rc1~812 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e9aee932409754c9f709a8ea3ad13caf39fce7d2;p=thirdparty%2Fsystemd.git fstab-generator: Respect nofail when ordering --- diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c index bae67be09f1..8a4340c5ba9 100644 --- a/src/fstab-generator/fstab-generator.c +++ b/src/fstab-generator/fstab-generator.c @@ -434,7 +434,8 @@ static int add_mount( /* Order the mount unit we generate relative to the post unit, so that DefaultDependencies= on the * target unit won't affect us. */ - if (post && !FLAGS_SET(flags, MOUNT_AUTOMOUNT) && !FLAGS_SET(flags, MOUNT_NOAUTO)) + if (post && !FLAGS_SET(flags, MOUNT_AUTOMOUNT) && !FLAGS_SET(flags, MOUNT_NOAUTO) && + !FLAGS_SET(flags, MOUNT_NOFAIL)) fprintf(f, "Before=%s\n", post); if (passno != 0) {