Auto mount luks usb - org.freedesktop.UDisks2.Filesystem


I’m trying to figure out:

  1. How auto-mount for external usb disks works in EndeavourOS.

  2. How to auto mount luks volumes.

  3. How to add script options, so we can run custom cryptsetup open syntax with custom options. (ie. open hidden luks container without header in offset).

When looking at (1) it seems that this might be controlled by org.freedesktop.UDisks2.Filesystem. I say this because I received an error showing this process during my enquiries.

I thought the automount might be using Volman from Thunar, but it runs even when Thunar isn’t working so I don’t think its Volman.

I’m pretty confident that the process (Udisks2 or Volman) is storing the USB UUID in my home directory somehwere. (I did a timeshift to previous snapshot and system still remembered the USB).

The ‘process’ in EndeavourOS is able to store the luks password and mount it automatically.

Does anyone know where this information is stored, as I want to reset it.

Once (1) is figured out, perhaps I can expore (2), (3)