Hi Hadmut,

I encountered the same problem: My root partition is encrypted but
gnome-volume-manager asks me for my passphrase although it's already
mounted as my root filesystem! Besides being annoying, if I do provide
the password, the dialog freezes. The problem is that HAL detects the
encrypted partition without realizing it's already mounted. The solution
is for HAL to ignore the encrypted partition in this case.

I've attached a patch which fixes the bug by ignoring an encrypted
volume unless it's hotpluggable or removable! Download it to your
Desktop and execute the following command: cd
/usr/share/hal/fdi/policy/10osvendor && sudo patch -p1 <~/Desktop/15
-storage-luks.fdi.diff

This fix should be integrated into Ubuntu since it's quite an annoyance
for users of encrypted partitions. It could be improved by checking if
the device is really mounted. My patch only checks if it's removable or
hotpluggable. It's simple and does work, though. (The added lines of
code have been copied from /usr/share/hal/fdi/policy/10osvendor/20
-storage-methods.fdi which handles a similar case!)

Hope this helps,
-- Stefan D. Schwarz

** Attachment added: "Set volume.ignore for encrypted partitions"
   http://librarian.launchpad.net/4157888/15-storage-luks.fdi.diff

-- 
How to set volume.ignore for encrypted partitions?
https://launchpad.net/bugs/57104

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to