blob: 944bbc2e711886bd21906e81bd0e50f87ce23b76 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
#!/bin/bash
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
install() {
# FIXME: would be nice if we didn't have to know which rules to grab....
# ultimately, /lib/initramfs/rules.d or somesuch which includes links/copies
# of the rules we want so that we just copy those in would be best
dracut_install udevd udevadm /etc/udev/udev.conf /etc/group
dracut_install basename
inst_rules 50-udev-default.rules 60-persistent-storage.rules \
61-persistent-storage-edd.rules 80-drivers.rules 95-udev-late.rules \
60-pcmcia.rules
#Some debian udev rules are named differently
inst_rules 50-udev.rules 95-late.rules
# ignore some devices in the initrd
inst_rules "$moddir/01-ignore.rules"
# for firmware loading
inst_rules 50-firmware.rules
dracut_install cat uname
if [ ! -x /lib/udev/vol_id ]; then
dracut_install blkid
inst_rules "$moddir/59-persistent-storage.rules"
else
inst_rules "$moddir/59-persistent-storage-volid.rules"
fi
inst_rules "$moddir/61-persistent-storage.rules"
for i in \
ata_id \
cdrom_id \
create_floppy_devices \
edd_id \
firmware.sh \
firmware \
firmware.agent \
hotplug.functions \
fw_unit_symlinks.sh \
hid2hci \
path_id \
scsi_id \
usb_id \
vol_id \
pcmcia-socket-startup \
pcmcia-check-broken-cis \
; do
[ -e /lib/udev/$i ] && dracut_install /lib/udev/$i
done
[ -f /etc/arch-release ] && \
inst "$moddir/load-modules.sh" /lib/udev/load-modules.sh
for i in {"$libdir","$usrlibdir"}/libnss_files*; do
[ -e "$i" ] && dracut_install "$i"
done
}
|