aoe 582 B

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