initcpio-install-udev 755 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. build() {
  3. local rules tool
  4. add_binary /usr/lib/systemd/systemd-udevd
  5. add_binary /usr/bin/udevadm
  6. add_binary /usr/bin/systemd-tmpfiles
  7. for rules in 50-udev-default.rules 60-persistent-storage.rules 64-btrfs.rules 80-drivers.rules; do
  8. add_file "/usr/lib/udev/rules.d/$rules"
  9. done
  10. for tool in ata_id scsi_id; do
  11. add_file "/usr/lib/udev/$tool"
  12. done
  13. add_runscript
  14. }
  15. help() {
  16. cat <<HELPEOF
  17. This hook adds the udev daemon to the initramfs, allowing for dynamic loading
  18. of modules and reliable detection of the root device via tags (e.g. UUID or
  19. LABEL). Do not remove this hook unless you are using the systemd hook, or you
  20. know what you're doing.
  21. HELPEOF
  22. }
  23. # vim: set ft=sh ts=4 sw=4 et: