loop-aes module is not available when update-initramfs is run

Bug #241053 reported by pturing
4
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_add_modules $rootencryption

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

Revision history for this message
Eymen A (eal) wrote :

Hi,
I'm using the same setup. Loop-aes-source package from debian lenny repository.

Builiding module works.

Revision history for this message
pturing (pturing) wrote : Re: [Bug 241053] Re: loop-aes module is not available when update-initramfs is run
  • unnamed Edit (961 bytes, text/html; charset=ISO-8859-1)

Cool :)

Building the module works for me too, which is very cool.
But... it doesn't do it automatically when building the initrd for a new
kernel, which would be much better.

On Fri, Jun 20, 2008 at 6:41 PM, Eymen Alyaz <email address hidden> wrote:

> Hi,
> I'm using the same setup. Loop-aes-source package from debian lenny
> repository.
>
> Builiding module works.
>
> --
> loop-aes module is not available when update-initramfs is run
> https://bugs.launchpad.net/bugs/241053
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Eymen A (eal) wrote :

# update-initramfs -u
update-initramfs: Generating /boot/initrd.img-2.6.26-1-generic
/usr/share/initramfs-tools/scripts/functions: line 132: array_loopaes~=: command not found
/usr/share/initramfs-tools/scripts/functions: line 77: ${array_loopaes~}: bad substitution
/usr/share/initramfs-tools/scripts/functions: line 124: array_loopaes~=: command not found
/usr/share/initramfs-tools/scripts/functions: line 77: ${array_loopaes~}: bad substitution

I'm getting these error messages when I run update-initramfs. looks strange!

Revision history for this message
pturing (pturing) wrote :
Revision history for this message
Steve Beattie (sbeattie) wrote :

Hi, thanks for trying help improve Ubuntu. Unfortunately, the loop-aes-utils package was removed from Ubuntu and is no longer available in any currently supported Ubuntu release. Closing this bug.

Changed in loop-aes-utils (Ubuntu):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.