Skip to content

Instantly share code, notes, and snippets.

@jasuarez
Created May 16, 2024 14:21
Show Gist options
  • Save jasuarez/3548abd716ceabd37aef861bd75450f1 to your computer and use it in GitHub Desktop.
Save jasuarez/3548abd716ceabd37aef861bd75450f1 to your computer and use it in GitHub Desktop.
Automount External LUKS disk
ACTION=="add", SUBSYSTEM=="block", ENV{ID_FS_UUID_ENC}=="7fc869ea-5555-4e59-b964-abe720939cc9", ENV{SYSTEMD_WANTS}="easystore.service"
[Unit]
Description=Notify about EasyStore disk attached
Wants=systemd-cryptsetup@easystore.service mnt-easystore.mount
[Service]
Type=oneshot
ExecStart=/usr/bin/echo "EasyStore has been attached"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment