mirror of
https://github.com/systemd/systemd
synced 2024-10-04 15:21:01 +00:00
fstab-generator: add 'nofail' when NFS 'bg' option is used
Otherwise a 'Before=remote-fs.target' dependency is added to the mount unit which defeats the purpose of 'bg' option.
This commit is contained in:
parent
b7b7ace4ea
commit
e66d2eeeeb
|
@ -425,7 +425,7 @@ static int add_mount(
|
|||
* the systemd mount-timeout doesn't interfere.
|
||||
* By placing these options first, they can be over-ridden by
|
||||
* settings in /etc/fstab. */
|
||||
opts = strjoina("x-systemd.mount-timeout=infinity,retry=10000,", opts, ",fg");
|
||||
opts = strjoina("x-systemd.mount-timeout=infinity,retry=10000,nofail,", opts, ",fg");
|
||||
SET_FLAG(flags, NOFAIL, true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue