Advertisement
Guest User

iscsi.install

a guest
Jun 3rd, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.53 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement