Skip to content

Instantly share code, notes, and snippets.

@jasmas
Last active December 15, 2016 04:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasmas/1d2feee56ab93f1eff821979c731055b to your computer and use it in GitHub Desktop.
Save jasmas/1d2feee56ab93f1eff821979c731055b to your computer and use it in GitHub Desktop.
Initramfs Script & Hook to iSCSI Boot Ubuntu 14.04 LTS on UCS
# 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
# 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