[Pkg-cryptsetup-devel] Proposed patch to cryptroot script

David Härdeman david at hardeman.nu
Wed Nov 28 10:52:54 UTC 2007


On Wed, November 28, 2007 11:32, Swâmi Petaramesh wrote:
> Le Wednesday 28 November 2007 10:42:33 David Härdeman, vous avez écrit :
>> What do you base that assertion on?
>>
>> The Debian udev package contains udev-0.114/extra/initramfs.premount
>> with these lines:
>
> I'm running the latest Ubuntu 7.10 Gutsy (not Debian, please don't yell
> ;-) with :
>
> cryptsetup 2:1.0.5-2ubuntu2
> udev 113-0ubuntu16
>
> ...and it doesn't contain the "initramfs.premount" file you're pointing.

It does contain the file with a slightly different name for some reason
(note, we're talking of the content of the source package here)...see:
http://archive.ubuntu.com/ubuntu/pool/main/u/udev/udev_113-0ubuntu16.diff.gz

Only problem is...Ubuntu's version of initramfs.premount doesnt include
the patch that Debian's udev does...this is the relevant part from the
diff:

+++ udev-113/debian/udev.initramfs-premount
@@ -0,0 +1,29 @@
+#!/bin/sh -e
+# initramfs premount script for udev
+
+PREREQ=""
+
+# Output pre-requisites
+prereqs()
+{
+	echo "$PREREQ"
+}
+
+case "$1" in
+    prereqs)
+	prereqs
+	exit 0
+	;;
+esac
+
+
+# It's all over netlink now
+echo "" > /proc/sys/kernel/hotplug
+
+# Start the udev daemon to process events
+/sbin/udevd --daemon
+
+# Iterate sysfs and fire off everything; if we include a rule for it then
+# it'll get handled; otherwise it'll get handled later when we do this again
+# in the main boot sequence.
+/sbin/udevtrigger

So there's your problem. Ubuntu's udev has no support for the necessary
boot parameter. This needs to be fixed in Ubuntu. You might want to refer
to Debian bug #401916 and its dupes if/when you talk to Ubuntu devs.

-- 
David Härdeman




More information about the Pkg-cryptsetup-devel mailing list