mirror of
https://github.com/systemd/systemd.git
synced 2025-02-04 21:47:31 +03:00
fstab-generator: Respect nofail when ordering
This commit is contained in:
parent
ecfcf0244a
commit
e9aee93240
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user