Alexander Tsoy
cd501ff74b
udev-rules: add 80-net-setup-link.rules and .link files
...
With systemd >= 209 these file are required for predictable network interface
names
11 years ago
Harald Hoyer
30e6e809ed
Factor out all the "type -V" commands
...
Add new functions require_binaries() and require_any_binary() to be used
in the check() section of module-setup.sh.
These functions print a warning line telling the user, which binary is
missing for the specific dracut module.
This unifies the way of checking for binaries and makes the life of an
initramfs creator easier, if he wants to find out why a specific dracut
module is not included in the initramfs.
11 years ago
Alexander Tsoy
64fb0900cb
udev-rules: add eudev rules
...
eudev configured with "--enable-modules --disable-libkmod" installs
80-drivers-modprobe.rules instead of 80-drivers.rules
https://bugs.gentoo.org/show_bug.cgi?id=494188
11 years ago
Harald Hoyer
8bcfd683bd
*/module-setup.sh: add comments for dracut called functions
12 years ago
Harald Hoyer
af11946054
dracut-functions.sh: inst_multiple == dracut_install
12 years ago
Harald Hoyer
5decf6d813
add debian udev rule files
12 years ago
Harald Hoyer
282e0583b0
udev-rules: add 75-net-description.rules
...
we need IMPORT{builtin}="net_id" for the persistent network names
12 years ago
Harald Hoyer
630aed8b66
udev-rules: add 80-net-name-slot.rules
12 years ago
Harald Hoyer
af2578562c
udev-rules/module-setup.sh: optionally install /etc/pcmcia/config.opts
...
https://bugzilla.redhat.com/show_bug.cgi?id=920076
12 years ago
Harald Hoyer
6c6d805765
use systemd*dir variables everywhere
12 years ago
Harald Hoyer
c853dc72e9
udev-rules/module-setup.sh: do not install /run/*
12 years ago
Harald Hoyer
c46cda8260
split 95udev-rules/59-persistent-storage.rules to md and dm modules
12 years ago
Harald Hoyer
4f6e293308
udev-rules: modify udev rules on initramfs creation time
12 years ago
Harald Hoyer
16c84f2873
udev-rules/udev-rules-prepare.sh: get UDEVVERSION, if unset
12 years ago
Amadeusz Żołnowski
579238a3ac
Fallback to external blkid and path_id in udev rules for <udev-176.
...
Starting with commit 24a38bc1cb
dracut
uses udev builtins but still depends on >=udev-166 in dracut.spec. This
patch makes dracut work with older udev again.
All credits go to Alexander Tsoy <alexander@tsoy.me>; see
https://bugs.gentoo.org/show_bug.cgi?id=437700
12 years ago
Harald Hoyer
b85f723535
udev-rules: do not install all /etc/group
13 years ago
Harald Hoyer
500d8e6002
udev-rules/module-setup.sh: add udev groups
13 years ago
Colin Guthrie
f9452c94c0
udev-rules: Pre usrmove systemd installs might not find udevd.
...
If users had switched to systemd-183+ but have not completed
the usrmove, then the variable ${systemdutildir} will likely
refer to /usr/lib/systemd NOT /lib/systemd and thus the
systemd-udevd daemon may not be found.
So let's try a little harder and add another hard coded path
and if we don't find it, then bail out hard.
13 years ago
Harald Hoyer
c0cae7f702
dmraid,mdraid,lvm,udev: don't process DM_MULTIPATH_DEVICE_PATH devs
13 years ago
Harald Hoyer
24a38bc1cb
fixed install locations for udev rules and change to IMPORT{builtin}
13 years ago
Harald Hoyer
c072e13162
get rid of "basename"
13 years ago
Harald Hoyer
53fe81e752
modules.d/*/module-setup.sh: combine and specify type for installs
...
To speedup image creation, combine dracut_install calls and specify the exact type.
E.g. inst_script instead of the generic inst.
13 years ago
Harald Hoyer
a0df73b493
udev-rules/module-setup.sh: ln with --force
13 years ago
Harald Hoyer
d161561290
make udevdir systemdutildir systemdsystemunitdir global vars
...
your distribution should ship those settings in
/etc/dracut.conf.d/01-distro.conf
see dracut.conf.d/fedora.conf.example
13 years ago
Juan RP
2cf4f4fb74
Avoid annonying warnings when pkg-config is not installed.
13 years ago
Harald Hoyer
6042b30c58
udev-rules: check for systemd-udevd symlink already present
13 years ago
Harald Hoyer
604d1eb21a
use pkg-config to determine the udev directory
13 years ago
Harald Hoyer
cce69be668
removed old udev "vol_id"
13 years ago
Harald Hoyer
168952cea6
udev-rules/module-setup.sh: fixed udevd location
13 years ago
Harald Hoyer
8a1a2f6ca4
udevd moved to /lib/systemd/systemd-udevd
13 years ago
Harald Hoyer
324be70f80
udev-rules: remove 01-ignore.rules
13 years ago
Jon Ander Hernandez
c9143a63fe
Debian multiarch support
...
Another solution could be searching in directories found at
/etc/ld.so.conf.d/*.conf or adding a new parameter. Here is a patch
which adds a new --libdirs parameter, and also a new inst_libdir_file
function which will try to expand metacharacters on each lib
directory:
inst_libdir_file "libdevmapper-event-lvm*.so"
13 years ago
Harald Hoyer
6f00044317
95udev-rules/module-setup.sh: correctly create udevd symlink
14 years ago
Harald Hoyer
450f5d6694
95udev-rules/module-setup.s: fixed symlink for udevd to initdir
14 years ago
Harald Hoyer
e0f9ecc6a4
95udev-rules/module-setup.sh: also search in /lib/udev and /usr/lib/udev
14 years ago
Harald Hoyer
f063d0e89f
95udev-rules: add input_id
14 years ago
Harald Hoyer
e59f58f854
use inst_simple to install non-binary files
14 years ago
Harald Hoyer
29b10e65b1
dracut-functions: make local vars local and prefix with "_"
14 years ago
Harald Hoyer
3b403b32fc
removed trailing whitespaces
14 years ago
Harald Hoyer
df60555037
precreate /run/udev/rules.d
14 years ago
Harald Hoyer
71df3c4329
renamed module-info.sh to module-setup.sh
14 years ago
Harald Hoyer
95d2dabc25
replaced check,install,installkernel with module-info.sh
14 years ago
Peter Rajnoha
c2c3108882
*.rules: honor DM_UDEV_DISABLE_OTHER_RULES_FLAG
...
honour the DM_UDEV_DISABLE_OTHER_RULES_FLAG which is set by
libdevmapper/LVM directly for devices that should be skipped.
15 years ago
Harald Hoyer
cc02093d69
reformat source code
...
removed tabs and set indention to 4 spaces
added emacs and vi format headers
15 years ago
Harald Hoyer
5acc508cae
fixed "use $libdir and $usrlibdir instead of ..."
15 years ago
Amadeusz Żołnowski
55309e7800
use $libdir and $usrlibdir instead of individual detect with ldd
15 years ago
Victor Lowther
5a4bbf1bda
Arch handles loading modules from udev in a somewhat customized manner.
15 years ago
Harald Hoyer
dafa4f621f
udev-rules: be more careful about md devices and blkid runs
15 years ago
Harald Hoyer
58ffd15bff
add module btrfs
15 years ago
Harald Hoyer
e606012ce6
udev-rules: hotplug.functions is not executable, so use -e instead of -x
15 years ago