summaryrefslogtreecommitdiffstats
path: root/satellit_installer
diff options
context:
space:
mode:
authorSimon Rettberg2015-12-14 14:36:50 +0100
committerSimon Rettberg2015-12-14 14:36:50 +0100
commit9c4a4b7dbc9668ddd155e8bc0a408acf7ece1b3a (patch)
tree90d77fd8dbf79fa382fc039b98c19be3722e8b4f /satellit_installer
parent[SSPS] Get ipxe from git, move ipxe+pxelinux4 from /v4/ to / (diff)
downloadsetup-scripts-9c4a4b7dbc9668ddd155e8bc0a408acf7ece1b3a.tar.gz
setup-scripts-9c4a4b7dbc9668ddd155e8bc0a408acf7ece1b3a.tar.xz
setup-scripts-9c4a4b7dbc9668ddd155e8bc0a408acf7ece1b3a.zip
[SSPS] Patch ipxe compile time config (disable unneeded features)
Diffstat (limited to 'satellit_installer')
-rw-r--r--satellit_installer/includes/10-install_ipxe.inc3
-rw-r--r--satellit_installer/static_files/ipxe.patch90
2 files changed, 93 insertions, 0 deletions
diff --git a/satellit_installer/includes/10-install_ipxe.inc b/satellit_installer/includes/10-install_ipxe.inc
index d8c9326..2f0056b 100644
--- a/satellit_installer/includes/10-install_ipxe.inc
+++ b/satellit_installer/includes/10-install_ipxe.inc
@@ -2,5 +2,8 @@
install_ipxe() {
[ -z "$1" ] && perror "Call install_ipxe with target directory!"
git clone --depth 1 git://git.ipxe.org/ipxe.git "$1" || perror "Cloning ipxe repo failed"
+ cd "$1"
+ git apply < "${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"
}
diff --git a/satellit_installer/static_files/ipxe.patch b/satellit_installer/static_files/ipxe.patch
new file mode 100644
index 0000000..0fdec28
--- /dev/null
+++ b/satellit_installer/static_files/ipxe.patch
@@ -0,0 +1,90 @@
+diff --git a/src/config/console.h b/src/config/console.h
+index 04be02d..2d3d3fa 100644
+--- a/src/config/console.h
++++ b/src/config/console.h
+@@ -23,7 +23,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
+ //#define CONSOLE_VMWARE /* VMware logfile console */
+ //#define CONSOLE_DEBUGCON /* Debug port console */
+
+-#define KEYBOARD_MAP us
++#define KEYBOARD_MAP de
+
+ #define LOG_LEVEL LOG_NONE
+
+diff --git a/src/config/general.h b/src/config/general.h
+index 9f0bb52..bc904c9 100644
+--- a/src/config/general.h
++++ b/src/config/general.h
+@@ -24,14 +24,14 @@ FILE_LICENCE ( GPL2_OR_LATER );
+ * "iPXE".
+ *
+ */
+-#define PRODUCT_NAME ""
++#define PRODUCT_NAME "OpenSLX"
+ #define PRODUCT_SHORT_NAME "iPXE"
+
+ /*
+ * Timer configuration
+ *
+ */
+-#define BANNER_TIMEOUT 20 /* Tenths of a second for which the shell
++#define BANNER_TIMEOUT 5 /* Tenths of a second for which the shell
+ banner should appear */
+
+ /*
+@@ -65,18 +65,18 @@ FILE_LICENCE ( GPL2_OR_LATER );
+ *
+ */
+
+-//#undef SANBOOT_PROTO_ISCSI /* iSCSI protocol */
+-//#undef SANBOOT_PROTO_AOE /* AoE protocol */
+-//#undef SANBOOT_PROTO_IB_SRP /* Infiniband SCSI RDMA protocol */
+-//#undef SANBOOT_PROTO_FCP /* Fibre Channel protocol */
++#undef SANBOOT_PROTO_ISCSI /* iSCSI protocol */
++#undef SANBOOT_PROTO_AOE /* AoE protocol */
++#undef SANBOOT_PROTO_IB_SRP /* Infiniband SCSI RDMA protocol */
++#undef SANBOOT_PROTO_FCP /* Fibre Channel protocol */
+
+ /*
+ * 802.11 cryptosystems and handshaking protocols
+ *
+ */
+-#define CRYPTO_80211_WEP /* WEP encryption (deprecated and insecure!) */
+-#define CRYPTO_80211_WPA /* WPA Personal, authenticating with passphrase */
+-#define CRYPTO_80211_WPA2 /* Add support for stronger WPA cryptography */
++#undef CRYPTO_80211_WEP /* WEP encryption (deprecated and insecure!) */
++#undef CRYPTO_80211_WPA /* WPA Personal, authenticating with passphrase */
++#undef CRYPTO_80211_WPA2 /* Add support for stronger WPA cryptography */
+
+ /*
+ * Name resolution modules
+@@ -107,21 +107,21 @@ FILE_LICENCE ( GPL2_OR_LATER );
+ *
+ */
+ #define AUTOBOOT_CMD /* Automatic booting */
+-#define NVO_CMD /* Non-volatile option storage commands */
++#undef NVO_CMD /* Non-volatile option storage commands */
+ #define CONFIG_CMD /* Option configuration console */
+ #define IFMGMT_CMD /* Interface management commands */
+-#define IWMGMT_CMD /* Wireless interface management commands */
+-#define FCMGMT_CMD /* Fibre Channel management commands */
++#undef IWMGMT_CMD /* Wireless interface management commands */
++#undef FCMGMT_CMD /* Fibre Channel management commands */
+ #define ROUTE_CMD /* Routing table management commands */
+ #define IMAGE_CMD /* Image management commands */
+ #define DHCP_CMD /* DHCP management commands */
+-#define SANBOOT_CMD /* SAN boot commands */
++#undef SANBOOT_CMD /* SAN boot commands */
+ #define MENU_CMD /* Menu commands */
+-#define LOGIN_CMD /* Login command */
+-#define SYNC_CMD /* Sync command */
++#undef LOGIN_CMD /* Login command */
++#undef SYNC_CMD /* Sync command */
+ //#define NSLOOKUP_CMD /* DNS resolving command */
+-//#define TIME_CMD /* Time commands */
+-//#define DIGEST_CMD /* Image crypto digest commands */
++#undef TIME_CMD /* Time commands */
++#undef DIGEST_CMD /* Image crypto digest commands */
+ //#define LOTEST_CMD /* Loopback testing commands */
+ //#define VLAN_CMD /* VLAN commands */
+ //#define PXE_CMD /* PXE commands */