This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

iscsi.install

By: a guest on Jun 3rd, 2012  |  syntax: Bash  |  size: 0.53 KB  |  views: 58  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/sh
  2.  
  3. # Adapted from the debian package
  4.  
  5. build() {
  6.         local mod
  7.  
  8.         add_runscript
  9.         add_binary /sbin/iscsistart
  10.         add_file /etc/iscsi/initiatorname.iscsi
  11.         [ -e /etc/iscsi/iscsi.initramfs ] && \
  12.                 add_file /etc/iscsi/iscsi.initramfs
  13.  
  14. # Add iscsi_ibft when arch add it to standard kernel image (see FS#30110)
  15.         for mod in crc32c libcrc32c iscsi_tcp; do
  16.                 add_module $mod
  17.         done
  18. }
  19.  
  20. help() {
  21.         cat <<HELPEOF
  22. This hook loads the necessary modules for an iscsi root device. Configuration will
  23. take place at runtime.
  24. HELPEOF
  25. }
clone this paste RAW Paste Data