loop-aes module is not available when update-initramfs is run
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
loop-aes-utils (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: loop-aes-utils
Currently when a new kernel is installed, the loop-aes-utils hooks for
initramfs-tools will always fail because the loop-aes version of loop.ko
has not been installed for the new kernel.
This patch modifies the loopaes hook script such that module-assistant is used
to build the necessary module if loop-aes-source is installed,
but no module has yet been built for the new kernel.
--- orig_loopaes_hook 2008-06-18 13:16:05.000000000 -0500
+++ loopaes 2008-06-18 13:16:10.000000000 -0500
@@ -195,6 +195,19 @@
copy_exec /sbin/losetup /sbin/
+# Before we install the module, build one if can and haven't already
+if modfound=$(m-a li | grep -o '^loop-aes'); then
+ if foo=$(m-a li -l $version | grep .deb); then
+ echo we have a built version of loop-aes-source for this kernel
+ else
+ echo we don't have a module built for this kernel, let's try to
build one
+ m-a -l $version a-i loop-aes
+ fi
+else
+ echo loop-aes-source is not installed
+fi
+
+
manual_add_modules loop
if [ "${forced}" = no ]; then
manual_
I am on Hardy Heron using loop-aes-utils version 2.13-2 along with loop-aes-source 3.2c-2 and initramfs-tools 0.85eubuntu39.1
Hi,
I'm using the same setup. Loop-aes-source package from debian lenny repository.
Builiding module works.