local-top_aoe 515 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/sh
  2. set -e
  3. PREREQ="udev"
  4. prereqs()
  5. {
  6. echo "$PREREQ"
  7. }
  8. case $1 in
  9. prereqs)
  10. prereqs
  11. exit 0
  12. ;;
  13. esac
  14. # Bring in the main config
  15. . /conf/initramfs.conf
  16. for conf in conf/conf.d/*; do
  17. [ -f ${conf} ] && . ${conf}
  18. done
  19. . /scripts/functions
  20. configure_networking
  21. # Make sure udev has processed all events from adding the NIC
  22. # modules before loading aoe
  23. wait_for_udev 10
  24. modprobe aoe
  25. # Wait until aoe device files have been generated.
  26. wait_for_udev 10
  27. [ -x /sbin/aoe-discover ] && aoe-discover