Last active
December 15, 2016 04:34
-
-
Save jasmas/1d2feee56ab93f1eff821979c731055b to your computer and use it in GitHub Desktop.
Initramfs Script & Hook to iSCSI Boot Ubuntu 14.04 LTS on UCS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Place in /etc/initramfs-tools/scripts/local-top/ and chmod 755 | |
#!/bin/sh | |
PREREQ="" | |
prereqs() | |
{ | |
echo "$PREREQ" | |
} | |
case $1 in | |
# get pre-requisites | |
prereqs) | |
prereqs | |
exit 0 | |
;; | |
esac | |
. /scripts/functions | |
wait_for_udev | |
modprobe iscsi_ibft | |
iscsistart -N | |
iscsistart -b | |
udevadm settle | |
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Place in /etc/iscsi/ | |
# Run 'update-initramfs -u -k all' | |
ISCSI_AUTO=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment