summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp-ipxe
diff options
context:
space:
mode:
authorSimon Rettberg2021-12-20 14:48:45 +0100
committerSimon Rettberg2022-03-09 15:06:54 +0100
commite76be422f3256e5cd2fc29eff3f33bfb37b90d83 (patch)
treeef5e403e5b9406787119e05282e354aed0a64c48 /modules-available/serversetup-bwlp-ipxe
parent[serversetup-bwlp-ipxe] Fix "locations" module name -> create constraint (diff)
downloadslx-admin-e76be422f3256e5cd2fc29eff3f33bfb37b90d83.tar.gz
slx-admin-e76be422f3256e5cd2fc29eff3f33bfb37b90d83.tar.xz
slx-admin-e76be422f3256e5cd2fc29eff3f33bfb37b90d83.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.
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe')
-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]];
}