summaryrefslogtreecommitdiffstats
path: root/server/lib/shell.js
diff options
context:
space:
mode:
authorJannik Schönartz2019-01-13 15:42:23 +0100
committerJannik Schönartz2019-01-13 15:42:23 +0100
commite47b84e50275234235d2d70eebe484443e86bfb3 (patch)
tree2fbda0c3163d52551600a4b64ce2548911f6e23e /server/lib/shell.js
parent[webapp] add first version of a virtualized table for better performance (diff)
downloadbas-e47b84e50275234235d2d70eebe484443e86bfb3.tar.gz
bas-e47b84e50275234235d2d70eebe484443e86bfb3.tar.xz
bas-e47b84e50275234235d2d70eebe484443e86bfb3.zip
[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
Diffstat (limited to 'server/lib/shell.js')
-rw-r--r--server/lib/shell.js16
1 files changed, 11 insertions, 5 deletions
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'))