<div dir="ltr">Hi!<div><br></div><div style>I am using a NAS and want to create .mount and .automount service files for the shared.</div><div style>The service files differs only by the name of the share and mount target.</div>
<div style><br></div><div style>So I thought I use a "@" template for that.</div><div style>I created a file "mnt-NAS@.automount" (same for .mount with different content, but the same Alias logic):</div>
<div style>===</div><div style><div>[Unit]</div><div>Description=Automatically mount the NAS share %I</div><div><br></div><div>[Install]</div><div>Alias=mnt-NAS-%I.automount</div><div><br></div><div>[Automount]</div><div>
Where=/mnt/NAS/%I</div><div>===</div><div><br></div><div style>If I use "systemctl enable" the symlink is not greated as expected:</div><div style>ln -s '/etc/systemd/system/mnt-NAS@.automount' '/etc/systemd/system/mnt-NAS-%I.automount'<br>
</div><div style><br></div><div style>What have I to change?</div><div style>Or is this not supported? Why?</div><div style><br></div><div style>Best regards,</div><div style>Markus</div></div></div>