blob: 4776d852651f4eb8cbef636721b194c05481a8d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/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
cp -a /etc/udev ${DESTDIR}/etc
# Hack until udev is built with klibc
copy_exec /sbin/udevd /sbin
copy_exec /sbin/udevsynthesize /sbin
mkdir "${DESTDIR}/lib/udev"
copy_exec /lib/udev/udevsynthesize /lib/udev
|