bundles/nfs-client: decrease timeout, set some default mount options
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit

This commit is contained in:
Franzi 2022-02-20 19:44:05 +01:00
parent dcb563b31e
commit 83fb1a5e11
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 9 additions and 1 deletions

View file

@ -3,7 +3,7 @@ Description=Automount ${mount} on access
[Automount]
Where=${mountpoint}
TimeoutIdleSec=5min
TimeoutIdleSec=30
[Install]
WantedBy=local-fs.target

View file

@ -9,6 +9,8 @@ What=${serverpath}
Where=${mountpoint}
Type=nfs
Options=${','.join(sorted(mount_options))}
ForceUnmount=yes
TimeoutSec=10
[Install]
WantedBy=multi-user.target

View file

@ -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')