Public bug reported:

Binary package hint: cryptsetup

My /etc/crypttab contains the following disk which is not yet mapped:

$ cat /etc/crypttab
sdb_crypt /dev/sdb /keyfile luks


But the initscript won't process it:

$ sudo LC_ALL=C invoke-rc.d cryptdisks start
 * Starting remaining crypto disks...                                           
                                                                                
                                                     invoke-rc.d: initscript 
cryptdisks, action "start" failed.


Debug output gave me the following:
$ sudo LC_ALL=C bash -x /etc/init.d/cryptdisks start
[ for the full output, see attached file "bash debug output" ]
[ ... ]
+ load_optimized_module
+ local module optmodule
+ module=
+++ uname -r
++ find /lib/modules/2.6.24-18-generic/kernel/arch -name '*.ko'
+ optmodule=
$
Here the script stops. I've investigated the code in 
/lib/cryptsetup/cryptdisks.functions and noticed that the load_optimized_module 
function takes the module that should be loaded as an argument, but is called 
without any arguments in do_start (line 592 for me). I'm not entirely sure 
where the module should come from, but simply removing the call did the trick 
for me (aes_x86_64 was already loaded because I've a cryptroot).


$ LC_ALL=C apt-cache policy cryptsetup
cryptsetup:
  Installed: 2:1.0.6-1ubuntu3
  Candidate: 2:1.0.6-1ubuntu3
  Version table:
 *** 2:1.0.6-1ubuntu3 0
        500 http://archive.ubuntu.com intrepid/main Packages
        100 /var/lib/dpkg/status
$ lsb_release -rd
Description:    Ubuntu intrepid (development branch)
Release:        8.10

** Affects: cryptsetup (Ubuntu)
     Importance: Medium
         Status: New

-- 
initscript fails silently because of optimized modules
https://bugs.launchpad.net/bugs/239946
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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

Reply via email to