From e47b84e50275234235d2d70eebe484443e86bfb3 Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Sun, 13 Jan 2019 14:42:23 +0000 Subject: [server] Add ipxe efi support. Grep hw drive info Grep drive info and upload it to idoit Add EFI / BIOS configs for building ipxe Add function to build efi ipxe version Add default.ipxe script --- server/lib/shell.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'server/lib/shell.js') diff --git a/server/lib/shell.js b/server/lib/shell.js index 667fdeb..2b1ea0b 100644 --- a/server/lib/shell.js +++ b/server/lib/shell.js @@ -16,13 +16,19 @@ module.exports = { // Remove the general config and paste in the own one shell.rm(path.join(__appdir, 'ipxe', 'ipxe', 'src', 'config', 'general.h')) - shell.cp(path.join(__appdir, 'ipxe', 'general.h'), path.join(__appdir, 'ipxe', 'ipxe', 'src', 'config')) + // shell.cp(path.join(__appdir, 'ipxe', 'general.h'), path.join(__appdir, 'ipxe', 'ipxe', 'src', 'config')) + shell.cp(path.join(__appdir, 'ipxe', 'general_efi.h'), path.join(__appdir, 'ipxe', 'ipxe', 'src', 'config', 'general.h')) shell.rm(path.join(__appdir, 'ipxe', 'ipxe', 'src', 'config', 'console.h')) - shell.cp(path.join(__appdir, 'ipxe', 'console.h'), path.join(__appdir, 'ipxe', 'ipxe', 'src', 'config')) - // var make = 'make EMBED=' + path.join(__appdir, 'ipxe', 'main.ipxe'); - var make = 'make EMBED=' + path.join(__appdir, 'ipxe', 'main.ipxe') + ' TRUST=' + path.join(__appdir, 'bin', 'fullchain.pem')// + ' bin/undionly.kpxe' + // shell.cp(path.join(__appdir, 'ipxe', 'console.h'), path.join(__appdir, 'ipxe', 'ipxe', 'src', 'config')) + shell.cp(path.join(__appdir, 'ipxe', 'console_efi.h'), path.join(__appdir, 'ipxe', 'ipxe', 'src', 'config', 'console.h')) + // PCBIOS Variant + // var make = 'make EMBED=' + path.join(__appdir, 'ipxe', 'main.ipxe') + ' TRUST=' + path.join(__appdir, 'bin', 'fullchain.pem')// + ' bin/undionly.kpxe' + + // EFI Variant + var make = 'make bin-x86_64-efi/snponly.efi EMBED=' + path.join(__appdir, 'ipxe', 'main.ipxe') + ' TRUST=' + path.join(__appdir, 'bin', 'fullchain.pem')// + ' bin/undionly.kpxe' + + // USB // var make = 'make EMBED=' + path.join(__appdir, 'ipxe', 'reboot.ipxe') + ' TRUST=' + path.join(__appdir, 'bin', 'fullchain.pem') + ' bin/ipxe.usb' - // shell.env.PATH = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'; shell.env.DEBUG = '' shell.exec(make, function (code, stdout, stderr) { // shell.rm(path.join(__appdir, 'tftp', 'ipxe.0')) -- cgit v1.2.3-55-g7522