bundles/nfs-client: decrease timeout, set some default mount options
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit
This commit is contained in:
parent
dcb563b31e
commit
83fb1a5e11
3 changed files with 9 additions and 1 deletions
|
@ -3,7 +3,7 @@ Description=Automount ${mount} on access
|
|||
|
||||
[Automount]
|
||||
Where=${mountpoint}
|
||||
TimeoutIdleSec=5min
|
||||
TimeoutIdleSec=30
|
||||
|
||||
[Install]
|
||||
WantedBy=local-fs.target
|
||||
|
|
|
@ -9,6 +9,8 @@ What=${serverpath}
|
|||
Where=${mountpoint}
|
||||
Type=nfs
|
||||
Options=${','.join(sorted(mount_options))}
|
||||
ForceUnmount=yes
|
||||
TimeoutSec=10
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
@ -19,6 +19,12 @@ for mount, data in node.metadata.get('nfs-client/mounts',{}).items():
|
|||
if parameter in data:
|
||||
directories[data['mountpoint']][parameter] = data[parameter]
|
||||
|
||||
if 'suid' not in data['mount_options']:
|
||||
data['mount_options'].add('nosuid')
|
||||
|
||||
if 'hard' not in data['mount_options']:
|
||||
data['mount_options'].add('soft')
|
||||
|
||||
if data.get('automount', True):
|
||||
data['mount_options'].add('x-systemd.automount')
|
||||
|
||||
|
|
Loading…
Reference in a new issue