summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2021-12-20 14:48:45 +0100
committerSimon Rettberg2021-12-20 14:48:45 +0100
commite8420ff26b4cf17deb44007fd888bc48da6bc76d (patch)
tree9145da4b21f927702a545b6b2f81af02e0739622
parent[serversetup-bwlp-ipxe] Fix "locations" module name -> create constraint (diff)
downloadslx-admin-e8420ff26b4cf17deb44007fd888bc48da6bc76d.tar.gz
slx-admin-e8420ff26b4cf17deb44007fd888bc48da6bc76d.tar.xz
slx-admin-e8420ff26b4cf17deb44007fd888bc48da6bc76d.zip
[serversetup-bwlp-ipxe] Add GRUB localboot method
Requires new satellite server 3.11+ Got rid of EFI syslinux boot mode, it never worked properly.
-rw-r--r--modules-available/serversetup-bwlp-ipxe/inc/localboot.inc.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/inc/localboot.inc.php b/modules-available/serversetup-bwlp-ipxe/inc/localboot.inc.php
index 2ce098e9..1261ee29 100644
--- a/modules-available/serversetup-bwlp-ipxe/inc/localboot.inc.php
+++ b/modules-available/serversetup-bwlp-ipxe/inc/localboot.inc.php
@@ -25,17 +25,15 @@ set i:int32 0 ||
sanboot --no-describe --drive ${i} --filename ${filename} ||
inc i
iseq ${i} 10 || goto blubber',
- 'COMBOOT' => 'set netX/209:string localboot.cfg ||
-set netX/210:string http://${serverip}/tftp/sl-efi64/ ||
-chain -ar /tftp/sl-efi64/syslinux.efi',
+ 'GRUB' => 'chain /tftp/grub-boot.img',
],
];
public static function getDefault(): array
{
- $ret = explode(',', Property::get(self::PROPERTY_KEY, 'SANBOOT,SANBOOT'));
+ $ret = explode(',', Property::get(self::PROPERTY_KEY, 'SANBOOT,GRUB'));
if (empty($ret)) {
- $ret = ['SANBOOT', 'SANBOOT'];
+ $ret = ['SANBOOT', 'GRUB'];
} elseif (count($ret) < 2) {
$ret[] = 'SANBOOT';
}
@@ -43,7 +41,7 @@ chain -ar /tftp/sl-efi64/syslinux.efi',
$ret[0] = 'SANBOOT';
}
if (!isset(self::BOOT_METHODS['EFI'][$ret[1]])) {
- $ret[1] = 'SANBOOT';
+ $ret[1] = 'GRUB';
}
return ['PCBIOS' => $ret[0], 'EFI' => $ret[1]];
}