initcpio-install-udev 717 B

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