]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
udev-rules: optionally install /etc/udev/udev.conf
authorHarald Hoyer <harald@redhat.com>
Thu, 21 May 2015 12:42:39 +0000 (14:42 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 28 May 2015 17:47:37 +0000 (19:47 +0200)
udevd runs even without this config file

modules.d/95udev-rules/module-setup.sh

index e50709d111d7b71aeb9e5a8e8af056ebee2bf1dc..c4797bc2470041a6d9dfd1478538d2c54fd609f7 100755 (executable)
@@ -7,8 +7,9 @@ install() {
     # Fixme: would be nice if we didn't have to guess, 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
-    inst_multiple udevadm cat uname blkid \
-        /etc/udev/udev.conf
+    inst_multiple udevadm cat uname blkid
+    inst_dir /etc/udev
+    inst_multiple -o /etc/udev/udev.conf
 
     [ -d ${initdir}/$systemdutildir ] || mkdir -p ${initdir}/$systemdutildir
     for _i in ${systemdutildir}/systemd-udevd ${udevdir}/udevd /sbin/udevd; do