While helping w/ http://www.faulhammer.org/archiv-mainmenu-31/35-gentoo/307-testers-wanted-for-x86 I observed an issue (see attached photo). Reproducible: Always Steps to Reproduce: 1. boot my ThinkPad T400 with "reboot=pci init 2" 2. modprobe dm-crypt 3. cryptsetup luksOpen /dev/sdb2 media 4. mount -o noatime /dev/mapper/media /mnt/media 5. umount /mnt/media 6. reboot
Created attachment 208351 [details] screen shot
important to reproduce it : use an external USB drive, plug it in after login as root, plug out it before reboot
if, right before you reboot, you shutdown the luks, does the problem go away? I'm thinking it's due to dm-crypt mappings not being removed, and then when device-mapper tries to finally stop, those mappings still exist.
(In reply to comment #3) > if, right before you reboot, you shutdown the luks, does the problem go away? yes, luksClose removes thuis issue
This is not an LVM problem then. The dm-crypt scripts should probably be closing ALL dm-crypt devices, not just those registered in /etc/conf.d/dm-crypt. vapier: ACK on closing all dm-crypt devices?
vapier: reping
yes, that makes sense