<div dir="ltr"><div><div><div><div><div>Is systemd expected to stop / unmount an encrypted device when another device containing the keyfile used to mount it (e.g., a removable USB drive) is removed?<br><br></div>when I umount and then remove the USB disk, I see the following line in journalctl:<br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Jul 25 22:11:20 mserver systemd[1]: systemd-cryptsetup@aluks.service: Installed new job systemd-cryptsetup@aluks.service/stop<br></blockquote><br></div></div>I will send more logs when I find out exactly how to reproduce this on another system.<br><br></div>In the mean time, I appreciate any information on why systemd-cryptsetup might stop a service when a different storage device is removed.<br><br></div><div>Also, would the mount options in fstab impact this behavior? Currently I am not using systemd.automount on this machine. Should I? My mount options are similar to:<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">rw,noatime,nodiratime,compress=lzo,ssd,space_cache,subvolid=123,subvol=@myid     0 0<br></blockquote></div><div><br></div>Thanks<br></div>