initcpio_install 653 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. build() {
  3. add_file "/etc/udev/udev.conf"
  4. add_binary /usr/bin/udevd
  5. add_binary /usr/bin/udevadm
  6. for rule in 50-udev-default.rules 60-persistent-storage.rules 64-btrfs.rules 80-drivers.rules; do
  7. add_file "/usr/lib/udev/rules.d/$rule"
  8. done
  9. for tool in ata_id scsi_id; do
  10. add_file "/usr/lib/udev/$tool"
  11. done
  12. add_runscript
  13. }
  14. help() {
  15. cat <<HELPEOF
  16. This hook will use udev to create your root device node and detect the needed
  17. modules for your root device. It is also required for firmware loading in
  18. initramfs. It is recommended to use this hook.
  19. HELPEOF
  20. }
  21. # vim: set ft=sh ts=4 sw=4 et: