summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+