diff options
author | Simon Rettberg | 2019-10-24 14:45:13 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-10-24 14:45:13 +0200 |
commit | c93b32fd83a22566b8bb7e85d6a897885b9a1ef8 (patch) | |
tree | 3142e1ad197daea54485d3c829cc9d352e41a881 /modules-available/minilinux/page.inc.php | |
parent | [minilinux] Add missing permissions checks (diff) | |
download | slx-admin-c93b32fd83a22566b8bb7e85d6a897885b9a1ef8.tar.gz slx-admin-c93b32fd83a22566b8bb7e85d6a897885b9a1ef8.tar.xz slx-admin-c93b32fd83a22566b8bb7e85d6a897885b9a1ef8.zip |
[minilinux] Create symlink for PXELINUX menu support
Diffstat (limited to 'modules-available/minilinux/page.inc.php')
-rw-r--r-- | modules-available/minilinux/page.inc.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules-available/minilinux/page.inc.php b/modules-available/minilinux/page.inc.php index 11998aad..b13f7cd0 100644 --- a/modules-available/minilinux/page.inc.php +++ b/modules-available/minilinux/page.inc.php @@ -275,6 +275,14 @@ class Page_MiniLinux extends Page return; } Property::set(MiniLinux::PROPERTY_DEFAULT_BOOT, $version['versionid']); + // Legacy PXELINUX boot menu (TODO: Remove this when we get rid of PXELINUX support) + $task = Taskmanager::submit('Symlink', [ + 'target' => $version['versionid'], + 'linkname' => CONFIG_HTTP_DIR . '/default', + ]); + if ($task !== false) { + Taskmanager::release($task); + } } } |