summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2019-12-11 17:22:48 +0100
committerSimon Rettberg2019-12-11 17:22:48 +0100
commit07c126b71445b0edbc0665ee92111f8a68bc145d (patch)
treea2b359742efb361d689c08a201cd109cbe17a65d
parent[minilinux] Tweak design of version list (diff)
downloadslx-admin-07c126b71445b0edbc0665ee92111f8a68bc145d.tar.gz
slx-admin-07c126b71445b0edbc0665ee92111f8a68bc145d.tar.xz
slx-admin-07c126b71445b0edbc0665ee92111f8a68bc145d.zip
[serversetup-bwlp-ipxe] Fix updating of default boot entries
Fix: "builtin" and "module" columns would not be updated if the according entry already exists.
-rw-r--r--modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php b/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php
index a8cfc265..dff8aaa1 100644
--- a/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php
+++ b/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php
@@ -333,7 +333,8 @@ class IPxe
public static function createDefaultEntries()
{
$query = 'INSERT IGNORE INTO serversetup_bootentry (entryid, hotkey, title, builtin, module, data)
- VALUES (:entryid, :hotkey, :title, 1, :module, :data) ON DUPLICATE KEY UPDATE data = VALUES(data)';
+ VALUES (:entryid, :hotkey, :title, 1, :module, :data)
+ ON DUPLICATE KEY UPDATE builtin = 1, module = VALUES(module), data = VALUES(data)';
Database::exec($query,
[
'entryid' => 'bwlp-default',