mirror of
https://github.com/systemd/systemd.git
synced 2025-03-11 20:58:27 +03: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…
x
Reference in New Issue
Block a user