diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2020-01-03 11:55:41 -0500 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2020-01-03 11:56:24 -0500 |
commit | f5deb41aaa263d7dbf2e5dbe631b64362c1a594a (patch) | |
tree | 1ed7b1f07ba46ba8b3d3a7b9844a022ccbd013a5 /nonsystemd/notsystemd/initcpio-install-udev | |
parent | bd08483225c324f3a1c289b78156bd03905ab1c4 (diff) | |
download | abslibre-f5deb41aaa263d7dbf2e5dbe631b64362c1a594a.tar.gz abslibre-f5deb41aaa263d7dbf2e5dbe631b64362c1a594a.tar.bz2 abslibre-f5deb41aaa263d7dbf2e5dbe631b64362c1a594a.zip |
[notsystemd][notsystemd-common][notsystemd-udev]: move to [nonsystemd]
Diffstat (limited to 'nonsystemd/notsystemd/initcpio-install-udev')
-rw-r--r-- | nonsystemd/notsystemd/initcpio-install-udev | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nonsystemd/notsystemd/initcpio-install-udev b/nonsystemd/notsystemd/initcpio-install-udev new file mode 100644 index 000000000..31d982712 --- /dev/null +++ b/nonsystemd/notsystemd/initcpio-install-udev @@ -0,0 +1,29 @@ +#!/bin/bash + +build() { + local rules tool + + add_binary /usr/lib/systemd/systemd-udevd + add_binary /usr/bin/udevadm + add_binary /usr/bin/systemd-tmpfiles + + for rules in 50-udev-default.rules 60-persistent-storage.rules 64-btrfs.rules 80-drivers.rules; do + add_file "/usr/lib/udev/rules.d/$rules" + done + for tool in ata_id scsi_id; do + add_file "/usr/lib/udev/$tool" + done + + add_runscript +} + +help() { + cat <<HELPEOF +This hook adds the udev daemon to the initramfs, allowing for dynamic loading +of modules and reliable detection of the root device via tags (e.g. UUID or +LABEL). Do not remove this hook unless you are using the systemd hook, or you +know what you're doing. +HELPEOF +} + +# vim: set ft=sh ts=4 sw=4 et: |