title: Systemd, how to mount a device at boot, but disable automount after boot
body: <p>I do not seem to find a simple solution to the following problem:</p>
  
  <p>I have a device listed in fstab, this should get mounted at boot. But if I manually unmount/remove the device after boot and if I present the device later on, systemd sees the device and automatically mounts it.</p>
  
  <p>So how to prevent the latter (like pre-systemd behaviour). I can not use noauto in /etc/fstab since that will disable mounting at boot, which I still want to have.</p>
  
  <p>There are some ways to workaround systemd for this problem. But I would like to see it fixed with using systemd.</p>
  
  <p>After some digging it seems that the fstab systemd generator is creating device units and mount units. The generator seems to add implicit values to this generated device unit, one of them is a "Wants" to the mount unit. Causing a dependency between the mount and the device. How can I influence or override the systemd generators so that it does not create this "Wants" dependency between the device and the mount?</p>
  
  <p>show dev-mapper-test.device |grep -i wants
  Wants=mnt-test.mount</p>
  
  <p>But now the tricky part, even if you could override that "wants" then also starting at boot will be disabled...</p>
  
  <p>Thanks</p>