diff options
author | Chris Down | 2019-01-31 15:21:09 -0500 |
---|---|---|
committer | Chris Down | 2019-01-31 16:20:03 -0500 |
commit | 6e20342a25d6472c1b5616ae3f60b789a55b932d (patch) | |
tree | 18f504701959c2cfbdae1370639c65da9c12f2de /initcpio-install-udev | |
download | aur-6e20342a25d6472c1b5616ae3f60b789a55b932d.tar.gz |
upgpkg: systemd-cdown-git 235.7842-1
Initial upload: systemd-cdown-git 240.307-1
Diffstat (limited to 'initcpio-install-udev')
-rw-r--r-- | initcpio-install-udev | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/initcpio-install-udev b/initcpio-install-udev new file mode 100644 index 000000000000..31d9827129e7 --- /dev/null +++ b/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: |