summaryrefslogtreecommitdiffstats
path: root/satellit_installer/includes/10-install_ipxe.inc
blob: 1fb14d301810a37b4a2eddb7995207ff5488ff48 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

install_ipxe() {
	[ -z "$1" ] && perror "Call install_ipxe with target directory!"
	# chr 20160602: Kein --depth wg. commit-ID fuer Patch 
	# git clone --depth 1 git://git.ipxe.org/ipxe.git "$1" || perror "Cloning ipxe repo failed"
	git clone git://git.ipxe.org/ipxe.git "$1" || perror "Cloning ipxe repo failed"
	cd "$1"
	git reset --hard 6a3ffa0114411ae4aa6c4485c6058bf03fec3623
	git apply --ignore-whitespace < "${BASEDIR}/static_files/ipxe.patch" || perror "Could not patch ipxe compile-time configuration"
	cd - > /dev/null
	wget -O "$1/pxelinux.0" "$HTTP_BASE/pxelinux.0" || perror "Could not download pxelinux 4 from $HTTP_BASE"
	# Symlink for USB-Stick HTTP access
	mkdir -p "$WWWDIR"
	ln -s -f "$TFTPDIR" "$WWWDIR/tftp" || perror "Could not create symlink for tftp dir"
}