summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Bailey <jbailey@ubuntu.com>2005-09-01 00:14:23 -0400
committerJeff Bailey <jbailey@ubuntu.com>2005-09-01 00:14:23 -0400
commit61afce26f88ffc9ee2537f16fb4f3eaa82658af7 (patch)
tree104f6b3c6b9d95d38229c6298894b0f21bcc3b30
parent841a533b3b11b4a41f2eb8e6849fbd4ace0217fb (diff)
downloadinitramfs-tools-61afce26f88ffc9ee2537f16fb4f3eaa82658af7.tar.gz
initramfs-tools-61afce26f88ffc9ee2537f16fb4f3eaa82658af7.zip
Add missing file
-rw-r--r--hooks/udev27
1 files changed, 27 insertions, 0 deletions
diff --git a/hooks/udev b/hooks/udev
new file mode 100644
index 0000000..41c96fe
--- /dev/null
+++ b/hooks/udev
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+PREREQ=""
+
+prereqs()
+{
+ echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+
+# udev really wants to be able to do socket communications to udevd
+# This means that there's a bit of a race condition as the events come
+# flooding in and the kernels ability to autoload the 'unix' module.
+
+# We solve the problem thusly. Hopefully RIP Ubuntu# 12915
+
+. /usr/share/initramfs-tools/hook-functions
+
+force_load unix
+