Re: [arch-general] cryptsetup and udev

2009-03-09 Thread Guus Snijders
2009/3/7 Thomas Bächler : > Henri Häkkinen schrieb: >> [ udev rule to run cryptsetup on plugging in ] >> >> Udev seems to recognize my drive but instead of creating >> /dev/mapper/usbhd I get some nonsense like >> /dev/mapper/temporary-cryptsetup-7501 or similar. [...] > cryptsetup creates this dev

Re: [arch-general] cryptsetup and udev

2009-03-07 Thread Thomas Bächler
Henri Häkkinen schrieb: ACTION="add", ENV{DEVTYPE}="partition", ENV{ID_SERIAL}="", RUN+="/usr/sbin/cryptsetup --key-file /etc/keyfile luksOpen /dev/%k usbhd" ACTION="remove", ENV{DEVTYPE}="partition", ENV{ID_SERIAL}="", RUN+="/usr/sbin/cryptsetup luksClose usbhd" Udev seems to recognize my drive

[arch-general] cryptsetup and udev

2009-03-07 Thread Henri Häkkinen
Hello, I am trying to setup udev to automatically open a LUKS partition of my external USB drive once it is plugged in. I have written the following udev rules script: ACTION="add", ENV{DEVTYPE}="partition", ENV{ID_SERIAL}="", RUN+="/usr/sbin/cryptsetup --key-file /etc/keyfile luksOpen /dev/%k us