diff options
author | craig <craig@haquarter.de> | 2008-11-21 22:46:36 +0100 |
---|---|---|
committer | craig <craig@haquarter.de> | 2009-06-28 20:37:33 +0200 |
commit | cac66e09707752906215511e69ef1141d56bd2c4 (patch) | |
tree | f414f837483a702ada87001cea5fad12487f9c82 /defaults/initrd.scripts | |
parent | Apply fix to deference links for gentoo bug #269603 (diff) | |
download | genkernel-cac66e09707752906215511e69ef1141d56bd2c4.tar.gz genkernel-cac66e09707752906215511e69ef1141d56bd2c4.tar.bz2 genkernel-cac66e09707752906215511e69ef1141d56bd2c4.zip |
iSCSI patch for genkernel
Diffstat (limited to 'defaults/initrd.scripts')
-rwxr-xr-x | defaults/initrd.scripts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index b63568d..1ccab59 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -628,6 +628,17 @@ startVolumes() { fi } +startiscsi() { + + if [ -n "${ISCSI_I}" ] && [ -n "${ISCSI_T}" ] && [ -n "${ISCSI_A}" ] + then + good_msg "Activating ISCSI" + iscsistart -i "${ISCSI_I}" -t "${ISCSI_T}" -g 1 -a ${ISCSI_A} + fi + +} + + # Open a LUKS device # It is either the root or a swap, other devices are supported in the scripts provided with sys-fs/cryptsetup-luks # $1 - root/swap |